Skip to content

Commit 0db75dc

Browse files
authored
Merge pull request #64 from sourcehold/reimpl/SHC_3BB0A8C1_0x004CB120
reimplement: SHC_3BB0A8C1_0x004CB120 100%
2 parents 741d643 + c2a80aa commit 0db75dc

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include "OpenSHC/AI/AICState.hpp"
2+
#include "OpenSHC/AI/AITypeA.hpp"
3+
4+
#include "OpenSHC/Globals/DAT_GameState.hpp"
5+
6+
namespace OpenSHC {
7+
namespace AI {
8+
9+
// FUNCTION: STRONGHOLDCRUSADER 0x004CB120
10+
int AICState::getAIBuildInterval(int playerID)
11+
12+
{
13+
int const aiType = DAT_GameState::ptr->playerDataArray[playerID].aiType;
14+
if (aiType == AITA_NULL) {
15+
return 0;
16+
}
17+
18+
return this->DAT_AICArray[(aiType - 1)].buildInterval;
19+
}
20+
}
21+
}

status/addresses-SHC-3BB0A8C1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16807,7 +16807,7 @@ SHC_3BB0A8C1_0x004CAD10 | 0.0% | Pending
1680716807
SHC_3BB0A8C1_0x004CAE20 | 0.0% | Pending
1680816808
SHC_3BB0A8C1_0x004CAEA0 | 0.0% | Pending
1680916809
SHC_3BB0A8C1_0x004CB060 | 100.0% | Reimplemented
16810-
SHC_3BB0A8C1_0x004CB120 | 0.0% | Pending
16810+
SHC_3BB0A8C1_0x004CB120 | 100.0% | Reimplemented
1681116811
SHC_3BB0A8C1_0x004CB150 | 0.0% | Pending
1681216812
SHC_3BB0A8C1_0x004CB180 | 0.0% | Pending
1681316813
SHC_3BB0A8C1_0x004CB1B0 | 0.0% | Pending

0 commit comments

Comments
 (0)