Skip to content

Commit

Permalink
fix faction struct
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnTW committed Nov 27, 2023
1 parent 7aeb36b commit c6b578a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
8 changes: 4 additions & 4 deletions M2TWEOP Code/M2TWEOP library/realGameTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -3433,12 +3433,12 @@ struct factionStruct {
float* resourceModifiers;
DWORD resourceModifiersEnd;
DWORD resourceModifiersEnd2;
int32_t factionBannerIndex; //0x0AA0
int32_t agentNameFactionId[12]; //0x0AA4
char pad_0AD4[24]; //0x0AD4
char pad_0A8C[12]; //0x0AD4
UNICODE_STRING** someString;
UNICODE_STRING** localizedName;
undefined field_0xaa0[76];
int32_t factionBannerIndex; //0x0AA0
int32_t agentNameFactionId[12]; //0x0AA4
undefined field_0xad4[24];
int money; /* money of the faction */
int KingsPurse; /* money of the faction */
int32_t incomeDoubled; //0x0AF4
Expand Down
28 changes: 4 additions & 24 deletions M2TWEOP-luaPlugin/luaPlugin/realGameTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1367,26 +1367,6 @@ struct battleAI
char pad_07A4[96]; //0x07A4
}; //Size: 0x0804

/*
0 not in battle
1 prebattle scroll
2 delay (also for preconflict phase of successful ambushes)
3 deployment
4
5 conflict (also for pause)
6 victory scroll
7 pursuit
8
9 postbattle scroll (not for autoresolved battles)
0 succesful ambush
1 failed ambush
2 normal
3 siege
4 sally besieger
5 naval
6 withdrawal?
*/

struct battleSide {
bool isDefender;//0x0000
uchar field_0x1;//0x0001
Expand Down Expand Up @@ -3453,12 +3433,12 @@ struct factionStruct {
float* resourceModifiers;
DWORD resourceModifiersEnd;
DWORD resourceModifiersEnd2;
int32_t factionBannerIndex; //0x0AA0
int32_t agentNameFactionId[12]; //0x0AA4
char pad_0AD4[24]; //0x0AD4
char pad_0A8C[12]; //0x0AD4
UNICODE_STRING** someString;
UNICODE_STRING** localizedName;
undefined field_0xaa0[76];
int32_t factionBannerIndex; //0x0AA0
int32_t agentNameFactionId[12]; //0x0AA4
undefined field_0xad4[24];
int money; /* money of the faction */
int KingsPurse; /* money of the faction */
int32_t incomeDoubled; //0x0AF4
Expand Down

0 comments on commit c6b578a

Please sign in to comment.