1
0
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:
Zeno Rogue
2020-02-29 20:45:01 +01:00
parent c390b63e0a
commit 20910ec364
5 changed files with 14 additions and 7 deletions

View File

@@ -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