Update 2 files
- /data/localization/ru.po - /data/scripts/lib/weapongenerator.lua
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
# ========== /mods/WPE2/data/scripts/lib/weapongenerator.lua ==========
|
# ========== /mods/WPE2/data/scripts/lib/weapongenerator.lua ==========
|
||||||
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
||||||
msgctxt "Weapon Name"
|
msgctxt "Weapon Name"
|
||||||
msgid "Smart Cannon"
|
msgid "SmartCannon"
|
||||||
msgstr "Умная пушка"
|
msgstr "Умная пушка"
|
||||||
|
|
||||||
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
||||||
msgctxt "Weapon Prefix"
|
msgctxt "Weapon Prefix"
|
||||||
msgid "Smart Cannon"
|
msgid "SmartCannon"
|
||||||
msgstr "Умная пушка"
|
msgstr "Умная пушка"
|
||||||
|
|
||||||
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
function WeaponGenerator.generateAutoCannon(rand, dps, tech, material, rarity)
|
function WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
|
||||||
local weapon = Weapon()
|
local weapon = Weapon()
|
||||||
weapon:setProjectile()
|
weapon:setProjectile()
|
||||||
|
|
||||||
@@ -15,8 +15,8 @@ function WeaponGenerator.generateAutoCannon(rand, dps, tech, material, rarity)
|
|||||||
weapon.appearanceSeed = rand:getInt()
|
weapon.appearanceSeed = rand:getInt()
|
||||||
weapon.seeker = 1
|
weapon.seeker = 1
|
||||||
weapon.appearance = WeaponAppearance.Cannon
|
weapon.appearance = WeaponAppearance.Cannon
|
||||||
weapon.name = "Smart-Cannon /* Weapon Name*/"%_t
|
weapon.name = "SmartCannon /* Weapon Name*/"%_t
|
||||||
weapon.prefix = "Smart-Cannon /* Weapon Prefix*/"%_t
|
weapon.prefix = "SmartCannon /* Weapon Prefix*/"%_t
|
||||||
weapon.icon = "data/textures/icons/autocannon.png"
|
weapon.icon = "data/textures/icons/autocannon.png"
|
||||||
weapon.sound = "cannon"
|
weapon.sound = "cannon"
|
||||||
weapon.accuracy = 0.99 - rand:getFloat(0, 0.03)
|
weapon.accuracy = 0.99 - rand:getFloat(0, 0.03)
|
||||||
@@ -30,10 +30,10 @@ function WeaponGenerator.generateAutoCannon(rand, dps, tech, material, rarity)
|
|||||||
|
|
||||||
local specType = rand:getInt(0, 1)
|
local specType = rand:getInt(0, 1)
|
||||||
if specType > 0 then
|
if specType > 0 then
|
||||||
weapon.prefix = "Ionized Smart-Cannon /* Weapon Prefix*/"%_t
|
weapon.prefix = "Ionized SmartCannon /* Weapon Prefix*/"%_t
|
||||||
weapon.shieldPenetration = 1
|
weapon.shieldPenetration = 1
|
||||||
else
|
else
|
||||||
weapon.prefix = "Smart-Cannon /* Weapon Prefix*/"%_t
|
weapon.prefix = "SmartCannon /* Weapon Prefix*/"%_t
|
||||||
end
|
end
|
||||||
|
|
||||||
weapon.psize = rand:getFloat(0.2, 0.5)
|
weapon.psize = rand:getFloat(0.2, 0.5)
|
||||||
@@ -50,7 +50,7 @@ function WeaponGenerator.generateAutoCannon(rand, dps, tech, material, rarity)
|
|||||||
return weapon
|
return weapon
|
||||||
end
|
end
|
||||||
|
|
||||||
generatorFunction[WeaponType.AutoCannon] = WeaponGenerator.generateAutoCannon
|
generatorFunction[WeaponType.SmartCannon] = WeaponGenerator.generateSmartCannon
|
||||||
|
|
||||||
|
|
||||||
function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
|
function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
|
||||||
|
|||||||
Reference in New Issue
Block a user