Tweak longRoom

This commit is contained in:
2022-03-20 13:46:31 +00:00
parent e811e67ff9
commit 6c3e335ded
6 changed files with 25 additions and 30 deletions
+12 -13
View File
@@ -50,13 +50,12 @@ powerFakeout = do
startRoom :: RandomGen g => Int -> State g (SubCompTree Room)
startRoom i = join $ uncurry takeOneWeighted $ unzip
-- [ (,) (0.5::Float) $ chainUses <$> sequence [powerFakeout,weaponRoom]
-- , (,) one rezBoxesWp
-- , (,) one rezBoxesThenWeaponRoom
[ (,) one rezBoxThenWeaponRoom
-- , (,) one rezBoxesWpCrit
-- , (,) 1 $ runPastStart i
-- , (,) 1 $ startCrafts >>= roomsContaining [] >>= rezBoxThenRooms
[ (,) (0.5::Float) $ chainUses <$> sequence [powerFakeout,weaponRoom i]
, (,) one rezBoxesWp
, (,) one (rezBoxThenWeaponRoom i)
, (,) one rezBoxesWpCrit
, (,) 1 $ runPastStart i
, (,) 1 $ startCrafts >>= roomsContaining [] >>= rezBoxThenRooms
]
where
one = 1::Float
@@ -78,16 +77,16 @@ rezBoxStart = do
ls <- rezColor
return $ treeFromPost [PassDown $ rezBox ls] (UseAll door)
rezBoxesThenWeaponRoom :: RandomGen g => State g (SubCompTree Room)
rezBoxesThenWeaponRoom = do
rezBoxesThenWeaponRoom :: RandomGen g => Int -> State g (SubCompTree Room)
rezBoxesThenWeaponRoom i = do
rboxes <- rezBoxes
wroom <- weaponRoom
wroom <- weaponRoom i
return $ rboxes `passUntilUseAll` [wroom]
rezBoxThenWeaponRoom :: RandomGen g => State g (SubCompTree Room)
rezBoxThenWeaponRoom = do
rezBoxThenWeaponRoom :: RandomGen g => Int -> State g (SubCompTree Room)
rezBoxThenWeaponRoom i = do
rcol <- rezColor
treeFromTrunk [PassDown $ rezBox rcol,PassDown door] <$> weaponRoom
treeFromTrunk [PassDown $ rezBox rcol,PassDown door] <$> weaponRoom i
rezBoxThenRoom :: RandomGen g => Room -> State g (SubCompTree Room)
rezBoxThenRoom r = do