Major item refactor, still broken

This commit is contained in:
2025-08-24 19:34:09 +01:00
parent 22b4be440a
commit 94f6d5c630
62 changed files with 820 additions and 805 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ data Creature = Creature
, _crType :: CreatureType
, _crID :: Int
, _crHP :: Int
, _crInv :: IM.IntMap Item
, _crInv :: IM.IntMap Int
, _crManipulation :: Manipulation
, _crEquipment :: M.Map EquipSite Int
, _crDamage :: [Damage]
+1 -1
View File
@@ -25,7 +25,7 @@ data EquipSite
| OnLeftWrist
| OnRightWrist
| OnLegs
| OnSpecial
-- | OnSpecial
deriving (Eq, Ord, Show, Read)
--deriving (Eq, Ord, Show, Read) --Generic, Flat)
@@ -20,7 +20,7 @@ data Manipulation -- should be ManipulatedObject?
data ManipulatedObject
= SortInventory
| SelectedItem
{ _imSelectedItem :: Int
{ _imSelectedItem :: Int -- this should probably be the itmid, not the invid
, _imRootSelectedItem :: Int
, _imAttachedItems :: IS.IntSet
}
+1 -1
View File
@@ -99,7 +99,7 @@ import Picture.Data
data LWorld = LWorld
{ _creatures :: IM.IntMap Creature
, _creatureGroups :: IM.IntMap CrGroupParams
, _itemLocations :: IM.IntMap ItemLocation
-- , _itemLocations :: IM.IntMap ItemLocation
, _items :: IM.IntMap Item
, _clouds :: [Cloud]
, _dusts :: [Dust]