mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-11 20:57:41 +00:00
patched chaos in aperiodic tilings
This commit is contained in:
13
landgen.cpp
13
landgen.cpp
@@ -2811,7 +2811,8 @@ EX void set_land_for_geometry(cell *c) {
|
||||
setland(c, currentlands[hrand(isize(currentlands))]);
|
||||
return;
|
||||
}
|
||||
if(ls::patched_chaos() && stdeuc) { /* note: Nil pached chaos done in setLandNil */
|
||||
/* note: Nil patched chaos done in setLandNil */
|
||||
if(ls::patched_chaos() && stdeuc) {
|
||||
cell *c2 = c;
|
||||
while(true) {
|
||||
forCellCM(c3, c2) if(cdist50(c3) < cdist50(c2)) { c2 = c3; goto again; }
|
||||
@@ -2822,6 +2823,16 @@ EX void set_land_for_geometry(cell *c) {
|
||||
c->land = c2->land;
|
||||
return;
|
||||
}
|
||||
if(ls::patched_chaos() && aperiodic) {
|
||||
cell *c2;
|
||||
if(hat::in())
|
||||
c2 = c->master->cmove(0)->cmove(0)->cmove(1)->cmove(1)->c7;
|
||||
else
|
||||
c2 = c->master->cmove(0)->cmove(0)->cmove(0)->cmove(0)->cmove(0)->cmove(1)->cmove(1)->cmove(1)->cmove(1)->cmove(1)->c7;
|
||||
if(!c2->land) setland(c2, currentlands[hrand(isize(currentlands))]);
|
||||
c->land = c2->land;
|
||||
return;
|
||||
}
|
||||
if(land_structure == lsChaosRW) {
|
||||
setland_randomwalk(c);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user