1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

vcmi: remove ALL_CREATURES propagator

Now unneded, because it handled by GLOBAL_EFFECT with
CREATURE_LEVEL_LIMITER (when range set to UINT_MIN and UINT_MAX).
This commit is contained in:
Konstantin
2023-04-06 20:03:17 +03:00
parent 9f8dcfc736
commit f8eba58003
7 changed files with 23 additions and 23 deletions

View File

@ -187,6 +187,7 @@ std::string PlayerColor::getStrCap(bool L10n) const
return ret;
}
const FactionID FactionID::NONE = FactionID(-2);
const FactionID FactionID::ANY = FactionID(-1);
const FactionID FactionID::CASTLE = FactionID(0);
const FactionID FactionID::RAMPART = FactionID(1);
@ -205,7 +206,7 @@ si32 FactionID::decode(const std::string & identifier)
if(rawId)
return rawId.get();
else
return -1;
return FactionID::ANY;
}
std::string FactionID::encode(const si32 index)