Work towards duct taping torch

This commit is contained in:
2022-07-14 10:50:12 +01:00
parent bfe9073808
commit 2cfa3ca3a7
8 changed files with 40 additions and 11 deletions
+8
View File
@@ -130,6 +130,14 @@ moduleCombinations =
,amod [cr MOTOR,cr HARDWARE] BELTMAG
]
)
, ( ModHeldAttach
, [rifle
,autoRifle
,burstRifle
]
, [amod [cr DUCTTAPE,HELD TORCH] ATTACHTORCH
]
)
, ( ModAutoMag
, [autoRifle
,autoPistol
+3 -1
View File
@@ -22,6 +22,7 @@ data CraftType
| TUBE
| HARDWARE
| SPRING
| DUCTTAPE
| CAN
| TIN
| DRUM
@@ -197,6 +198,7 @@ data ItemModuleType
| WEPTELE
| LAUNCHHOME
| EXTRABATTERY
| ATTACHTORCH
deriving (Eq,Ord,Show)
data Detector
@@ -215,7 +217,7 @@ data ModuleSlot
| ModBattery
| ModTeleport
| ModDualBeam
| ModAlongsideWeapon
| ModHeldAttach
deriving (Eq,Ord,Show)
makeLenses ''ItemType
+1
View File
@@ -38,6 +38,7 @@ moduleModification imt = case imt of
WEPTELE -> makeDirectedTele
LAUNCHHOME -> itConsumption . laAmmoType . amPjCreation .~ fireTrackingShell
EXTRABATTERY -> itConsumption . laMax +~ 1000
ATTACHTORCH -> itUse . heldAttachment .~ Torch
where
f ameff = itConsumption . laAmmoType . amBulEff .~ ameff
makeDirectedTele it = it