mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-03-17 18:49:43 +00:00
restartGame, wrong mode, and resetModes now use constants instead of magic char names
This commit is contained in:
5
game.cpp
5
game.cpp
@@ -4233,7 +4233,8 @@ void moveWorm(cell *c) {
|
||||
else
|
||||
addMessage(XLAT("The sandworm explodes!"));
|
||||
playSound(NULL, "explosion");
|
||||
achievement_gain("ZEBRAWORM", 'q');
|
||||
if(geometry == gQuotient)
|
||||
achievement_gain("ZEBRAWORM", rg::geometry);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -6726,7 +6727,7 @@ bool collectItem(cell *c2, bool telekinesis) {
|
||||
achievement_victory(true);
|
||||
|
||||
if(chaosmode && gold() >= 300 && !chaosAchieved) {
|
||||
achievement_gain("CHAOS", 'C');
|
||||
achievement_gain("CHAOS", rg::chaos);
|
||||
chaosAchieved = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user