1
0
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:
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

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