mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
cleaner
This commit is contained in:
@@ -352,6 +352,14 @@ public:
|
||||
return (dwelling - DWELL_FIRST) / (GameConstants::CREATURES_PER_TOWN - 1);
|
||||
}
|
||||
|
||||
static void advanceDwelling(BuildingIDBase & dwelling)
|
||||
{
|
||||
if(dwelling != BuildingIDBase::DWELL_LVL_8)
|
||||
dwelling.advance(GameConstants::CREATURES_PER_TOWN - 1);
|
||||
else
|
||||
dwelling.advance(1);
|
||||
}
|
||||
|
||||
bool IsSpecialOrGrail() const
|
||||
{
|
||||
return num == SPECIAL_1 || num == SPECIAL_2 || num == SPECIAL_3 || num == SPECIAL_4 || num == GRAIL;
|
||||
|
||||
Reference in New Issue
Block a user