mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-18 20:08:06 +00:00
refactored frog_power and a minor fix
This commit is contained in:
@@ -667,10 +667,9 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
|
||||
c->item = itNone;
|
||||
}
|
||||
if(who == moPlayer || (isFriendly(who) && items[itOrbEmpathy])) {
|
||||
if(who != moPlayer) markOrb2(itOrbEmpathy);
|
||||
if(m == moFrog) items[itOrbFrog] += 5;
|
||||
if(m == moVaulter) items[itOrbDash] += 5;
|
||||
if(m == moPhaser) items[itOrbPhasing] += 5;
|
||||
eItem o = frog_power(m);
|
||||
if(o && who != moPlayer) markOrb2(itOrbEmpathy);
|
||||
items[o] += 5;
|
||||
}
|
||||
if(checkOrb(who, itOrbStone))
|
||||
petrify(c, waPetrified, m), pcount = 0;
|
||||
|
||||
Reference in New Issue
Block a user