From e53151710442b1185068e3bac69ab04abe9ad536 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 30 Aug 2023 18:30:44 +0000 Subject: [PATCH] Update file turretgenerator.lua --- data/scripts/lib/turretgenerator.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/scripts/lib/turretgenerator.lua b/data/scripts/lib/turretgenerator.lua index 7c2fa7c..404fd9b 100644 --- a/data/scripts/lib/turretgenerator.lua +++ b/data/scripts/lib/turretgenerator.lua @@ -148,7 +148,7 @@ function TurretGenerator.generateSmartCannonTurret(rand, dps, tech, material, ra weapon.shieldPenetration = 1 elseif specType == 2 then name = "Plasmed Smart-Cannon /* weapon name*/"%_T - result.damageType = DamageType.Plasma + weapon.damageType = DamageType.Plasma weapon.damage = weapon.damage * 0.9 end @@ -286,6 +286,8 @@ function TurretGenerator.generateHookgunTurret(rand, dps, tech, material, rarity result.slotType = TurretSlotType.Armed result:updateStaticStats() + local name = "Hookgun /* weapon name*/"%_T + local dmgAdjective, outerAdjective, barrel, multishot, coax, serial = makeTitleParts(rand, specialties, result, DamageType.Physical) result.title = Format("%1%%2%%3%%4%%5%%6%%7% /* [outer-adjective][barrel][coax][dmg-adjective][multishot][name][serial] */"%_T, outerAdjective, barrel, coax, dmgAdjective, multishot, name, serial)