mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-26 00:47:00 +00:00
ls:: fixed Land of Storms in Horodisk and Voronoi
This commit is contained in:
parent
5c24213092
commit
ed8b7d5d1d
16
landgen.cpp
16
landgen.cpp
@ -1440,13 +1440,23 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
|
||||
c->wall = waSandstone;
|
||||
}
|
||||
|
||||
for(int i=0; i<c->type; i++)
|
||||
if(c->move(i) && c->move(i)->land != laStorms && c->move(i)->land != laNone)
|
||||
c->wall = waNone;
|
||||
if(ls::horodisk_structure()) {
|
||||
if(celldistAlt(c) >= horodisk_from) c->wall = waNone;
|
||||
}
|
||||
else if(!ls::voronoi_structure()) {
|
||||
for(int i=0; i<c->type; i++)
|
||||
if(c->move(i) && c->move(i)->land != laStorms && c->move(i)->land != laNone)
|
||||
c->wall = waNone;
|
||||
}
|
||||
}
|
||||
if(d == BARLEV && randstorm) {
|
||||
c->landparam = hrand(1000000);
|
||||
}
|
||||
if(d == 7 && ls::voronoi_structure()) {
|
||||
for(int i=0; i<c->type; i++)
|
||||
if(c->move(i) && c->move(i)->land != laStorms)
|
||||
c->wall = waNone;
|
||||
}
|
||||
if(d == BARLEV-1 && randstorm) {
|
||||
/* static int stormlevel, stormgroup;
|
||||
if(!stormlevel) stormgroup = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user