Partially working change to selected items
This commit is contained in:
+2
-2
@@ -37,8 +37,8 @@ useE eo = case eo of
|
||||
trySiphonFuel :: Item -> Creature -> World -> World
|
||||
trySiphonFuel itm cr w = fromMaybe w $ do
|
||||
eix <- itm ^? itLocation . ipInvID
|
||||
hix <- cr ^? crInvSel . iselPos
|
||||
guard (cr ^? crInvSel . iselAction == Just NoInvSelAction)
|
||||
hix <- cr ^? crInvSel . isel . ispItem
|
||||
guard (cr ^? crInvSel . isel . iselAction == Just NoInvSelAction)
|
||||
la <- cr ^? crInv . ix hix . itUse . heldConsumption
|
||||
atype <- la ^? laAmmoType
|
||||
guard (isGas atype)
|
||||
|
||||
Reference in New Issue
Block a user