made stairs movable

This commit is contained in:
grimsace
2026-04-27 11:16:01 -05:00
parent 277f8f5391
commit c4a8d606e1
3 changed files with 200 additions and 7 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ fn get_stair_count(settings: &UiSettings, gap_idx: usize) -> usize {
}
// Ensure a staircase is fully contained within a room. If not, extend the nearest existing room or create a new one.
fn ensure_stair_in_room(layout: &mut DungeonLayout, stair: &layout::Staircase) {
pub fn ensure_stair_in_room(layout: &mut DungeonLayout, stair: &layout::Staircase) {
let stair_x = stair.cell.0;
let stair_y = stair.cell.1;
let stair_size = stair.size;