Work on mapper item, simpler generation of items from console
This commit is contained in:
@@ -341,7 +341,7 @@ useLoadedAmmo itmtree cr (cme, w) (mzid, Just (mz, x, magtree)) = (,) (cme & cme
|
||||
|
||||
itemDetectorEffect :: Item -> Creature -> World -> World
|
||||
itemDetectorEffect itm cr w = fromMaybe w $ do
|
||||
DETECTOR dt <- itm ^? itType . ibtHeld
|
||||
DETECTOR dt <- itm ^? itType
|
||||
return $ case dt of
|
||||
ITEMDETECTOR -> aRadarPulse ObItem cr w
|
||||
CREATUREDETECTOR -> aRadarPulse ObCreature cr w
|
||||
|
||||
Reference in New Issue
Block a user