Introduce idea of world event flags
This commit is contained in:
@@ -26,6 +26,7 @@ useItem cr' w = fromMaybe (f w) $ do
|
||||
itRef <- cr ^? crManipulation . manObject . inInventory . ispItem
|
||||
it <- cr ^? crInv . ix itRef
|
||||
return $ itemEffect cr it w
|
||||
& worldEventFlags . at InventoryChange ?~ ()
|
||||
where
|
||||
f = cWorld . lWorld . creatures . ix (_crID cr') . crHammerPosition .~ HammerDown
|
||||
|
||||
|
||||
Reference in New Issue
Block a user