1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

changes:: fixed Galapagos

This commit is contained in:
Zeno Rogue 2020-03-02 17:53:13 +01:00
parent a33c4b8e50
commit 9ded3f8c7c
3 changed files with 4 additions and 2 deletions

View File

@ -2510,7 +2510,7 @@ EX namespace tortoise {
EX int getb(cell *where) {
if(emap.count(where)) return emap[where];
return getBits(where);
return getBits(where) & ((1<<numbits)-1);
}
EX int countBits(int c) {

View File

@ -153,12 +153,14 @@ EX bool collectItem(cell *c2, bool telekinesis IS(false)) {
else if(c2->item == itBabyTortoise) {
using namespace tortoise;
int bnew = babymap[c2];
changes.map_value(babymap, c2);
babymap.erase(c2);
int bold = seekbits;
seekbits = bnew;
changes.value_set(tortoise::last, seekbits);
if(seek()) {
cell *c = passable(cwt.at, NULL, 0) ? cwt.at : c2;
changes.ccell(c);
c->item = itBabyTortoise;
if(c == c2) dopickup = false;
changes.map_value(babymap, c);

View File

@ -1035,7 +1035,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
}
if(!c->monst && !tactic::on && !racing::on && !yendor::on && !randomPatternsMode && !peace::on && !euclid && hrand(4000) < 10 && !safety) {
c->item = itBabyTortoise;
tortoise::babymap[c] = getBits(c) ^ tortoise::getRandomBits();
tortoise::babymap[c] = tortoise::getb(c) ^ tortoise::getRandomBits();
}
}
break;