Two main GUI elements are placed for the left side status and the bottom combat UIs.

This commit is contained in:
Zed A. Shaw 2025-02-12 17:55:21 -05:00
parent 1790eec697
commit be4d0d51de
4 changed files with 123 additions and 27 deletions

View file

@ -336,21 +336,17 @@ inline void straight_path(Map &map, PointList &holes, Point src, Point target) {
}
void WorldBuilder::tunnel_doors(PointList &holes, Room &src, Room &target) {
int path_type = Random::uniform<int>(0, 3);
int path_type = Random::uniform<int>(0, 10);
switch(path_type) {
case 0:
// for now do 25% as simple straight paths
straight_path($map, holes, src.exit, target.entry);
break;
case 1:
// for now do 25% as simple straight paths
straight_path($map, holes, src.exit, target.entry);
break;
default:
// then do the rest as random with fallback
if(!random_path($map, holes, src.exit, target.entry)) {
straight_path($map, holes, src.exit, target.entry);
}
break;
default:
// for now do 25% as simple straight paths
straight_path($map, holes, src.exit, target.entry);
}
}