1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

changes:: changes.value_keep(imputed) for Mutant, not for normal Ivy

This commit is contained in:
Zeno Rogue 2020-03-01 14:08:40 +01:00
parent 831cadcb1d
commit 806a224f91

View File

@ -482,6 +482,7 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
if(isMutantIvy(m) || m == moFriendlyIvy) { if(isMutantIvy(m) || m == moFriendlyIvy) {
pcount = 0; pcount = 0;
if(isMutantIvy(m)) changes.at_commit([] { clearing::direct++; }); if(isMutantIvy(m)) changes.at_commit([] { clearing::direct++; });
changes.value_keep(clearing::imputed);
bignum s = ivy_total() - 1; bignum s = ivy_total() - 1;
killMutantIvy(c, who); killMutantIvy(c, who);
s = ivy_total() - s; s = ivy_total() - s;
@ -738,7 +739,6 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
bignum s = ivy_total() - 1; bignum s = ivy_total() - 1;
/*if((m == moIvyBranch || m == moIvyHead) && c->move(c->mondir)->monst == moIvyRoot) /*if((m == moIvyBranch || m == moIvyHead) && c->move(c->mondir)->monst == moIvyRoot)
ivynext(c, moIvyNext); */ ivynext(c, moIvyNext); */
changes.value_keep(clearing::imputed);
killIvy(c, who); killIvy(c, who);
s = ivy_total() - s; s = ivy_total() - s;
if(s > bignum(1) && vid.bubbles_special) if(s > bignum(1) && vid.bubbles_special)