mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
changes:: princess::reviveAt was not kept
This commit is contained in:
parent
f04a73695d
commit
6e4b041f6b
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user