Implement targeting launcher shells using separate item

This commit is contained in:
2024-09-29 16:24:26 +01:00
parent 7d72fa3c5d
commit 88c3e02459
36 changed files with 747 additions and 610 deletions
+6 -5
View File
@@ -69,11 +69,12 @@ drawSweep cr w = fromMaybe mempty $ do
mwp = mouseWorldPos theinput campos
anyTargeting :: Configuration -> World -> SPic
anyTargeting cfig w = fromMaybe mempty $ do
tt <- cr ^? crTargeting . ctType . _Just
return $ noShape $ drawTargeting tt cr cfig w
where
cr = you w
anyTargeting _ _ = mempty
--anyTargeting cfig w = fromMaybe mempty $ do
-- tt <- cr ^? crTargeting . ctType . _Just
-- return $ noShape $ drawTargeting tt cr cfig w
-- where
-- cr = you w
drawCreature :: Creature -> SPic
drawCreature cr = case _crType cr of