mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-15 11:45:48 +00:00
fixed a crash with Grail
This commit is contained in:
parent
1b61d7dc22
commit
fda1f26fbd
@ -260,8 +260,10 @@ EX bool collectItem(cell *c2, cell *last, bool telekinesis IS(false)) {
|
|||||||
items[itOrbSpeed] += v;
|
items[itOrbSpeed] += v;
|
||||||
items[itHolyGrail]++;
|
items[itHolyGrail]++;
|
||||||
addMessage(XLAT("Congratulations! You have found the Holy Grail!"));
|
addMessage(XLAT("Congratulations! You have found the Holy Grail!"));
|
||||||
if(!eubinary) changes.value_keep(c2->master->alt->emeraldval);
|
if(!eubinary && c2->master->alt) {
|
||||||
if(!eubinary) c2->master->alt->emeraldval |= GRAIL_FOUND;
|
changes.value_keep(c2->master->alt->emeraldval);
|
||||||
|
c2->master->alt->emeraldval |= GRAIL_FOUND;
|
||||||
|
}
|
||||||
achievement_collection(c2->item);
|
achievement_collection(c2->item);
|
||||||
}
|
}
|
||||||
else if(c2->item == itKey) {
|
else if(c2->item == itKey) {
|
||||||
|
Loading…
Reference in New Issue
Block a user