Allow for selection of equipment position

This commit is contained in:
2022-05-24 14:03:18 +01:00
parent fa82923a12
commit 7f55ba117f
14 changed files with 221 additions and 37 deletions
+3 -3
View File
@@ -115,6 +115,7 @@ flatShield = defaultEquipment
, _aimZoom = ItZoom 20 0.2 1
, _aimStance = TwoHandFlat
}
, _heldScroll = \_ _ -> id
}
, _itInvSize = 3
, _itInvDisplay = \it -> head (basicItemDisplay it) :
@@ -236,9 +237,8 @@ headLamp = defaultEquipment
& itUse . eqSite .~ GoesOnHead
createHeadLamp :: Creature -> Int -> World -> World
createHeadLamp cr _ w = w
& tempLightSources .:~ tlsTimeRadColPos 1 200 0.5
((_crPos cr `v2z` 0) +.+.+ rotate3 (_crDir cr) (translatePointToHead cr (V3 5 0 3)))
createHeadLamp cr _ = tempLightSources .:~ tlsTimeRadColPos 1 200 0.7
((_crPos cr `v2z` 0) +.+.+ rotate3 (_crDir cr) (translatePointToHead cr (V3 5 0 3)))
powerLegs :: Item
powerLegs = defaultEquipment