Commit before only putting item locations in single itemLocations intmap
This commit is contained in:
@@ -253,7 +253,7 @@ tryCombine :: SelectionSections CombinableItem -> World -> World
|
||||
tryCombine sss w = fromMaybe w $ do
|
||||
(i, j) <- sss ^? sssExtra . sssSelPos . _Just
|
||||
CombinableItem is it _ <- sss ^? sssSections . ix i . ssItems . ix j . siPayload
|
||||
return $ createAndSelectItem it (foldr (rmInvItem 0) w (sort is))
|
||||
return $ snd (createItemYou it (foldr (destroyInvItem 0) w (sort is)))
|
||||
& cWorld . lWorld . creatures . ix 0 . crHammerPosition .~ HammerDown
|
||||
|
||||
maybeExitCombine :: Universe -> Universe
|
||||
|
||||
Reference in New Issue
Block a user