Start adding DT versions of LDT functions

This commit is contained in:
2025-07-10 21:36:52 +01:00
parent fd5f5105aa
commit 9543c2c789
4 changed files with 29 additions and 7 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ module Dodge.Item.Draw (
itemEquipPict,
) where
import Dodge.DoubleTree
import Dodge.Data.Equipment.Misc
import Dodge.Data.ComposedItem
import Dodge.Data.DoubleTree
@@ -22,7 +23,7 @@ itemEquipPict cr itmtree
, Just attachpos <- equipAttachPos <$> itm ^? itType . ibtEquip
= equipPosition esite cr attachpos (itemSPic itm)
| itm ^? itLocation . ilInvID == cr ^? crManipulation . manObject . imRootSelectedItem
= overPosSP (heldItemOffset loc cr) (itemTreeSPic itmtree)
= overPosSP (heldItemOffset loc cr) (itemTreeSPic $ ldtToDT itmtree)
| otherwise = mempty
where
itm = itmtree ^. ldtValue . _1