Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f74138d77b | ||
|
|
cbcc5ae680 |
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -4,4 +4,4 @@ CHANGELOG export-ignore
|
||||
.gitlab-ci.yml export-ignore
|
||||
.git export-ignore
|
||||
.vs export-ignore
|
||||
.gitignore exsport-ignore
|
||||
.gitignore export-ignore
|
||||
|
||||
@@ -148,7 +148,7 @@ function TurretGenerator.generateSmartCannonTurret(rand, dps, tech, material, ra
|
||||
|
||||
local specType = 1
|
||||
if specType > 0 then
|
||||
name = "Ionized SmartCannon/* weapon name*/"%_T
|
||||
name = "Ionized SmartCannon /* weapon name*/"%_T
|
||||
weapon.shieldPenetration = 1
|
||||
end
|
||||
|
||||
|
||||
@@ -201,22 +201,22 @@ function WeaponGenerator.generateHiveLauncher(rand, dps, tech, material, rarity)
|
||||
local weapon = Weapon()
|
||||
weapon:setProjectile()
|
||||
|
||||
local fireDelay = rand:getFloat(0.5, 1.5)
|
||||
local fireDelay = rand:getFloat(2.2, 3)
|
||||
local reach = rand:getFloat(1300, 1800)
|
||||
local damage = dps * fireDelay
|
||||
local speed = rand:getFloat(150, 200)
|
||||
local existingTime = reach / speed
|
||||
|
||||
weapon.fireDelay = fireDelay
|
||||
weapon.fireDelay = fireDelay
|
||||
weapon.reach = reach
|
||||
weapon.appearanceSeed = rand:getInt()
|
||||
weapon.seeker = rand:test(1 / 8)
|
||||
weapon.seeker = true
|
||||
weapon.appearance = WeaponAppearance.RocketLauncher
|
||||
weapon.name = "HiveLauncher /* Weapon Name*/"%_t
|
||||
weapon.prefix = "HiveLauncher /* Weapon Prefix*/"%_t
|
||||
weapon.icon = "data/textures/icons/hivelauncher.png"
|
||||
weapon.sound = "cannon"
|
||||
weapon.accuracy = 0.99 - rand:getFloat(0, 0.02)
|
||||
weapon.accuracy = 0.5 - rand:getFloat(0, 0.02)
|
||||
|
||||
weapon.damage = damage
|
||||
weapon.damageType = DamageType.Physical
|
||||
@@ -231,8 +231,9 @@ function WeaponGenerator.generateHiveLauncher(rand, dps, tech, material, rarity)
|
||||
weapon.pshape = ProjectileShape.Rocket
|
||||
|
||||
if rand:test(1) then
|
||||
local shots = {2, 2, 2, 2, 2, 3, 4}
|
||||
local shots = {6, 10, 14, 18, 22, 26, 30}
|
||||
weapon.shotsFired = shots[rand:getInt(1, #shots)]
|
||||
print()
|
||||
weapon.damage = (weapon.damage * 1.5) / weapon.shotsFired
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user