mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
isThorny using flags
This commit is contained in:
parent
ad5884e29f
commit
9a072cdb62
@ -57,6 +57,7 @@ WALLFLAGCHECK(isStandardTree, flag & WF_STDTREE)
|
||||
WALLFLAGCHECK(isGrave, flag & WF_GRAVE)
|
||||
WALLFLAGCHECK(isReptile, flag & WF_REPTILE)
|
||||
WALLFLAGCHECK(useHeatColoring, flag & WF_HEATCOLOR)
|
||||
WALLFLAGCHECK(isThorny, flag & WF_THORNY)
|
||||
|
||||
LANDFLAGCHECK(generateAll, flag & LF_GENERATE_ALL)
|
||||
LANDFLAGCHECK(isIcyLand, flag & LF_ICY)
|
||||
@ -312,8 +313,6 @@ bool survivesFall(eMonster m) {
|
||||
return isBird(m) || m == moAirElemental || m == moSkeleton || isDragon(m) || m == moShadow || isGhost(m);
|
||||
}
|
||||
|
||||
bool isThorny(eWall w) { return w == waRose; }
|
||||
|
||||
bool checkOrb(eMonster m1, eItem orb) {
|
||||
if(m1 == moPlayer) return markOrb(orb);
|
||||
if(isFriendly(m1)) return markEmpathy(orb);
|
||||
|
Loading…
Reference in New Issue
Block a user