mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Exposed more of existing limiters for modders (#449)
* Exposed alignment, faction and terrain limiters * Limiters toString() use now boost:format
This commit is contained in:
committed by
ArseniyShestakov
parent
ad2c429d8f
commit
d9d01f0b68
@@ -282,6 +282,16 @@ bool CStack::canBeHealed() const
|
||||
&& !hasBonusOfType(Bonus::SIEGE_WEAPON);
|
||||
}
|
||||
|
||||
bool CStack::isOnNativeTerrain() const
|
||||
{
|
||||
return type->isItNativeTerrain(battle->getTerrainType());
|
||||
}
|
||||
|
||||
bool CStack::isOnTerrain(int terrain) const
|
||||
{
|
||||
return battle->getTerrainType() == terrain;
|
||||
}
|
||||
|
||||
const CCreature * CStack::unitType() const
|
||||
{
|
||||
return type;
|
||||
|
||||
Reference in New Issue
Block a user