refactored frog_power and a minor fix

This commit is contained in:
Zeno Rogue
2020-03-07 04:47:10 +01:00
parent c390b63e0a
commit 20910ec364
5 changed files with 14 additions and 7 deletions
+3 -4
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;