1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Moved most of daily income handling to a separate method

This commit is contained in:
Ivan Savenko
2024-08-24 19:18:15 +00:00
parent 58da447f43
commit 189cb1c762
8 changed files with 204 additions and 123 deletions

View File

@@ -1136,8 +1136,8 @@ struct DLL_LINKAGE NewTurn : public CPackForClient
};
std::set<Hero> heroes; //updates movement and mana points
std::map<PlayerColor, ResourceSet> res; //player ID => resource value[res_id]
std::map<ObjectInstanceID, SetAvailableCreatures> cres;//creatures to be placed in towns
std::map<PlayerColor, ResourceSet> playerIncome; //player ID => resource value[res_id]
ui32 day = 0;
ui8 specialWeek = 0; //weekType
CreatureID creatureid; //for creature weeks
@@ -1149,7 +1149,7 @@ struct DLL_LINKAGE NewTurn : public CPackForClient
{
h & heroes;
h & cres;
h & res;
h & playerIncome;
h & day;
h & specialWeek;
h & creatureid;