1
0
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:
Zeno Rogue
2018-04-09 18:05:23 +02:00
parent b9a6402ba7
commit 033c626dfc
19 changed files with 135 additions and 136 deletions

View File

@@ -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;
}