Commit before checking where mounted lights became misplaced

This commit is contained in:
2025-10-04 00:34:45 +01:00
parent a642198bfc
commit aba855e0a6
3 changed files with 3 additions and 4 deletions
-1
View File
@@ -1,7 +1,6 @@
{ {
"_debug_booleans": [ "_debug_booleans": [
"Show_ms_frame", "Show_ms_frame",
"Enable_debug",
"Pathing" "Pathing"
], ],
"_debug_view_clip_bounds": "NoRoomClipBoundaries", "_debug_view_clip_bounds": "NoRoomClipBoundaries",
+1 -2
View File
@@ -4,7 +4,6 @@ module Dodge.Room.Ngon where
import Dodge.Room.Path import Dodge.Room.Path
import Data.List import Data.List
import qualified Data.Set as S import qualified Data.Set as S
--import Data.Maybe
import Data.Tile import Data.Tile
import Dodge.Data.GenWorld import Dodge.Data.GenWorld
import Dodge.Default.Room import Dodge.Default.Room
@@ -20,7 +19,7 @@ roomNgon n x = do
return return
defaultRoom defaultRoom
{ _rmPolys = [poly] { _rmPolys = [poly]
, _rmLinks = map f lnks -- muout (init lnks) ++ muin[last lnks] , _rmLinks = map f lnks
, _rmPath = linksGridToPath (map f lnks) path4 , _rmPath = linksGridToPath (map f lnks) path4
, _rmPmnts = [thelight] , _rmPmnts = [thelight]
, _rmBound = [poly] , _rmBound = [poly]
+2 -1
View File
@@ -1,5 +1,6 @@
module Dodge.Room.Tutorial where module Dodge.Room.Tutorial where
import Dodge.Item.Held.Utility
import Control.Monad import Control.Monad
import qualified Data.IntMap.Strict as IM import qualified Data.IntMap.Strict as IM
import qualified Data.IntSet as IS import qualified Data.IntSet as IS
@@ -200,7 +201,7 @@ tutLight = do
return $ return $
tToBTree "TutLight" $ tToBTree "TutLight" $
treePost treePost
[ x [ x -- & rmPmnts <>~ [sps (PS 0 0) (PutFlIt torch)]
, corridor & rmPmnts .~ mempty , corridor & rmPmnts .~ mempty
, removeLights y , removeLights y
, corridor & rmPmnts .~ mempty , corridor & rmPmnts .~ mempty