This commit is contained in:
2024-09-30 14:27:50 +01:00
parent 53e959e6cc
commit 18219d0bff
7 changed files with 4 additions and 162 deletions
+2 -85
View File
@@ -42,6 +42,7 @@ teslaGun =
& itUse . heldAmmoTypes .~ singleAmmo ElectricalAmmo
& itUse . heldTriggerType .~ AutoTrigger
-- previous phaseV parameters: 0.2, 1, 5
lasGun :: Item
lasGun =
defaultHeldItem
@@ -61,105 +62,21 @@ lasGun =
, _lasCycle = 0
, _lasDamage = 11
}
-- & itTweaks
-- .~ Tweakable
-- { _tweakParams = IM.fromList [(0, lasGunTweak)]
-- }
& itDimension . dimRad .~ 10
& itDimension . dimCenter .~ V3 15 0 0
-- & itUse . heldUse .~ HeldLaser --shootLaser
& itUse . heldAim . aimWeight .~ 6
& itUse . heldAim . aimRange .~ 1
& itUse . heldAim . aimStance .~ TwoHandUnder
-- & itUse . heldAim . aimHandlePos .~ 5
-- & itUse . heldAim . aimMuzPos .~ 30
& itType .~ HELD LASGUN
--lasGunTweak :: TweakParam
--lasGunTweak =
-- TweakParam
-- { _tweakType = TweakPhaseV
-- , _tweakVal = 1
-- , _tweakMax = 3
-- }
-- previous attractionPower values: 1, -1, -10, 0
tractorGun :: Item
tractorGun =
lasGun
& itParams .~ Attracting{_attractionPower = 1}
-- & itTweaks
-- .~ Tweakable
-- { _tweakParams = IM.fromList [(0, tractorGunTweak)]
-- }
& itUse . heldDelay .~ NoDelay
& itUse . heldAim . aimWeight .~ 6
& itUse . heldAim . aimRange .~ 1
& itUse . heldAim . aimMuzzles . ix 0 . mzFlareType .~ DefaultFlareType
& itUse . heldAim . aimMuzzles . ix 0 . mzEffect .~ MuzzleTractor
& itType .~ HELD TRACTORGUN
--tractorGunTweak :: TweakParam
--tractorGunTweak =
-- TweakParam
-- { _tweakType = TweakTractionPower
-- , _tweakVal = 1
-- , _tweakMax = 4
-- }
--lasWide :: Int -> Item
--lasWide n =
-- lasGun
-- & itType . iyBase .~ HELD (LASWIDE n)
-- & itParams . lasColor .~ yellow
-- & itParams . lasDamage .~ 2
-- & itUse . heldMods .~ LasWideMod n
-- & itUse . heldAim . aimMuzzles
-- .~ [Muzzle (V2 30 y) 0 0 0 DefaultFlareType MuzzleLaser Nothing | y <- spreadFromCenter n 1]
--defaultBatteryGun :: Item
--defaultBatteryGun =
-- defaultHeldItem
-- & itType . iyModules .~ batteryModules
--batteryModules :: M.Map ModuleSlot ItemModuleType
--batteryModules =
-- M.fromList
-- [ (ModBattery, EMPTYMODULE)
-- , (ModTeleport, EMPTYMODULE)
-- ]
--lasCircle :: Item
--lasCircle =
-- lasGun
-- & itType . iyBase .~ HELD LASCIRCLE
-- & itParams . lasColor .~ orange
-- & itParams . lasDamage .~ 2
-- & itUse . heldDelay .~ NoDelay
---- & itUse . heldUse .~ HeldCircleLaser --circleLaser
-- & itUse . heldMods .~ CircleLaserMod
-- & itUse . heldAim . aimWeight .~ 6
-- & itUse . heldAim . aimRange .~ 1
--dualBeam :: Item
--dualBeam =
-- lasGun
-- & itType . iyBase .~ HELD DUALBEAM
-- & itUse . heldAim . aimMuzzles .~ [Muzzle (V2 30 0) 0 0 0 DefaultFlareType MuzzleLaser Nothing]
-- & itParams
-- .~ DualBeam
-- { _phaseV = 1
-- , _lasColor = red
-- , _lasColor2 = green
-- , _lasCycle = 0
-- , _lasDamage = 11
-- , _lasBeam = BeamCombine LasBeamCombine
-- , _subParams = Nothing
-- , _dbGap = 20
-- }
---- & itUse . heldUse .~ HeldDualLaser --shootDualLaser
-- & itUse . heldDelay .~ NoDelay
-- & itUse . heldMods .~ DualBeamMod
-- & itUse . heldAim . aimWeight .~ 6
-- & itUse . heldAim . aimRange .~ 1
-- & itUse . heldAim . aimStance .~ TwoHandFlat
-- & itType . iyModules . at ModDualBeam ?~ EMPTYMODULE
-46
View File
@@ -18,10 +18,6 @@ launcher =
, _shellSpinAmount = 2
, _shellThrustDelay = 20
}
-- & itTweaks
-- .~ Tweakable
-- { _tweakParams = basicAmPjMoves
-- }
& itInvSize .~ 3
& itDimension . dimRad .~ 9
& itDimension . dimCenter .~ V3 10 0 0
@@ -52,45 +48,3 @@ launcherX i =
& itUse . heldAmmoTypes .~ IM.fromList [(j,ProjectileAmmo) | j <- [0..i-1]]
where
angles = take i [0,2*pi/ fromIntegral i ..]
--angles = take i [1,2 ..]
--remoteLauncher :: Item
--remoteLauncher =
-- launcher
-- & itType . iyBase .~ HELD REMOTELAUNCHER
---- & itUse . heldUse .~ HeldFireRemoteShell --fireRemoteShell
---- & itUse . heldMods .~ FireRemoteShellMod
-- & itScope .~ RemoteScope (V2 0 0) 1
---- & itUse . heldConsumption . laAmmoType . amPjDraw .~ DrawRemoteShell
--basicAmPjMoves :: IM.IntMap TweakParam
--basicAmPjMoves =
-- IM.fromList . zip [0 ..] $
-- [ spinDrag
-- , spinStart
-- , thrustParam
-- ]
--spinDrag :: TweakParam
--spinDrag =
-- TweakParam
-- { _tweakType = TweakSpinDrag
-- , _tweakVal = 1
-- , _tweakMax = 5
-- }
--
--spinStart :: TweakParam
--spinStart =
-- TweakParam
-- { _tweakType = TweakSpinAmount
-- , _tweakVal = 2
-- , _tweakMax = 5
-- }
--
--thrustParam :: TweakParam
--thrustParam =
-- TweakParam
-- { _tweakType = TweakThrustDelay
-- , _tweakVal = 1
-- , _tweakMax = 5
-- }