mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-14 12:47:10 +00:00
refactored frog_power and a minor fix
This commit is contained in:
@@ -345,6 +345,14 @@ EX bool conegraph(cell *c) {
|
||||
return ((wmescher && wmspatial) || wmascii3) && (conegraphtype(c) || (c->wall == waBarrier && c->land == laOceanWall));
|
||||
}
|
||||
|
||||
/** Determine the power of a frog monster. Also used to determine whether monster is a frog. */
|
||||
EX eItem frog_power(eMonster m) {
|
||||
if(m == moFrog) return itOrbFrog;
|
||||
if(m == moPhaser) return itOrbPhasing;
|
||||
if(m == moVaulter) return itOrbDash;
|
||||
return itNone;
|
||||
}
|
||||
|
||||
EX bool hornStuns(cell *c) {
|
||||
eMonster m = c->monst;
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user