Update file weapongenerator.lua

This commit is contained in:
Alex
2023-08-28 20:08:13 +00:00
parent 13a688edb3
commit e90ff8f1e2

View File

@@ -230,7 +230,7 @@ function WeaponGenerator.generateHiveLauncher(rand, dps, tech, material, rarity)
weapon.pcolor = ColorHSV(rand:getFloat(10, 60), 0.7, 1) weapon.pcolor = ColorHSV(rand:getFloat(10, 60), 0.7, 1)
weapon.pshape = ProjectileShape.Rocket weapon.pshape = ProjectileShape.Rocket
if rand:test(0.05) then if rand:test(1) then
local shots = {2, 2, 2, 2, 2, 3, 4} local shots = {2, 2, 2, 2, 2, 3, 4}
weapon.shotsFired = shots[rand:getInt(1, #shots)] weapon.shotsFired = shots[rand:getInt(1, #shots)]
weapon.damage = (weapon.damage * 1.5) / weapon.shotsFired weapon.damage = (weapon.damage * 1.5) / weapon.shotsFired