Globally assign attachment orientations

This commit is contained in:
2025-06-26 20:59:38 +01:00
parent 494c7a4f89
commit 758c0aeec8
4 changed files with 10 additions and 10 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ module Dodge.Item.Draw.SPic (
itemTreeSPic,
) where
import Dodge.Item.Orientation
import Dodge.Item.MaxAmmo
import Color
import Data.Maybe
@@ -28,7 +29,7 @@ itemTreeSPic (LDT (itm,_,_) l r) =
itemRotTreeSPic :: Item -> (ItemLink, LabelDoubleTree ItemLink CItem) -> SPic
itemRotTreeSPic par (il, t) = translateSP p . overPosSP (Q.rotate q) $ itemTreeSPic t
where
(p, q) = _iatOrient il par (_iatType il) itm
(p, q) = orientAttachment par (_iatType il) itm
itm = t ^. ldtValue . _1
itemSPic :: Item -> SPic