Extend inv item location information to include "attached" items
This commit is contained in:
@@ -125,7 +125,7 @@ floorItemPickupInfo n itm
|
||||
-- it is probably desirable for this to crash hard for now
|
||||
yourAugmentedItem :: (Item -> a) -> a -> (Either FloorItem Button -> a) -> World -> a
|
||||
yourAugmentedItem f x g w = case you w ^? crManipulation . manObject of
|
||||
Just (InInventory (SelectedItem i _)) -> f $ yourInv w ^?! ix i
|
||||
Just (InInventory (SelectedItem i _ _)) -> f $ yourInv w ^?! ix i
|
||||
Just (InNearby (SelCloseObject i)) -> g $ w ^?! hud . closeObjects . ix i
|
||||
_ -> x
|
||||
|
||||
|
||||
Reference in New Issue
Block a user