Move towards external targeting items

This commit is contained in:
2024-09-28 23:01:50 +01:00
parent d1690ed3ac
commit 241191ee1b
11 changed files with 38 additions and 27 deletions
+11 -7
View File
@@ -1,8 +1,12 @@
/home/justin/Haskell/loop/src/Dodge/Data/Item/Use/Consumption/Ammo.hs:53:27-44: error:
• Not in scope: type constructor or class ProjectileCreate
Perhaps you meant one of these:
ProjectileUpdate (line 21), ProjectileDraw (line 18)
• In the Template Haskell quotation ''ProjectileCreate
/home/justin/Haskell/loop/src/Dodge/Item/Display.hs:(109,28)-(121,21): warning: [-Wincomplete-patterns]
Pattern match(es) are non-exhaustive
In a case alternative: Patterns not matched: TargetingUse _ _ _
|
109 | itemNumberDisplay cr itm = case iu of
| ^^^^^^^^^^...
/home/justin/Haskell/loop/src/Dodge/Creature/Impulse/UseItem.hs:(36,22)-(46,19): warning: [-Wincomplete-patterns]
Pattern match(es) are non-exhaustive
In a case alternative: Patterns not matched: TargetingUse _ _ _
|
53 | deriveJSON defaultOptions ''ProjectileCreate
| ^^^^^^^^^^^^^^^^^^
36 | itemEffect cr it w = case it ^. ldtValue . itUse of
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...