Renamed 'harpoon' to 'Hookgun'
This commit is contained in:
@@ -22,7 +22,7 @@ scales[WeaponType.Diffuser] = {
|
||||
{from = 51, to = 52, size = 3.0, usedSlots = 6},
|
||||
}
|
||||
|
||||
scales[WeaponType.Harpoon] = {
|
||||
scales[WeaponType.Hookgun] = {
|
||||
{from = 0, to = 46, size = 1.0, usedSlots = 2},
|
||||
{from = 47, to = 50, size = 2.0, usedSlots = 4},
|
||||
--dummy for cooaxial, add 1 to size and level
|
||||
@@ -82,13 +82,13 @@ else
|
||||
end
|
||||
|
||||
if GameVersion() >= Version(0, 31, 0) then
|
||||
possibleSpecialties[WeaponType.Harpoon] = {
|
||||
possibleSpecialties[WeaponType.Hookgun] = {
|
||||
{specialty = Specialty.HighDamage, probability = 0.3},
|
||||
{specialty = Specialty.HighRange, probability = 0.3},
|
||||
-- {specialty = Specialty.FasterRechargeTime, probability = 0.6},
|
||||
}
|
||||
else
|
||||
possibleSpecialties[WeaponType.Harpoon] = {
|
||||
possibleSpecialties[WeaponType.Hookgun] = {
|
||||
Specialty.HighDamage,
|
||||
Specialty.HighRange,
|
||||
Specialty.FasterRechargeTime,
|
||||
@@ -196,7 +196,7 @@ end
|
||||
generatorFunction[WeaponType.Diffuser] = TurretGenerator.generateDiffuserTurret
|
||||
|
||||
|
||||
function TurretGenerator.generateHarpoonTurret(rand, dps, tech, material, rarity)
|
||||
function TurretGenerator.generateHookgunTurret(rand, dps, tech, material, rarity)
|
||||
local result = TurretTemplate()
|
||||
|
||||
-- generate turret
|
||||
@@ -208,7 +208,7 @@ function TurretGenerator.generateHarpoonTurret(rand, dps, tech, material, rarity
|
||||
-- generate weapons
|
||||
local numWeapons = rand:getInt(1, 2)
|
||||
|
||||
local weapon = WeaponGenerator.generateHarpoon(rand, dps, tech, material, rarity)
|
||||
local weapon = WeaponGenerator.generateHookgun(rand, dps, tech, material, rarity)
|
||||
weapon.damage = weapon.damage / numWeapons
|
||||
|
||||
-- attach weapons to turret
|
||||
@@ -219,12 +219,12 @@ function TurretGenerator.generateHarpoonTurret(rand, dps, tech, material, rarity
|
||||
TurretGenerator.createBatteryChargeCooling(result, rechargeTime, shootingTime)
|
||||
|
||||
|
||||
TurretGenerator.scale(rand, result, WeaponType.Harpoon, tech, 0.75)
|
||||
TurretGenerator.addSpecialties(rand, result, WeaponType.Harpoon)
|
||||
TurretGenerator.scale(rand, result, WeaponType.Hookgun, tech, 0.75)
|
||||
TurretGenerator.addSpecialties(rand, result, WeaponType.Hookgun)
|
||||
|
||||
result:updateStaticStats()
|
||||
|
||||
return result
|
||||
end
|
||||
|
||||
generatorFunction[WeaponType.Harpoon] = TurretGenerator.generateHarpoonTurret
|
||||
generatorFunction[WeaponType.Hookgun] = TurretGenerator.generateHookgunTurret
|
||||
|
||||
Reference in New Issue
Block a user