Move towards using item structural function when using items
This commit is contained in:
@@ -12,8 +12,8 @@ import Picture
|
||||
-- it would be nice to get rid of some redundant checks here
|
||||
drawTargeting :: Item -> World -> Picture
|
||||
drawTargeting itm w = fromMaybe mempty $ do
|
||||
p <- itm ^? itUse . tgPos . _Just
|
||||
let thepic = case itm ^? itUse . tgActive of
|
||||
p <- itm ^? itTargeting . itTgPos . _Just
|
||||
let thepic = case itm ^? itTargeting . itTgActive of
|
||||
Just True -> activeTargetCursorPic
|
||||
_ -> targetCursorPic
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user