Auto create tree structure for held item ammo, add derive instances

This commit is contained in:
2024-09-13 17:34:29 +01:00
parent fb104a1719
commit 338d9e8422
10 changed files with 72 additions and 49 deletions
+5 -3
View File
@@ -8,14 +8,16 @@ module Dodge.Data.ComposedItem
import Control.Lens
import Data.Aeson
import Data.Aeson.TH
import Dodge.Data.Item.Use.Consumption.Ammo
data ComposeLinkType = AmmoInLink
data ComposeLinkType
= AmmoInLink AmmoType
| AmmoModLink
data ComposedItem = WeaponCI
| WeaponScopeCI
| AmmoModifierCI
| BulletAmmoCI
| AmmoModifierCI AmmoType
| AmmoCI AmmoType
| UncomposableCI
deriving (Eq,Ord,Show,Read)