Make all items have an id an associated location

This commit is contained in:
2022-08-01 23:50:26 +01:00
parent 237cd3e020
commit 82aedc3830
11 changed files with 123 additions and 84 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ import Dodge.Data.Item.Targeting
data Item = Item
{ _itUse :: ItemUse
, _itType :: ItemType
, _itID :: Maybe Int
, _itID :: Int
, _itLocation :: ItemLocation
, _itIsHeld :: Bool
, _itEffect :: ItEffect
+2 -1
View File
@@ -35,8 +35,9 @@ data ItemValueType = MundaneItem | ArtefactItem
data ItemLocation
= InInv {_ipCrID :: Int, _ipInvID :: Int}
| OnTurret {_ipTuID :: Int}
| OnFloor {_ipFlID :: Int}
| VoidItm
| InVoid
deriving (Eq, Show, Read)
makeLenses ''ItemDimension