1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Implemented preserving hero on retreat on 7th day after end of turn

This commit is contained in:
Ivan Savenko
2023-07-11 23:37:17 +03:00
parent 9a38d8ea97
commit cb16636fce
5 changed files with 73 additions and 15 deletions

View File

@@ -99,8 +99,6 @@ class CGameHandler : public IGameCallback, public CBattleInfoCallback, public En
std::shared_ptr<CApplier<CBaseForGHApply>> applier;
std::unique_ptr<boost::thread> battleThread;
void deserializationFix();
public:
std::unique_ptr<HeroPoolProcessor> heroPool;
@@ -365,6 +363,8 @@ public:
scripting::Pool * getContextPool() const override;
#endif
std::list<PlayerColor> generatePlayerTurnOrder() const;
friend class CVCMIServer;
private:
std::unique_ptr<events::EventBus> serverEventBus;
@@ -373,8 +373,9 @@ private:
#endif
void reinitScripting();
void deserializationFix();
std::list<PlayerColor> generatePlayerTurnOrder() const;
void makeStackDoNothing(const CStack * next);
void getVictoryLossMessage(PlayerColor player, const EVictoryLossCheckResult & victoryLossCheckResult, InfoWindow & out) const;