Redo tree composition

This commit is contained in:
2022-06-10 00:08:32 +01:00
parent 3edc7a0a58
commit 5532c25d3c
13 changed files with 114 additions and 52 deletions
+4 -3
View File
@@ -1,5 +1,6 @@
--{-# LANGUAGE TupleSections #-}
module Dodge.LockAndKey where
import Dodge.UseAll
import Dodge.Data
import Dodge.Tree
--import Dodge.LevelGen.Data
@@ -114,7 +115,7 @@ someCrits = do
corridorBoss :: RandomGen g => Creature -> State g (LabTree Room)
corridorBoss cr = do
endroom <- bossRoom cr
return (treeFromPost (replicate 5 $ corridor)
( endroom)
,TreeSubLabelling ("corridorBoss-"++_crName cr) Nothing)
return ( toOnward ("corridorBoss-"++_crName cr)
, treeFromPost (replicate 5 $ corridor) ( endroom)
)