Add targeting reticule for bezier gun
This commit is contained in:
@@ -22,12 +22,16 @@ basicCrPict
|
||||
-> Creature
|
||||
-> World
|
||||
-> Picture
|
||||
basicCrPict col cr _ = uncurry translate (_crPos cr) $ rotate (_crDir cr) $ pictures
|
||||
[ onLayer CrLayer . piercingMod $ bluntScale naked
|
||||
basicCrPict col cr w = pictures $
|
||||
targetingPic ++
|
||||
[ tr . onLayer CrLayer . piercingMod $ bluntScale naked
|
||||
-- , drawAwakeLevel cr
|
||||
, drawEquipment cr
|
||||
, tr $ drawEquipment cr
|
||||
]
|
||||
where
|
||||
targetingPic = IM.elems $ IM.mapMaybeWithKey f $ _crInv cr
|
||||
f invid it = fmap ((\g -> g invid it cr w) . snd) (it ^? itTargeting . _Just)
|
||||
tr = uncurry translate (_crPos cr) . rotate (_crDir cr)
|
||||
cdir = _crDir cr
|
||||
naked
|
||||
| strikeMelee = color white $ circleSolid $ _crRad cr
|
||||
|
||||
Reference in New Issue
Block a user