Cubic Windy Plains

This commit is contained in:
Zeno Rogue 2017-11-03 20:55:41 +01:00
parent 8182a206b9
commit 7aa2d90142
2 changed files with 14 additions and 2 deletions

View File

@ -16,7 +16,14 @@ namespace whirlwind {
decodeMaster(c->master, x, y);
return 1+((((signed short)(y)+int(50000))/3)%3);
}
if(sphere) return getHemisphere(c, 0) > 0 ? 1 : 2;
if(S7 == 5) return getHemisphere(c, 0) > 0 ? 1 : 2;
if(S7 < 5) {
int d = celldistance(currentmap->gamestart(), c);
if(d == 0) return 0;
if(S7 == 4 && d == 3) return 0;
if(S7 == 3 && d == 2 && !ctof(c)) return 0;
return 1;
}
return zebra3(c);
}

View File

@ -958,9 +958,14 @@ void giantLandSwitch(cell *c, int d, cell *from) {
case laWhirlwind:
if(d == 9) {
if(sphere)
if(S7 == 5)
c->wall = (pseudohept(c) && (c->master->fiftyval == 0 || c->master->fiftyval == 6)) ?
waFan : waNone;
else if(sphere) {
if(whirlwind::fzebra3(c) == 0) c->wall = waFan;
if(S7 == 4 && celldistance(c, currentmap->gamestart()) == 2 && ctof(c))
c->wall = waChasm;
}
else if(!euclid && zebra3(c) == 0) c->wall = waFan;
else if(pseudohept(c) && hrand(2000) < 150)
c->wall = waChasm;