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

cheats + grail in town

This commit is contained in:
Laserlicht
2023-09-23 21:37:40 +02:00
committed by GitHub
parent 6f8b62d77d
commit c49d38b855
2 changed files with 9 additions and 0 deletions

View File

@@ -1695,6 +1695,9 @@ void CPlayerInterface::requestReturningToMainMenu(bool won)
for(const CGHeroInstance * h : cb->getHeroesInfo())
if(h->hasArt(ArtifactID::GRAIL))
param.hasGrail = true;
for(const CGTownInstance * t : cb->getTownInfo())
if(t->builtBuildings.find(BuildingID::GRAIL))
param.hasGrail = true;
param.allDefeated = true;
for (PlayerColor player(0); player < PlayerColor::PLAYER_LIMIT; ++player)
{