1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix battle draw scenario

This commit is contained in:
Opuszek
2025-08-26 13:18:27 +02:00
parent 83e2bfde11
commit 568fa41d72
3 changed files with 78 additions and 48 deletions

View File

@@ -121,7 +121,8 @@ struct DLL_LINKAGE BattleResult : public Query
{
BattleID battleID = BattleID::NONE;
EBattleResult result = EBattleResult::NORMAL;
BattleSide winner = BattleSide::NONE; //0 - attacker, 1 - defender, [2 - draw (should be possible?)]
BattleSide winner = BattleSide::NONE; //0 - attacker, 1 - defender, 2 - draw
PlayerColor attacker; //used in case of a draw
BattleSideArray<std::map<CreatureID, si32>> casualties; //first => casualties of attackers - map crid => number
BattleSideArray<TExpType> exp{0,0}; //exp for attacker and defender