1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-15 14:27:37 +00:00

chaosmode variants (CLI only for now)

This commit is contained in:
Zeno Rogue
2019-05-27 07:17:39 +02:00
parent 638274504c
commit 2b1aebb9b4
9 changed files with 73 additions and 7 deletions

View File

@@ -455,7 +455,7 @@ namespace yendor {
if(phase == 1) {
won = false;
if(!easy) items[itOrbYendor] = bestscore[modecode()][challenge];
chaosmode = (clev().flags & YF_CHAOS);
chaosmode = (clev().flags & YF_CHAOS) ? 1 : 0;
specialland = clev().l;
if(clev().flags & YF_START_AL) {
specialland = laAlchemist;
@@ -704,7 +704,7 @@ namespace yendor {
if(yendor::on) {
yendor::won = true;
if(!cheater) {
dynamicval<bool> c(chaosmode, false);
dynamicval<int> c(chaosmode, 0);
yendor::bestscore[modecode()][yendor::challenge] =
max(yendor::bestscore[modecode()][yendor::challenge], items[itOrbYendor]);
yendor::uploadScore();