Pass room id rather than room during placement

This commit is contained in:
2025-09-25 22:31:09 +01:00
parent f5a3486f72
commit 9ed6d75853
4 changed files with 40 additions and 38 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ setRoomInt x = do
i <- nextLayoutInt
return (i,x & rmPmnts .:~ sps0 (PutWorldUpdate (f i)))
where
f i rm _ = genInts . at i ?~ (rm ^?! rmMID . _Just)
f i rid _ gw = gw & genInts . at i ?~ (gw ^?! genRooms . ix rid . rmMID . _Just)
setTreeInts :: Tree Room -> State LayoutVars ([Int],Tree Room)
setTreeInts x = do