Compare commits

..

2 Commits

Author SHA1 Message Date
bacon
f74138d77b changed main 2023-08-29 02:06:55 +03:00
Slava
cbcc5ae680 Update file .gitattributes 2023-08-28 21:01:26 +00:00
3 changed files with 8 additions and 7 deletions

2
.gitattributes vendored
View File

@@ -4,4 +4,4 @@ CHANGELOG export-ignore
.gitlab-ci.yml export-ignore
.git export-ignore
.vs export-ignore
.gitignore exsport-ignore
.gitignore export-ignore

View File

@@ -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

View File

@@ -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