mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-04 15:04:29 +00:00
refactored frog_power and a minor fix
This commit is contained in:
1 parent
c390b63e0a
commit
20910ec364
5 files changed
+14
-7
No files matched your search
@@ -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