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