Renamed Autocannon to Smart Cannon
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
function WeaponGenerator.generateAutoCannon(rand, dps, tech, material, rarity)
|
||||
function WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
|
||||
local weapon = Weapon()
|
||||
weapon:setProjectile()
|
||||
|
||||
@@ -15,8 +15,8 @@ function WeaponGenerator.generateAutoCannon(rand, dps, tech, material, rarity)
|
||||
weapon.appearanceSeed = rand:getInt()
|
||||
weapon.seeker = rand:test(1 / 2)
|
||||
weapon.appearance = WeaponAppearance.Cannon
|
||||
weapon.name = "Auto Cannon /* Weapon Name*/"%_t
|
||||
weapon.prefix = "Auto Cannon /* Weapon Prefix*/"%_t
|
||||
weapon.name = "Smart Cannon /* Weapon Name*/"%_t
|
||||
weapon.prefix = "Smart Cannon /* Weapon Prefix*/"%_t
|
||||
weapon.icon = "data/textures/icons/autocannon.png"
|
||||
weapon.sound = "cannon"
|
||||
weapon.accuracy = 0.99 - rand:getFloat(0, 0.03)
|
||||
@@ -42,8 +42,7 @@ function WeaponGenerator.generateAutoCannon(rand, dps, tech, material, rarity)
|
||||
return weapon
|
||||
end
|
||||
|
||||
generatorFunction[WeaponType.AutoCannon] = WeaponGenerator.generateAutoCannon
|
||||
|
||||
generatorFunction[WeaponType.SmartCannon] = WeaponGenerator.generateSmartCannon
|
||||
|
||||
function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
|
||||
local weapon = Weapon()
|
||||
|
||||
Reference in New Issue
Block a user