- retexture

- rebalance
This commit is contained in:
bacon
2023-08-28 00:48:41 +03:00
parent 7d60ec6da3
commit e8f8d9d195
11 changed files with 140 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
valueWeights[WeaponType.SmartCannon ] = 2
valueWeights[WeaponType.HeavyCannon ] = 1.7
valueWeights[WeaponType.Diffuser ] = 2.1
valueWeights[WeaponType.Hookgun ] = 2.1
valueWeights[WeaponType.HeavyCannon ] = 2.5
valueWeights[WeaponType.Diffuser ] = 1.7
valueWeights[WeaponType.Hookgun ] = 1.5

View File

@@ -118,10 +118,22 @@ function TurretGenerator.generateSmartCannonTurret(rand, dps, tech, material, ra
TurretGenerator.createStandardCooling(result, coolingTime, shootingTime)
TurretGenerator.scale(rand, result, WeaponType.SmartCannon, tech, 0.6)
TurretGenerator.addSpecialties(rand, result, WeaponType.SmartCannon)
local specialties = TurretGenerator.addSpecialties(rand, result, WeaponType.SmartCannon)
result.slotType = TurretSlotType.Armed
result:updateStaticStats()
local name = "SmartCannon /* 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], e.g. Enduring Dual Coaxial Plasmatic Tri-R-Mining Laser T-F */"%_T, outerAdjective, barrel, coax, dmgAdjective, multishot, name, serial)
local specType = 1
if specType > 0 then
weapon.prefix = "Ionized /* Weapon Prefix*/"%_t
weapon.shieldPenetration = 1
end
return result
end
@@ -152,10 +164,22 @@ function TurretGenerator.generateHeavyCannonTurret(rand, dps, tech, material, ra
TurretGenerator.createStandardCooling(result, coolingTime, shootingTime)
TurretGenerator.scale(rand, result, WeaponType.HeavyCannon, tech, 0.6)
TurretGenerator.addSpecialties(rand, result, WeaponType.HeavyCannon)
local specialties = TurretGenerator.addSpecialties(rand, result, WeaponType.HeavyCannon)
result.slotType = TurretSlotType.Armed
result:updateStaticStats()
local name = "Heavy Cannon /* weapon name*/"%_T
local Pen = rand:getInt(0, rarity.value)
if Pen > 0 then
weapon.blockPenetration = Pen
weapon.prefix = "Cumulative /* Weapon Prefix*/"%_t
end
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], e.g. Enduring Dual Coaxial Plasmatic Tri-R-Mining Laser T-F */"%_T, outerAdjective, barrel, coax, dmgAdjective, multishot, name, serial)
return result
end
@@ -186,10 +210,16 @@ function TurretGenerator.generateDiffuserTurret(rand, dps, tech, material, rarit
TurretGenerator.scale(rand, result, WeaponType.Diffuser, tech, 0.75)
TurretGenerator.addSpecialties(rand, result, WeaponType.Diffuser)
local specialties = TurretGenerator.addSpecialties(rand, result, WeaponType.Diffuser)
result.slotType = TurretSlotType.Armed
result:updateStaticStats()
local name = "Diffusor /* weapon name*/"%_T
local dmgAdjective, outerAdjective, barrel, multishot, coax, serial = makeTitleParts(rand, specialties, result, DamageType.Energy)
result.title = Format("%1%%2%%3%%4%%5%%6%%7% /* [outer-adjective][barrel][coax][dmg-adjective][multishot][name][serial], e.g. Enduring Dual Coaxial Plasmatic Tri-R-Mining Laser T-F */"%_T, outerAdjective, barrel, coax, dmgAdjective, multishot, name, serial)
return result
end
@@ -220,10 +250,16 @@ function TurretGenerator.generateHookgunTurret(rand, dps, tech, material, rarity
TurretGenerator.scale(rand, result, WeaponType.Hookgun, tech, 0.75)
TurretGenerator.addSpecialties(rand, result, WeaponType.Hookgun)
local specialties = TurretGenerator.addSpecialties(rand, result, WeaponType.Hookgun)
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], e.g. Enduring Dual Coaxial Plasmatic Tri-R-Mining Laser T-F */"%_T, outerAdjective, barrel, coax, dmgAdjective, multishot, name, serial)
return result
end

View File

@@ -16,8 +16,8 @@ function WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
weapon.seeker = 1
weapon.appearance = WeaponAppearance.Cannon
weapon.name = "SmartCannon /* Weapon Name*/"%_t
-- weapon.prefix = "SmartCannon /* Weapon Prefix*/"%_t
weapon.icon = "data/textures/icons/autocannon.png"
weapon.prefix = "SmartCannon /* Weapon Prefix*/"%_t
weapon.icon = "data/textures/icons/smartcannon.png"
weapon.sound = "cannon"
weapon.accuracy = 0.99 - rand:getFloat(0, 0.03)
@@ -28,13 +28,6 @@ function WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
weapon.impactSound = 1
weapon.impactExplosion = true
local specType = rand:getInt(0, 1)
if specType > 0 then
weapon.prefix = "Ionized /* Weapon Prefix*/"%_t
weapon.shieldPenetration = 1
else
weapon.prefix = "SmartCannon /* Weapon Prefix*/"%_t
end
weapon.psize = rand:getFloat(0.2, 0.5)
weapon.pmaximumTime = existingTime
@@ -86,15 +79,6 @@ function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
weapon.pvelocity = speed
weapon.pcolor = ColorHSV(rand:getFloat(10, 60), 0.7, 1)
local Pen = rand:getInt(0, rarity.value)
if Pen > 0 then
weapon.blockPenetration = Pen
weapon.prefix = "Cumulative/* Weapon Prefix*/"%_t
else
weapon.prefix = "Heavy Cannon /* Weapon Prefix*/"%_t
end
WeaponGenerator.adaptWeapon(rand, weapon, tech, material, rarity)
-- these have to be assigned after the weapon was adjusted since the damage might be changed
@@ -170,9 +154,9 @@ function WeaponGenerator.generateHookgun(rand, dps, tech, material, rarity)
weapon.reach = reach
weapon.continuousBeam = true
weapon.appearance = WeaponAppearance.Cannon
weapon.name = "Harpoon /* Weapon Name*/"%_t
weapon.prefix = "Harpoon /* Weapon Prefix*/"%_t
weapon.icon = "data/textures/icons/harpoon.png"
weapon.name = "Hookgun /* Weapon Name*/"%_t
weapon.prefix = "Hookgun /* Weapon Prefix*/"%_t
weapon.icon = "data/textures/icons/hookgun.png"
weapon.sound = "cannon"
weapon.accuracy = 0.99 - rand:getFloat(0, 0.02)