mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
Cubic Windy Plains
This commit is contained in:
parent
8182a206b9
commit
7aa2d90142
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user