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

- Unban hero if related Prison is destroyed during map generation

- Move prison counter to PrisonHeroPlacer
This commit is contained in:
Tomasz Zieliński
2023-12-24 09:36:26 +01:00
parent b0f0e9caa8
commit ebf2055afc
9 changed files with 72 additions and 23 deletions

View File

@@ -66,6 +66,7 @@ public:
const std::vector<HeroTypeID> getAllPossibleHeroes() const;
void banQuestArt(const ArtifactID & id);
void banHero(const HeroTypeID& id);
void unbanHero(const HeroTypeID & id);
Zone * getZoneWater() const;
void addWaterTreasuresInfo();
@@ -82,7 +83,6 @@ private:
std::vector<rmg::ZoneConnection> connectionsLeft;
int allowedPrisons;
int monolithIndex;
std::vector<ArtifactID> questArtifacts;