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

fixed BabyTortoise generation for ls::single()

This commit is contained in:
Zeno Rogue 2021-08-04 20:18:54 +02:00
parent 9ce7a243ed
commit 9896f8d311

View File

@ -1034,7 +1034,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
else c2->mondir = NODIR; else c2->mondir = NODIR;
} }
} }
if(!c->monst && !tactic::on && !racing::on && !yendor::on && !randomPatternsMode && !peace::on && !euclid && hrand(4000) < 10 && !safety) { if(!c->monst && !ls::single() && !racing::on && !yendor::on && !randomPatternsMode && !peace::on && !euclid && hrand(4000) < 10 && !safety) {
c->item = itBabyTortoise; c->item = itBabyTortoise;
tortoise::babymap[c] = tortoise::getb(c) ^ tortoise::getRandomBits(); tortoise::babymap[c] = tortoise::getb(c) ^ tortoise::getRandomBits();
} }
@ -1807,7 +1807,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
int chance = 50 + items[itBabyTortoise]*2; int chance = 50 + items[itBabyTortoise]*2;
if(quickfind(laTortoise)) chance += 150; if(quickfind(laTortoise)) chance += 150;
if((tactic::on || euclid || peace::on) && hrand(4000) < chance && !safety) { if((ls::single() || euclid || peace::on) && hrand(4000) < chance && !safety) {
c->item = itBabyTortoise; c->item = itBabyTortoise;
tortoise::babymap[c] = tortoise::getb(c) ^ tortoise::getRandomBits(); tortoise::babymap[c] = tortoise::getb(c) ^ tortoise::getRandomBits();
} }