Work on orienting and drawing attachments

This commit is contained in:
2024-09-30 23:02:22 +01:00
parent 48b8cfe7ef
commit 752b568a86
13 changed files with 340 additions and 229 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ itemUseEffect cr it w = case it ^. ldtValue . itUse of
CraftUse{} -> w
AttachUse{} -> selectUse it cr w
TargetingUse {} -> w
AmmoMagUse{} -> w
UseAmmoMag{} -> w
ScopeUse{} -> w
BulletModUse{} -> w
where
@@ -107,7 +107,7 @@ useItemLeftClick cr w = fromMaybe w $ do
ConsumeUse{} -> return $ useItemLeftClick' cr w
EquipUse{} -> return $ useItemLeftClick' cr w
UseHotkey{} -> return $ useItemLeftClick' cr w
AmmoMagUse{} -> return w
UseAmmoMag{} -> return w
_ -> Nothing
useItemLeftClick' :: Creature -> World -> World