mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-02 10:48:04 +00:00
ls:: randomwalk_size parameter added
This commit is contained in:
@@ -2847,9 +2847,11 @@ EX void repairLandgen(cell *c) {
|
||||
}
|
||||
}
|
||||
|
||||
EX int randomwalk_size = 10;
|
||||
|
||||
EX void setland_randomwalk(cell *c) {
|
||||
if(c->land) return;
|
||||
if(hrand(10) == 0) setland(c, currentlands[hrand(isize(currentlands))]);
|
||||
if(hrand(randomwalk_size) == 0) setland(c, currentlands[hrand(isize(currentlands))]);
|
||||
else {
|
||||
cell *c2 = nullptr;
|
||||
for(int i=0; i<10 && !(c2 && (!disksize || is_in_disk(c2)) && is_in_fractal(c2)); i++)
|
||||
|
Reference in New Issue
Block a user