Skip to content

Commit

Permalink
ls:: horocyclic variant of Warped Coast
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorogue committed Sep 22, 2023
1 parent 2c171f7 commit fb5e4d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bigstuff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2143,6 +2143,10 @@ EX void pick_hv_subland(cell *c, eLand l, int depth) {
c->wall = getElementalWall(hrand(2) ? c->barleft : c->barright);
}
}
else if(l == laWarpCoast) {
int i = (depth & 8);
setland(c, i ? laWarpCoast : laWarpSea);
}
else setland(c, l);
}

Expand Down
4 changes: 4 additions & 0 deletions landgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1945,6 +1945,10 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
c->wall = waBoat;
c->item = itCoral;
}
else if(hrand(6000) < 1000 && ls::hv_structure()) {
/* somehow there were not enough boats in hv_structure... */
forCellEx(c1, c) if(c1->land == laWarpCoast) c->wall = waBoat;
}
}

ONEMPTY if(c->land == laWarpCoast) {
Expand Down
2 changes: 1 addition & 1 deletion landlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ EX land_validity_t& land_validity(eLand l) {
if(l == laMirrorOld && !shmup::on) return not_implemented;
}

if(ls::hv_structure() && among(l, laPrairie, laDungeon, laEndorian, laBrownian, laWarpCoast, laWarpSea, laPrincessQuest)) return not_in_hv;
if(ls::hv_structure() && among(l, laPrairie, laDungeon, laEndorian, laBrownian, laPrincessQuest)) return not_in_hv;
if(ls::voronoi_structure() && among(l, laCamelot, laWhirlpool, laClearing)) return not_in_hv;
if(ls::horodisk_structure() && l != laCrossroads && isCrossroads(l)) return not_in_hv;

Expand Down

0 comments on commit fb5e4d2

Please sign in to comment.