changes:: princess::reviveAt was not kept

This commit is contained in:
Zeno Rogue 2020-03-02 02:35:03 +01:00
parent f04a73695d
commit 6e4b041f6b
2 changed files with 2 additions and 1 deletions

View File

@ -503,6 +503,7 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
}
if(items[itSavedPrincess] == 0 && !inv::on) {
items[itOrbLove] = 0;
changes.value_keep(princess::reviveAt);
princess::reviveAt = gold(NO_LOVE) + 20;
}
}

View File

@ -270,7 +270,7 @@ EX bool collectItem(cell *c2, bool telekinesis IS(false)) {
if(numOrb) achievement_count("ORB", numOrb, 0);
if(princess::reviveAt && gold(NO_LOVE) >= princess::reviveAt && !inv::on) {
princess::reviveAt = 0,
changes.value_set(princess::reviveAt, 0);
items[itSavedPrincess] = 1;
addMessage("You have enough treasure now to revive the Princess!");
}