Skip to content

Commit

Permalink
big update to many structs
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnTW committed Oct 10, 2023
1 parent 8f1cb96 commit af42136
Show file tree
Hide file tree
Showing 20 changed files with 3,740 additions and 262 deletions.
8 changes: 4 additions & 4 deletions M2TWEOP Code/M2TWEOP library/fastFuncts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,8 @@ namespace fastFuncts
}
return;
}
un->general->movepoints1 = movepoints;
un->general->movepoints2 = movepoints;
un->general->movePointsCharacter = movepoints;
un->general->movePointsArmy = movepoints;


general* gen = un->general;
Expand Down Expand Up @@ -926,7 +926,7 @@ namespace fastFuncts



int diff = count - un->number;
int diff = count - un->SoldierCountStrat;
if (diff == 0)
{
return;
Expand All @@ -947,7 +947,7 @@ namespace fastFuncts
}
else
{
un->number = count;
un->SoldierCountStrat = count;
}


Expand Down
2 changes: 1 addition & 1 deletion M2TWEOP Code/M2TWEOP library/onlineThings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ namespace battleCreator
unit* un = army->units[k];
tempS = "unit ";
tempS.append(un->eduEntry->Type);
tempS.append(" soldiers ").append(to_string(un->number));
tempS.append(" soldiers ").append(to_string(un->SoldierCountStrat));
tempS.append(" exp ").append(to_string(un->expScreen));
tempS.append(" armour ").append(to_string(un->stats >> 0xd & 0x1f));
tempS.append(" weapon_lvl ").append(to_string(un->stats >> 0x8 & 0x1f));
Expand Down
4 changes: 2 additions & 2 deletions M2TWEOP Code/M2TWEOP library/onlineThings2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace battleCreator
{
numberInArmy = pnumberInArmy;
type = un->eduEntry->Type;
soldiersNumber = un->number;
soldiersNumber = un->SoldierCountStrat;
exp = un->expScreen;


Expand Down Expand Up @@ -232,7 +232,7 @@ namespace battleCreator
{
unitJson["general"] = 0;
}
unitJson["soldiers"] = unit->number;
unitJson["soldiers"] = unit->SoldierCountStrat;
unitJson["exp"] = unit->expScreen;

j.push_back(unitJson);
Expand Down
Loading

0 comments on commit af42136

Please sign in to comment.