Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f51f351e06 | ||
|
|
b137aec60a | ||
|
|
ca00911fd7 |
@@ -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 /* 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)
|
||||||
@@ -89,7 +89,7 @@ function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
|
|||||||
local Pen = rand:getInt(0, rarity.value)
|
local Pen = rand:getInt(0, rarity.value)
|
||||||
if Pen > 0 then
|
if Pen > 0 then
|
||||||
weapon.blockPenetration = Pen
|
weapon.blockPenetration = Pen
|
||||||
weapon.prefix = "Cumulative Heavy Cannon /* Weapon Prefix*/"%_t
|
weapon.prefix = "Cumulative/* Weapon Prefix*/"%_t
|
||||||
else
|
else
|
||||||
weapon.prefix = "Heavy Cannon /* Weapon Prefix*/"%_t
|
weapon.prefix = "Heavy Cannon /* Weapon Prefix*/"%_t
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ meta =
|
|||||||
description = "Adds some new weapon to the game.",
|
description = "Adds some new weapon to the game.",
|
||||||
|
|
||||||
-- Insert all authors into this list
|
-- Insert all authors into this list
|
||||||
authors = {"Alive!"},
|
authors = {"Casimir Kepler, Baconborn, OmenOs"},
|
||||||
|
|
||||||
-- Version of your mod, should be in format 1.0.0 (major.minor.patch) or 1.0 (major.minor)
|
-- Version of your mod, should be in format 1.0.0 (major.minor.patch) or 1.0 (major.minor)
|
||||||
-- This will be used to check for unmet dependencies or incompatibilities
|
-- This will be used to check for unmet dependencies or incompatibilities
|
||||||
@@ -52,5 +52,5 @@ meta =
|
|||||||
saveGameAltering = false,
|
saveGameAltering = false,
|
||||||
|
|
||||||
-- Contact info for other users to reach you in case they have questions
|
-- Contact info for other users to reach you in case they have questions
|
||||||
contact = "https://steamcommunity.com/id/CasKepler2/",
|
contact = "https://steamcommunity.com/id/CasKepler2/", "https://steamcommunity.com/id/baconborn/",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user