Implement reloading of single external magazines
This commit is contained in:
+1
-188
@@ -1,188 +1 @@
|
|||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:68:1-12: warning: [-Wunused-top-binds]
|
All good (615 modules, at 14:45:15)
|
||||||
Defined but not used: ‘ammoPosition’
|
|
||||||
|
|
|
||||||
68 | ammoPosition itm hit = case hit of
|
|
||||||
| ^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:119:1-16: warning: [-Wunused-top-binds]
|
|
||||||
Defined but not used: ‘bangStickAmmoPos’
|
|
||||||
|
|
|
||||||
119 | bangStickAmmoPos _ itm =
|
|
||||||
| ^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:125:1-16: warning: [-Wunused-top-binds]
|
|
||||||
Defined but not used: ‘volleygunAmmoPos’
|
|
||||||
|
|
|
||||||
125 | volleygunAmmoPos i =
|
|
||||||
| ^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:132:1-15: warning: [-Wunused-top-binds]
|
|
||||||
Defined but not used: ‘multigunAmmoPos’
|
|
||||||
|
|
|
||||||
132 | multigunAmmoPos i =
|
|
||||||
| ^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:259:1-10: warning: [-Wunused-top-binds]
|
|
||||||
Defined but not used: ‘drawBullet’
|
|
||||||
|
|
|
||||||
259 | drawBullet itm p q =
|
|
||||||
| ^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:337:1-17: warning: [-Wunused-top-binds]
|
|
||||||
Defined but not used: ‘bulletEffectColor’
|
|
||||||
|
|
|
||||||
337 | bulletEffectColor x = case x of
|
|
||||||
| ^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:343:1-15: warning: [-Wunused-top-binds]
|
|
||||||
Defined but not used: ‘bulletTrajColor’
|
|
||||||
|
|
|
||||||
343 | bulletTrajColor x = case x of
|
|
||||||
| ^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:350:1-18: warning: [-Wunused-top-binds]
|
|
||||||
Defined but not used: ‘bulletPayloadColor’
|
|
||||||
|
|
|
||||||
350 | bulletPayloadColor x = case x of
|
|
||||||
| ^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:358:1-15: warning: [-Wunused-top-binds]
|
|
||||||
Defined but not used: ‘energyBallColor’
|
|
||||||
|
|
|
||||||
358 | energyBallColor ebt = case ebt of
|
|
||||||
| ^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:407:11-12: warning: [-Wunused-matches]
|
|
||||||
Defined but not used: ‘it’
|
|
||||||
|
|
|
||||||
407 | flamerPic it =
|
|
||||||
| ^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Draw/SPic.hs:448:11-12: warning: [-Wunused-matches]
|
|
||||||
Defined but not used: ‘it’
|
|
||||||
|
|
|
||||||
448 | lasGunPic it =
|
|
||||||
| ^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Held/SprayGuns.hs:12:1-29: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Dodge.Reloading.Action’ is redundant
|
|
||||||
|
|
|
||||||
12 | import Dodge.Reloading.Action
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Held/Launcher.hs:4:1-29: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Dodge.Reloading.Action’ is redundant
|
|
||||||
|
|
|
||||||
4 | import Dodge.Reloading.Action
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Held/Cone.hs:6:1-29: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Dodge.Reloading.Action’ is redundant
|
|
||||||
|
|
|
||||||
6 | import Dodge.Reloading.Action
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Base/You.hs:45:19-20: warning: [-Wunused-matches]
|
|
||||||
Defined but not used: ‘cr’
|
|
||||||
|
|
|
||||||
45 | upDownAttachments cr i j s = s
|
|
||||||
| ^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Base/You.hs:45:22: warning: [-Wunused-matches]
|
|
||||||
Defined but not used: ‘i’
|
|
||||||
|
|
|
||||||
45 | upDownAttachments cr i j s = s
|
|
||||||
| ^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Base/You.hs:45:24: warning: [-Wunused-matches]
|
|
||||||
Defined but not used: ‘j’
|
|
||||||
|
|
|
||||||
45 | upDownAttachments cr i j s = s
|
|
||||||
| ^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Held/Stick.hs:12:1-29: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Dodge.Reloading.Action’ is redundant
|
|
||||||
|
|
|
||||||
12 | import Dodge.Reloading.Action
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Held/BatteryGuns.hs:10:1-29: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Dodge.Reloading.Action’ is redundant
|
|
||||||
|
|
|
||||||
10 | import Dodge.Reloading.Action
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Weapon/TriggerType.hs:657:55: warning: [-Wtype-defaults]
|
|
||||||
• Defaulting the following constraints to type ‘Integer’
|
|
||||||
(Num a0)
|
|
||||||
arising from the literal ‘1’
|
|
||||||
at /home/justin/Haskell/loop/src/Dodge/Item/Weapon/TriggerType.hs:657:55
|
|
||||||
(Enum a0)
|
|
||||||
arising from the arithmetic sequence ‘1 .. ’
|
|
||||||
at /home/justin/Haskell/loop/src/Dodge/Item/Weapon/TriggerType.hs:657:54-60
|
|
||||||
• In the expression: 1
|
|
||||||
In the second argument of ‘take’, namely ‘[1 .. ]’
|
|
||||||
In the third argument of ‘foldr’, namely ‘(take numbul [1 .. ])’
|
|
||||||
|
|
|
||||||
657 | duplicateLoaded eff it cr w = foldr f w (take numbul [1 .. ])
|
|
||||||
| ^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Euse.hs:4:1-20: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Control.Monad’ is redundant
|
|
||||||
|
|
|
||||||
4 | import Control.Monad
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Euse.hs:47:15-17: warning: [-Wunused-matches]
|
|
||||||
Defined but not used: ‘itm’
|
|
||||||
|
|
|
||||||
47 | trySiphonFuel itm cr = id
|
|
||||||
| ^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Euse.hs:47:19-20: warning: [-Wunused-matches]
|
|
||||||
Defined but not used: ‘cr’
|
|
||||||
|
|
|
||||||
47 | trySiphonFuel itm cr = id
|
|
||||||
| ^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Held/Rod.hs:13:1-29: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Dodge.Reloading.Action’ is redundant
|
|
||||||
|
|
|
||||||
13 | import Dodge.Reloading.Action
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Held/Cane.hs:14:1-29: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Dodge.Reloading.Action’ is redundant
|
|
||||||
|
|
|
||||||
14 | import Dodge.Reloading.Action
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item.hs:(29,25)-(34,40): warning: [-Wincomplete-patterns]
|
|
||||||
Pattern match(es) are non-exhaustive
|
|
||||||
In a case alternative: Patterns not matched: AMMOATTACH REVOLVEMAG
|
|
||||||
|
|
|
||||||
29 | itemFromAttachType at = case at of
|
|
||||||
| ^^^^^^^^^^...
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/HeldUse.hs:488:22-23: warning: [-Wunused-matches]
|
|
||||||
Defined but not used: ‘it’
|
|
||||||
|
|
|
||||||
488 | caneStickSoundChoice it = tap3S
|
|
||||||
| ^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Info.hs:(62,16)-(107,62): warning: [-Wincomplete-patterns]
|
|
||||||
Pattern match(es) are non-exhaustive
|
|
||||||
In a case alternative: Patterns not matched: MULTIGUN _
|
|
||||||
|
|
|
||||||
62 | heldInfo hit = case hit of
|
|
||||||
| ^^^^^^^^^^^...
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Display.hs:11:1-26: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Control.Applicative’ is redundant
|
|
||||||
|
|
|
||||||
11 | import Control.Applicative
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Display.hs:12:1-20: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Control.Monad’ is redundant
|
|
||||||
|
|
|
||||||
12 | import Control.Monad
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Display.hs:15:1-22: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Dodge.Item.Info’ is redundant
|
|
||||||
|
|
|
||||||
15 | import Dodge.Item.Info
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Display.hs:87:16-17: warning: [-Wname-shadowing]
|
|
||||||
This binding for ‘at’ shadows the existing binding
|
|
||||||
imported from ‘LensHelp’ at /home/justin/Haskell/loop/src/Dodge/Item/Display.hs:18:1-15
|
|
||||||
(and originally defined in ‘Control.Lens.At’)
|
|
||||||
|
|
|
||||||
87 | showAttachItem at = case at of
|
|
||||||
| ^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Display.hs:132:21-22: warning: [-Wunused-matches]
|
|
||||||
Defined but not used: ‘cr’
|
|
||||||
|
|
|
||||||
132 | showEquipmentNumber cr itm = case _eeUse ee of
|
|
||||||
| ^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Item/Display.hs:155:20-21: warning: [-Wunused-matches]
|
|
||||||
Defined but not used: ‘cr’
|
|
||||||
|
|
|
||||||
155 | showReloadProgress cr itm = fromMaybe [] $ do
|
|
||||||
| ^^
|
|
||||||
/home/justin/Haskell/loop/src/Dodge/Default/Item/Use/Consumption.hs:6:1-29: warning: [-Wunused-imports]
|
|
||||||
The import of ‘Dodge.Reloading.Action’ is redundant
|
|
||||||
|
|
|
||||||
6 | import Dodge.Reloading.Action
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ digraph {
|
|||||||
28 [shape=box
|
28 [shape=box
|
||||||
,label="EQUIP {_ibtEquip = TARGETINGHAT TargetCursor}"];
|
,label="EQUIP {_ibtEquip = TARGETINGHAT TargetCursor}"];
|
||||||
31 [shape=box
|
31 [shape=box
|
||||||
,label="ATTACH {_ibtAttach = AMMOATTACH REVOLVEMAG}"];
|
,label="ATTACH {_ibtAttach = AMMOATTACH TINMAG}"];
|
||||||
35 [shape=box
|
35 [shape=box
|
||||||
,label="HELD {_ibtHeld = BANGSTICK {_xNum = 1}}"];
|
,label="HELD {_ibtHeld = BANGSTICK {_xNum = 1}}"];
|
||||||
39 [shape=box
|
39 [shape=box
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ attachmentTree cr = fromMaybe mempty $ do
|
|||||||
return $ upDownAttachments cr i i mempty
|
return $ upDownAttachments cr i i mempty
|
||||||
|
|
||||||
upDownAttachments :: Creature -> Int -> Int -> M.Map AttachType Int -> M.Map AttachType Int
|
upDownAttachments :: Creature -> Int -> Int -> M.Map AttachType Int -> M.Map AttachType Int
|
||||||
upDownAttachments cr i j s = s
|
upDownAttachments _ _ _ s = s
|
||||||
|
|
||||||
--yourInvSel :: World -> Int
|
--yourInvSel :: World -> Int
|
||||||
--yourInvSel = crSel . you
|
--yourInvSel = crSel . you
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ module Dodge.Default.Item.Use.Consumption where
|
|||||||
import Control.Lens
|
import Control.Lens
|
||||||
import Dodge.Data.Item.Use.Consumption
|
import Dodge.Data.Item.Use.Consumption
|
||||||
import Dodge.Item.Weapon.Bullet
|
import Dodge.Item.Weapon.Bullet
|
||||||
import Dodge.Reloading.Action
|
--import Dodge.Reloading.Action
|
||||||
|
|
||||||
defaultLoadable :: HeldConsumption
|
defaultLoadable :: HeldConsumption
|
||||||
defaultLoadable =
|
defaultLoadable =
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
module Dodge.Euse where
|
module Dodge.Euse where
|
||||||
|
|
||||||
import Color
|
import Color
|
||||||
import Control.Monad
|
--import Control.Monad
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Dodge.Creature.HandPos
|
import Dodge.Creature.HandPos
|
||||||
import Dodge.Creature.Test
|
import Dodge.Creature.Test
|
||||||
@@ -44,7 +44,7 @@ tryChargeBattery :: Item -> Creature -> World -> World
|
|||||||
tryChargeBattery _ _ w = w
|
tryChargeBattery _ _ w = w
|
||||||
|
|
||||||
trySiphonFuel :: Item -> Creature -> World -> World
|
trySiphonFuel :: Item -> Creature -> World -> World
|
||||||
trySiphonFuel itm cr = id
|
trySiphonFuel _ _ = id
|
||||||
--trySiphonFuel itm cr w = fromMaybe w $ do
|
--trySiphonFuel itm cr w = fromMaybe w $ do
|
||||||
-- eix <- itm ^? itLocation . ipInvID
|
-- eix <- itm ^? itLocation . ipInvID
|
||||||
-- hix <- cr ^? crManipulation . manObject . inInventory . ispItem
|
-- hix <- cr ^? crManipulation . manObject . inInventory . ispItem
|
||||||
|
|||||||
@@ -485,7 +485,7 @@ fireRemoteShell it cr w =
|
|||||||
j = cr ^?! crManipulation . manObject . inInventory . ispItem -- unsafe!! TODO change
|
j = cr ^?! crManipulation . manObject . inInventory . ispItem -- unsafe!! TODO change
|
||||||
|
|
||||||
caneStickSoundChoice :: Item -> SoundID
|
caneStickSoundChoice :: Item -> SoundID
|
||||||
caneStickSoundChoice it = tap3S
|
caneStickSoundChoice _ = tap3S
|
||||||
-- -- | (it ^?! itUse . heldConsumption . laSource . _InternalSource . iaLoaded) < 2 = tap3S
|
-- -- | (it ^?! itUse . heldConsumption . laSource . _InternalSource . iaLoaded) < 2 = tap3S
|
||||||
-- -- | otherwise = shotgunS
|
-- -- | otherwise = shotgunS
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ itemFromAttachType at = case at of
|
|||||||
SCROLLATTACH ZOOMSCOPE -> zoomScope
|
SCROLLATTACH ZOOMSCOPE -> zoomScope
|
||||||
AMMOATTACH DRUMMAG -> drumMag
|
AMMOATTACH DRUMMAG -> drumMag
|
||||||
AMMOATTACH TINMAG -> tinMag
|
AMMOATTACH TINMAG -> tinMag
|
||||||
|
AMMOATTACH REVOLVEMAG -> revolveMag
|
||||||
AMMOATTACH BULLETBELT -> beltMag
|
AMMOATTACH BULLETBELT -> beltMag
|
||||||
TARGETATTACH tt -> targetingScope tt
|
TARGETATTACH tt -> targetingScope tt
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ module Dodge.Item.Display (
|
|||||||
basicItemDisplay,
|
basicItemDisplay,
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Applicative
|
--import Control.Applicative
|
||||||
import Control.Monad
|
--import Control.Monad
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Dodge.Data.Creature
|
import Dodge.Data.Creature
|
||||||
import Dodge.Item.Info
|
--import Dodge.Item.Info
|
||||||
import Dodge.Item.SlotsTaken
|
import Dodge.Item.SlotsTaken
|
||||||
import Dodge.Module
|
import Dodge.Module
|
||||||
import LensHelp
|
import LensHelp
|
||||||
@@ -84,7 +84,7 @@ itemBaseName it = case _iyBase $ _itType it of
|
|||||||
ATTACH ait -> showAttachItem ait
|
ATTACH ait -> showAttachItem ait
|
||||||
|
|
||||||
showAttachItem :: AttachType -> String
|
showAttachItem :: AttachType -> String
|
||||||
showAttachItem at = case at of
|
showAttachItem t = case t of
|
||||||
SCROLLATTACH x -> show x
|
SCROLLATTACH x -> show x
|
||||||
AMMOATTACH x -> show x
|
AMMOATTACH x -> show x
|
||||||
TARGETATTACH x -> show x
|
TARGETATTACH x -> show x
|
||||||
@@ -129,7 +129,7 @@ itemNumberDisplay cr itm = case iu of
|
|||||||
iu = itm ^?! itUse
|
iu = itm ^?! itUse
|
||||||
|
|
||||||
showEquipmentNumber :: Creature -> Item -> [String]
|
showEquipmentNumber :: Creature -> Item -> [String]
|
||||||
showEquipmentNumber cr itm = case _eeUse ee of
|
showEquipmentNumber _ itm = case _eeUse ee of
|
||||||
EFuelSource x _ -> [show x]
|
EFuelSource x _ -> [show x]
|
||||||
EAmmoSource{_euseAmmoAmount = x} -> [show x]--showAmmoSource cr itm
|
EAmmoSource{_euseAmmoAmount = x} -> [show x]--showAmmoSource cr itm
|
||||||
EBatterySource{_euseBatteryAmount = x} -> [show x]
|
EBatterySource{_euseBatteryAmount = x} -> [show x]
|
||||||
@@ -152,7 +152,7 @@ showEquipmentNumber cr itm = case _eeUse ee of
|
|||||||
-- <|> Just [x]
|
-- <|> Just [x]
|
||||||
|
|
||||||
showReloadProgress :: Creature -> Item -> String
|
showReloadProgress :: Creature -> Item -> String
|
||||||
showReloadProgress cr itm = fromMaybe [] $ do
|
showReloadProgress _ itm = fromMaybe [] $ do
|
||||||
ia <- itm ^? itUse . attachParams . ammoAttachParams
|
ia <- itm ^? itUse . attachParams . ammoAttachParams
|
||||||
return $ case ia ^? iaProgress . _Just . ix 0 of
|
return $ case ia ^? iaProgress . _Just . ix 0 of
|
||||||
Nothing -> maybe "" show $ ia ^? iaLoaded
|
Nothing -> maybe "" show $ ia ^? iaLoaded
|
||||||
|
|||||||
+132
-130
@@ -4,13 +4,13 @@ module Dodge.Item.Draw.SPic (
|
|||||||
|
|
||||||
import Color
|
import Color
|
||||||
import qualified Data.Map.Strict as M
|
import qualified Data.Map.Strict as M
|
||||||
import Data.Maybe
|
--import Data.Maybe
|
||||||
import Dodge.Data.Item
|
import Dodge.Data.Item
|
||||||
import Dodge.Item.AmmoPosition
|
--import Dodge.Item.AmmoPosition
|
||||||
--import Dodge.Item.Weapon.FractionLoaded
|
--import Dodge.Item.Weapon.FractionLoaded
|
||||||
import Geometry
|
import Geometry
|
||||||
import LensHelp
|
import LensHelp
|
||||||
import qualified Linear.Quaternion as Q
|
--import qualified Linear.Quaternion as Q
|
||||||
import Picture
|
import Picture
|
||||||
import Shape
|
import Shape
|
||||||
import ShapePicture
|
import ShapePicture
|
||||||
@@ -64,76 +64,76 @@ leftItemSPic lt _ = case lt of
|
|||||||
BLINKER -> defSPic
|
BLINKER -> defSPic
|
||||||
_ -> defSPic
|
_ -> defSPic
|
||||||
|
|
||||||
ammoPosition :: Item -> HeldItemType -> AmmoPosition
|
--ammoPosition :: Item -> HeldItemType -> AmmoPosition
|
||||||
ammoPosition itm hit = case hit of
|
--ammoPosition itm hit = case hit of
|
||||||
FLATSHIELD -> NoAmmoPosition
|
-- FLATSHIELD -> NoAmmoPosition
|
||||||
FORCEFIELDGUN -> NoAmmoPosition
|
-- FORCEFIELDGUN -> NoAmmoPosition
|
||||||
TORCH -> NoAmmoPosition
|
-- TORCH -> NoAmmoPosition
|
||||||
BANGSTICK i -> bangStickAmmoPos i itm
|
-- BANGSTICK i -> bangStickAmmoPos i itm
|
||||||
PISTOL -> Magazine (V3 5 2 0) lhs
|
-- PISTOL -> Magazine (V3 5 2 0) lhs
|
||||||
MACHINEPISTOL -> Magazine (V3 5 2 0) lhs
|
-- MACHINEPISTOL -> Magazine (V3 5 2 0) lhs
|
||||||
AUTOPISTOL -> Magazine (V3 5 2 0) lhs
|
-- AUTOPISTOL -> Magazine (V3 5 2 0) lhs
|
||||||
SMG -> Magazine (V3 7 (-2) 0) rhs
|
-- SMG -> Magazine (V3 7 (-2) 0) rhs
|
||||||
BANGCONE -> NoAmmoPosition
|
-- BANGCONE -> NoAmmoPosition
|
||||||
BLUNDERBUSS -> NoAmmoPosition
|
-- BLUNDERBUSS -> NoAmmoPosition
|
||||||
GRAPECANNON _ -> NoAmmoPosition
|
-- GRAPECANNON _ -> NoAmmoPosition
|
||||||
MINIGUNX _ -> NoAmmoPosition
|
-- MINIGUNX _ -> NoAmmoPosition
|
||||||
VOLLEYGUN i -> volleygunAmmoPos i
|
-- VOLLEYGUN i -> volleygunAmmoPos i
|
||||||
MULTIGUN i -> multigunAmmoPos i
|
-- MULTIGUN i -> multigunAmmoPos i
|
||||||
RIFLE -> Bullets [(V3 5 0 3, Q.axisAngle (V3 1 0 0) 0)]
|
-- RIFLE -> Bullets [(V3 5 0 3, Q.axisAngle (V3 1 0 0) 0)]
|
||||||
REPEATER -> Magazine (V3 10 (-2) 0) rhs
|
-- REPEATER -> Magazine (V3 10 (-2) 0) rhs
|
||||||
AUTORIFLE -> Magazine (V3 10 (-2) 0) rhs
|
-- AUTORIFLE -> Magazine (V3 10 (-2) 0) rhs
|
||||||
BURSTRIFLE -> Magazine (V3 10 (-2) 0) rhs
|
-- BURSTRIFLE -> Magazine (V3 10 (-2) 0) rhs
|
||||||
BANGROD -> Bullets [(V3 5 0 3, Q.axisAngle (V3 1 0 0) 0)]
|
-- BANGROD -> Bullets [(V3 5 0 3, Q.axisAngle (V3 1 0 0) 0)]
|
||||||
ELEPHANTGUN -> Bullets [(V3 5 0 3, Q.axisAngle (V3 1 0 0) 0)]
|
-- ELEPHANTGUN -> Bullets [(V3 5 0 3, Q.axisAngle (V3 1 0 0) 0)]
|
||||||
AMR -> Magazine (V3 10 (-2) 0) rhs
|
-- AMR -> Magazine (V3 10 (-2) 0) rhs
|
||||||
AUTOAMR -> Magazine (V3 10 (-2) 0) rhs
|
-- AUTOAMR -> Magazine (V3 10 (-2) 0) rhs
|
||||||
SNIPERRIFLE -> Bullets [(V3 5 0 3, Q.axisAngle (V3 1 0 0) 0)]
|
-- SNIPERRIFLE -> Bullets [(V3 5 0 3, Q.axisAngle (V3 1 0 0) 0)]
|
||||||
MACHINEGUN -> Magazine (V3 10 (-2) 0) rhs
|
-- MACHINEGUN -> Magazine (V3 10 (-2) 0) rhs
|
||||||
FLAMESPITTER -> NoAmmoPosition
|
-- FLAMESPITTER -> NoAmmoPosition
|
||||||
FLAMETHROWER -> NoAmmoPosition
|
-- FLAMETHROWER -> NoAmmoPosition
|
||||||
FLAMETORRENT -> NoAmmoPosition
|
-- FLAMETORRENT -> NoAmmoPosition
|
||||||
FLAMEWALL -> NoAmmoPosition
|
-- FLAMEWALL -> NoAmmoPosition
|
||||||
BLOWTORCH -> NoAmmoPosition
|
-- BLOWTORCH -> NoAmmoPosition
|
||||||
SPARKGUN -> NoAmmoPosition
|
-- SPARKGUN -> NoAmmoPosition
|
||||||
TESLAGUN -> NoAmmoPosition
|
-- TESLAGUN -> NoAmmoPosition
|
||||||
LASGUN -> NoAmmoPosition
|
-- LASGUN -> NoAmmoPosition
|
||||||
LASCIRCLE -> NoAmmoPosition
|
-- LASCIRCLE -> NoAmmoPosition
|
||||||
DUALBEAM -> NoAmmoPosition
|
-- DUALBEAM -> NoAmmoPosition
|
||||||
LASWIDE _ -> NoAmmoPosition
|
-- LASWIDE _ -> NoAmmoPosition
|
||||||
--SONICGUN -> noPic baseSonicShape
|
-- --SONICGUN -> noPic baseSonicShape
|
||||||
TRACTORGUN -> NoAmmoPosition
|
-- TRACTORGUN -> NoAmmoPosition
|
||||||
LAUNCHER -> NoAmmoPosition
|
-- LAUNCHER -> NoAmmoPosition
|
||||||
LAUNCHERX _ -> NoAmmoPosition
|
-- LAUNCHERX _ -> NoAmmoPosition
|
||||||
REMOTELAUNCHER -> NoAmmoPosition
|
-- REMOTELAUNCHER -> NoAmmoPosition
|
||||||
POISONSPRAYER -> NoAmmoPosition
|
-- POISONSPRAYER -> NoAmmoPosition
|
||||||
DRONELAUNCHER -> NoAmmoPosition
|
-- DRONELAUNCHER -> NoAmmoPosition
|
||||||
SHATTERGUN -> NoAmmoPosition
|
-- SHATTERGUN -> NoAmmoPosition
|
||||||
HELDDETECTOR _ -> NoAmmoPosition
|
-- HELDDETECTOR _ -> NoAmmoPosition
|
||||||
KEYCARD _ -> NoAmmoPosition
|
-- KEYCARD _ -> NoAmmoPosition
|
||||||
where
|
-- where
|
||||||
lhs = Q.axisAngle (V3 1 0 0) pi
|
-- lhs = Q.axisAngle (V3 1 0 0) pi
|
||||||
rhs = Q.axisAngle (V3 1 0 0) 0
|
-- rhs = Q.axisAngle (V3 1 0 0) 0
|
||||||
|
|
||||||
bangStickAmmoPos :: Int -> Item -> AmmoPosition
|
--bangStickAmmoPos :: Int -> Item -> AmmoPosition
|
||||||
bangStickAmmoPos _ itm =
|
--bangStickAmmoPos _ itm =
|
||||||
Bullets
|
-- Bullets
|
||||||
[(rotate3z a (V3 5 0 3), Q.axisAngle (V3 0 0 1) a)
|
-- [(rotate3z a (V3 5 0 3), Q.axisAngle (V3 0 0 1) a)
|
||||||
| a <- map _mzRot (itm ^?! itUse . heldAim . aimMuzzles)]
|
-- | a <- map _mzRot (itm ^?! itUse . heldAim . aimMuzzles)]
|
||||||
|
|
||||||
volleygunAmmoPos :: Int -> AmmoPosition
|
--volleygunAmmoPos :: Int -> AmmoPosition
|
||||||
volleygunAmmoPos i =
|
--volleygunAmmoPos i =
|
||||||
Bullets
|
-- Bullets
|
||||||
[(V3 5 (f n) 3, Q.axisAngle (V3 1 0 0) 0) | n <- [0 .. i -1]]
|
-- [(V3 5 (f n) 3, Q.axisAngle (V3 1 0 0) 0) | n <- [0 .. i -1]]
|
||||||
where
|
-- where
|
||||||
f n = fromIntegral n * 5 - ((fromIntegral i - 1) * 2.5)
|
-- f n = fromIntegral n * 5 - ((fromIntegral i - 1) * 2.5)
|
||||||
|
--
|
||||||
multigunAmmoPos :: Int -> AmmoPosition
|
--multigunAmmoPos :: Int -> AmmoPosition
|
||||||
multigunAmmoPos i =
|
--multigunAmmoPos i =
|
||||||
Bullets
|
-- Bullets
|
||||||
[(V3 5 (f n) 3, Q.axisAngle (V3 1 0 0) 0) | n <- [0 .. i -1]]
|
-- [(V3 5 (f n) 3, Q.axisAngle (V3 1 0 0) 0) | n <- [0 .. i -1]]
|
||||||
where
|
-- where
|
||||||
f n = fromIntegral n * 5 - ((fromIntegral i - 1) * 2.5)
|
-- f n = fromIntegral n * 5 - ((fromIntegral i - 1) * 2.5)
|
||||||
|
|
||||||
--revolverAmmoPos :: AmmoPosition
|
--revolverAmmoPos :: AmmoPosition
|
||||||
--revolverAmmoPos =
|
--revolverAmmoPos =
|
||||||
@@ -254,39 +254,39 @@ baseRifleShape = colorSH red $ xCylinderST 3 25
|
|||||||
-- ps <- fmap (take x) $ ammoPosition itm hit ^? amPosDirs
|
-- ps <- fmap (take x) $ ammoPosition itm hit ^? amPosDirs
|
||||||
-- return $ foldMap (uncurry (drawBullet itm)) ps
|
-- return $ foldMap (uncurry (drawBullet itm)) ps
|
||||||
|
|
||||||
-- why is this duplicated?
|
---- why is this duplicated?
|
||||||
drawBullet :: Item -> Point3 -> Q.Quaternion Float -> Shape
|
--drawBullet :: Item -> Point3 -> Q.Quaternion Float -> Shape
|
||||||
drawBullet itm p q =
|
--drawBullet itm p q =
|
||||||
translateSH p $
|
-- translateSH p $
|
||||||
overPosSH (Q.rotate q) $
|
-- overPosSH (Q.rotate q) $
|
||||||
colorSH
|
-- colorSH
|
||||||
midcol
|
-- midcol
|
||||||
( upperPrismPolyTS 0.2 $
|
-- ( upperPrismPolyTS 0.2 $
|
||||||
reverse
|
-- reverse
|
||||||
(rectNSWE 0.2 (- 0.2) (-1) 1)
|
-- (rectNSWE 0.2 (- 0.2) (-1) 1)
|
||||||
)
|
-- )
|
||||||
<> tip
|
-- <> tip
|
||||||
<> foot
|
-- <> foot
|
||||||
where
|
-- where
|
||||||
midcol =
|
-- midcol =
|
||||||
maybe
|
-- maybe
|
||||||
black
|
-- black
|
||||||
bulletEffectColor
|
-- bulletEffectColor
|
||||||
(itm ^? itUse . heldConsumption . laAmmoType . amBullet . buEffect)
|
-- (itm ^? itUse . heldConsumption . laAmmoType . amBullet . buEffect)
|
||||||
tip = fromMaybe mempty $ do
|
-- tip = fromMaybe mempty $ do
|
||||||
ebt <- itm ^? itUse . heldConsumption . laAmmoType . amBullet . buSpawn
|
-- ebt <- itm ^? itUse . heldConsumption . laAmmoType . amBullet . buSpawn
|
||||||
return $
|
-- return $
|
||||||
colorSH (bulletPayloadColor ebt) $
|
-- colorSH (bulletPayloadColor ebt) $
|
||||||
upperPrismPolyTS 0.2 $
|
-- upperPrismPolyTS 0.2 $
|
||||||
reverse $
|
-- reverse $
|
||||||
rectNSWE 0.2 (- 0.2) 1 2
|
-- rectNSWE 0.2 (- 0.2) 1 2
|
||||||
foot = fromMaybe mempty $ do
|
-- foot = fromMaybe mempty $ do
|
||||||
ebt <- itm ^? itUse . heldConsumption . laAmmoType . amBullet . buTrajectory
|
-- ebt <- itm ^? itUse . heldConsumption . laAmmoType . amBullet . buTrajectory
|
||||||
return $
|
-- return $
|
||||||
colorSH (bulletTrajColor ebt) $
|
-- colorSH (bulletTrajColor ebt) $
|
||||||
upperPrismPolyTS 0.2 $
|
-- upperPrismPolyTS 0.2 $
|
||||||
reverse $
|
-- reverse $
|
||||||
rectNSWE 0.2 (- 0.2) (-2) (-1)
|
-- rectNSWE 0.2 (- 0.2) (-2) (-1)
|
||||||
|
|
||||||
addTinClip :: Item -> Shape
|
addTinClip :: Item -> Shape
|
||||||
addTinClip _ = mempty
|
addTinClip _ = mempty
|
||||||
@@ -333,33 +333,33 @@ addTinClip _ = mempty
|
|||||||
-- reverse $
|
-- reverse $
|
||||||
-- rectNSWE 0 (- y) (-2) (-1)
|
-- rectNSWE 0 (- y) (-2) (-1)
|
||||||
|
|
||||||
bulletEffectColor :: BulletEffect -> Color
|
--bulletEffectColor :: BulletEffect -> Color
|
||||||
bulletEffectColor x = case x of
|
--bulletEffectColor x = case x of
|
||||||
DestroyBullet -> black
|
-- DestroyBullet -> black
|
||||||
BounceBullet -> mixColors 0.5 0.5 black yellow
|
-- BounceBullet -> mixColors 0.5 0.5 black yellow
|
||||||
PenetrateBullet -> mixColors 0.5 0.5 black blue
|
-- PenetrateBullet -> mixColors 0.5 0.5 black blue
|
||||||
|
|
||||||
bulletTrajColor :: BulletTrajectory -> Color
|
--bulletTrajColor :: BulletTrajectory -> Color
|
||||||
bulletTrajColor x = case x of
|
--bulletTrajColor x = case x of
|
||||||
BasicBulletTrajectory -> black
|
-- BasicBulletTrajectory -> black
|
||||||
BezierTrajectory{} -> chartreuse
|
-- BezierTrajectory{} -> chartreuse
|
||||||
FlechetteTrajectory{} -> white
|
-- FlechetteTrajectory{} -> white
|
||||||
MagnetTrajectory{} -> yellow
|
-- MagnetTrajectory{} -> yellow
|
||||||
|
|
||||||
bulletPayloadColor :: BulletSpawn -> Color
|
--bulletPayloadColor :: BulletSpawn -> Color
|
||||||
bulletPayloadColor x = case x of
|
--bulletPayloadColor x = case x of
|
||||||
BulBall y -> energyBallColor y
|
-- BulBall y -> energyBallColor y
|
||||||
BulSpark -> black
|
-- BulSpark -> black
|
||||||
BulFlak -> chartreuse
|
-- BulFlak -> chartreuse
|
||||||
BulFrag -> magenta
|
-- BulFrag -> magenta
|
||||||
BulGas -> green
|
-- BulGas -> green
|
||||||
|
|
||||||
energyBallColor :: EnergyBallType -> Color
|
--energyBallColor :: EnergyBallType -> Color
|
||||||
energyBallColor ebt = case ebt of
|
--energyBallColor ebt = case ebt of
|
||||||
IncBall -> orange
|
-- IncBall -> orange
|
||||||
TeslaBall -> cyan
|
-- TeslaBall -> cyan
|
||||||
ConcBall -> white
|
-- ConcBall -> white
|
||||||
FlashBall -> yellow
|
-- FlashBall -> yellow
|
||||||
|
|
||||||
volleyGunShape :: Int -> Shape
|
volleyGunShape :: Int -> Shape
|
||||||
volleyGunShape i =
|
volleyGunShape i =
|
||||||
@@ -404,7 +404,8 @@ baseSMGShape :: Shape
|
|||||||
baseSMGShape = colorSH green $ xCylinderST 3 20
|
baseSMGShape = colorSH green $ xCylinderST 3 20
|
||||||
|
|
||||||
flamerPic :: Item -> SPic
|
flamerPic :: Item -> SPic
|
||||||
flamerPic it =
|
--flamerPic it =
|
||||||
|
flamerPic _ =
|
||||||
( colorSH yellow $
|
( colorSH yellow $
|
||||||
translateSHxy tx ty (upperPrismPolyST tz $ polyCirc 3 r)
|
translateSHxy tx ty (upperPrismPolyST tz $ polyCirc 3 r)
|
||||||
<> xCylinderST 5 18
|
<> xCylinderST 5 18
|
||||||
@@ -445,7 +446,8 @@ teslaGunPic =
|
|||||||
xb = 9
|
xb = 9
|
||||||
|
|
||||||
lasGunPic :: Item -> SPic
|
lasGunPic :: Item -> SPic
|
||||||
lasGunPic it =
|
--lasGunPic it =
|
||||||
|
lasGunPic _ =
|
||||||
( colorSH blue $
|
( colorSH blue $
|
||||||
upperBoxST 4 (rectNESW 3 30 1 0)
|
upperBoxST 4 (rectNESW 3 30 1 0)
|
||||||
<> upperBoxSU 4 (rectNESW (-1) 30 (-3) 0)
|
<> upperBoxSU 4 (rectNESW (-1) 30 (-3) 0)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import Color
|
|||||||
import Control.Lens
|
import Control.Lens
|
||||||
import qualified Data.Map.Strict as M
|
import qualified Data.Map.Strict as M
|
||||||
import Dodge.Data.Item
|
import Dodge.Data.Item
|
||||||
import Dodge.Reloading.Action
|
--import Dodge.Reloading.Action
|
||||||
import Dodge.Tesla.ItemParams
|
import Dodge.Tesla.ItemParams
|
||||||
import Geometry.Data
|
import Geometry.Data
|
||||||
import qualified IntMapHelp as IM
|
import qualified IntMapHelp as IM
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module Dodge.Item.Held.Cane (
|
|||||||
import Dodge.Base
|
import Dodge.Base
|
||||||
import Dodge.Data.Item
|
import Dodge.Data.Item
|
||||||
import Dodge.Default
|
import Dodge.Default
|
||||||
import Dodge.Reloading.Action
|
--import Dodge.Reloading.Action
|
||||||
import Geometry.Data
|
import Geometry.Data
|
||||||
import LensHelp
|
import LensHelp
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ module Dodge.Item.Held.Cone where
|
|||||||
import Control.Lens
|
import Control.Lens
|
||||||
import Dodge.Data.Item
|
import Dodge.Data.Item
|
||||||
import Dodge.Default.Item
|
import Dodge.Default.Item
|
||||||
import Dodge.Reloading.Action
|
--import Dodge.Reloading.Action
|
||||||
import Geometry.Data
|
import Geometry.Data
|
||||||
import Linear
|
import Linear
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
module Dodge.Item.Held.Launcher where
|
module Dodge.Item.Held.Launcher where
|
||||||
|
|
||||||
import Dodge.Default.Item
|
import Dodge.Default.Item
|
||||||
import Dodge.Reloading.Action
|
--import Dodge.Reloading.Action
|
||||||
import Control.Lens
|
import Control.Lens
|
||||||
import Dodge.Data.Item
|
import Dodge.Data.Item
|
||||||
import qualified IntMapHelp as IM
|
import qualified IntMapHelp as IM
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ module Dodge.Item.Held.Rod (
|
|||||||
import Dodge.Data.Item
|
import Dodge.Data.Item
|
||||||
import Dodge.Default
|
import Dodge.Default
|
||||||
import Dodge.Item.Weapon.Bullet
|
import Dodge.Item.Weapon.Bullet
|
||||||
import Dodge.Reloading.Action
|
--import Dodge.Reloading.Action
|
||||||
import Geometry
|
import Geometry
|
||||||
import LensHelp
|
import LensHelp
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ module Dodge.Item.Held.SprayGuns (
|
|||||||
|
|
||||||
import Dodge.Data.Item
|
import Dodge.Data.Item
|
||||||
import Dodge.Default.Item
|
import Dodge.Default.Item
|
||||||
import Dodge.Reloading.Action
|
--import Dodge.Reloading.Action
|
||||||
import Geometry
|
import Geometry
|
||||||
import LensHelp
|
import LensHelp
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ module Dodge.Item.Held.Stick (
|
|||||||
import Dodge.Base
|
import Dodge.Base
|
||||||
import Dodge.Data.Item
|
import Dodge.Data.Item
|
||||||
import Dodge.Default.Item
|
import Dodge.Default.Item
|
||||||
import Dodge.Reloading.Action
|
--import Dodge.Reloading.Action
|
||||||
import Geometry
|
import Geometry
|
||||||
import LensHelp
|
import LensHelp
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,8 @@ heldInfo hit = case hit of
|
|||||||
GRAPECANNON 1 -> "A large container for debris on the end of a stick. Explosive action propels the debris away from the user."
|
GRAPECANNON 1 -> "A large container for debris on the end of a stick. Explosive action propels the debris away from the user."
|
||||||
GRAPECANNON i -> "An " ++ replicate (i -1) 'X' ++ "L container for debris on the end of a stick. Explosive action propels the debris away from the user."
|
GRAPECANNON i -> "An " ++ replicate (i -1) 'X' ++ "L container for debris on the end of a stick. Explosive action propels the debris away from the user."
|
||||||
MINIGUNX i -> over _head toUpper (showInt i) ++ " gun barrels that revolve rapidly around a central stick. Requires considerable time to warm up, but has an extremely rapid rate of fire. It is also extremely difficult to stabilise."
|
MINIGUNX i -> over _head toUpper (showInt i) ++ " gun barrels that revolve rapidly around a central stick. Requires considerable time to warm up, but has an extremely rapid rate of fire. It is also extremely difficult to stabilise."
|
||||||
VOLLEYGUN i -> over _head toUpper (showInt i) ++ " gun barrels lined up to be roughly parallel. Each barrel must be individually loaded, but not all need be loaded for the weapon to fire. All loaded barrels discharge simultaneously."
|
VOLLEYGUN i -> over _head toUpper (showInt i) ++ " gun barrels lined up to be roughly parallel. Draws bullets from a single magazine. All loaded barrels discharge simultaneously."
|
||||||
|
MULTIGUN i -> over _head toUpper (showInt i) ++ " gun barrels lined up to be roughly parallel. Each barrel requires a separate magazine. All barrels must be loaded to fire."
|
||||||
RIFLE -> "A firearm with a mid length barrel that requires reloading after each shot."
|
RIFLE -> "A firearm with a mid length barrel that requires reloading after each shot."
|
||||||
REPEATER -> "A firearm fed by a magazine. The entire magazine must be replaced when reloading the weapon."
|
REPEATER -> "A firearm fed by a magazine. The entire magazine must be replaced when reloading the weapon."
|
||||||
AUTORIFLE -> "A firearm automatically fed by a magazine. The entire magazine must be replaced when reloading the weapon."
|
AUTORIFLE -> "A firearm automatically fed by a magazine. The entire magazine must be replaced when reloading the weapon."
|
||||||
|
|||||||
@@ -654,7 +654,7 @@ repeatOnFrames is hm f it cr w =
|
|||||||
-- return $ f it cr' w'
|
-- return $ f it cr' w'
|
||||||
|
|
||||||
duplicateLoaded :: ChainEffect
|
duplicateLoaded :: ChainEffect
|
||||||
duplicateLoaded eff it cr w = foldr f w (take numbul [1 .. ])
|
duplicateLoaded eff it cr w = foldr f w (take numbul [1::Int .. ])
|
||||||
where
|
where
|
||||||
f _ = eff it cr
|
f _ = eff it cr
|
||||||
numbul = fromMaybe 0 $ do
|
numbul = fromMaybe 0 $ do
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ stepReloading cr = case cr ^? crManipulation . manObject . inInventory of
|
|||||||
|
|
||||||
tryNextLoadAction :: Creature -> Creature
|
tryNextLoadAction :: Creature -> Creature
|
||||||
tryNextLoadAction cr = case cr ^? crManipulation . manObject . inInventory of
|
tryNextLoadAction cr = case cr ^? crManipulation . manObject . inInventory of
|
||||||
Just (SelItem i _) -> case cr ^? crInv . ix i . itUse . attachParams . ammoAttachParams . iaProgress . _Just . ix 0 of
|
Just (SelItem i _) -> case cr ^? crInv . ix (i + 1) . itUse . attachParams . ammoAttachParams . iaProgress . _Just . ix 0 of
|
||||||
Nothing -> cr & crManipulation . manObject . inInventory . iselAction .~ NoInvSelAction
|
Nothing -> cr & crManipulation . manObject . inInventory . iselAction .~ NoInvSelAction
|
||||||
Just la ->
|
Just la ->
|
||||||
cr & crManipulation . manObject . inInventory . iselAction . actionProgress .~ _actionTime la
|
cr & crManipulation . manObject . inInventory . iselAction . actionProgress .~ _actionTime la
|
||||||
|
|||||||
Reference in New Issue
Block a user