Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/OpenSHC/AI/AICState/getAIBuildInterval.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include "OpenSHC/AI/AICState.hpp"
#include "OpenSHC/AI/AITypeA.hpp"
#include "OpenSHC/Globals/DAT_GameState.hpp"

namespace OpenSHC {
namespace AI {

// FUNCTION: STRONGHOLDCRUSADER 0x004CB120
int AICState::getAIBuildInterval(int playerID)

{
int const aiType = DAT_GameState::ptr->playerDataArray[playerID].aiType;
if (aiType == AITA_NULL) {
return 0;
}

return this->DAT_AICArray[(aiType - 1)].buildInterval;
}
}
}
2 changes: 1 addition & 1 deletion status/addresses-SHC-3BB0A8C1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16807,7 +16807,7 @@ SHC_3BB0A8C1_0x004CAD10 | 0.0% | Pending
SHC_3BB0A8C1_0x004CAE20 | 0.0% | Pending
SHC_3BB0A8C1_0x004CAEA0 | 0.0% | Pending
SHC_3BB0A8C1_0x004CB060 | 0.0% | Pending
SHC_3BB0A8C1_0x004CB120 | 0.0% | Pending
SHC_3BB0A8C1_0x004CB120 | 100.0% | Reimplemented
SHC_3BB0A8C1_0x004CB150 | 0.0% | Pending
SHC_3BB0A8C1_0x004CB180 | 0.0% | Pending
SHC_3BB0A8C1_0x004CB1B0 | 0.0% | Pending
Expand Down