1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

fixed cheatmarking

This commit is contained in:
Zeno Rogue 2018-04-14 09:34:33 +02:00
parent 66c166a81c
commit 15e26435f9
2 changed files with 9 additions and 9 deletions

View File

@ -90,7 +90,7 @@ void initgame() {
bool use_special_land =
!safety &&
(peace::on || tactic::on || geometry || gp::on);
(peace::on || tactic::on || geometry || gp::on || randomPatternsMode || yendor::on);
if(use_special_land) firstland = specialland;
@ -251,7 +251,7 @@ void initgame() {
#if CAP_INV
if(inv::on) inv::init();
#endif
if(!randomPatternsMode && !tactic::on && !yendor::on && !peace::on) {
if(!use_special_land) {
if(firstland != (princess::challenge ? laPalace : laIce)) cheater++;
}
welcomeMessage();

View File

@ -303,20 +303,20 @@ namespace yendor {
won = false;
if(!easy) items[itOrbYendor] = bestscore[modecode()][challenge];
chaosmode = (clev().flags & YF_CHAOS);
specialland = firstland = clev().l;
specialland = clev().l;
if(clev().flags & YF_START_AL) {
firstland = laAlchemist;
specialland = laAlchemist;
items[itElixir] = 50;
items[itFeather] = 50;
}
if(firstland == laPower)
if(specialland == laPower)
items[itOrbSpeed] = 60, items[itOrbWinter] = 60;
if(clev().flags & YF_START_CR) {
firstland = laCrossroads;
specialland = laCrossroads;
}
if(firstland == laGraveyard) items[itBone] = 10;
if(firstland == laEmerald) items[itEmerald] = 10;
if(firstland == laCocytus) items[itFjord] = 10;
if(specialland == laGraveyard) items[itBone] = 10;
if(specialland == laEmerald) items[itEmerald] = 10;
if(specialland == laCocytus) items[itFjord] = 10;
if(!euclid) {
if(clev().flags & YF_DEAD) items[itGreenStone] = 100;
if(clev().flags & YF_DEAD5) items[itGreenStone] = 5;