1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-10 00:28:31 +02:00
Rampant/prototypes/utils/UpdatesVanilla.lua

104 lines
2.3 KiB
Lua
Raw Normal View History

2017-04-02 01:40:47 +02:00
local vanillaUpdates = {}
local biterUtils = require("BiterUtils")
function vanillaUpdates.useDumbProjectiles()
local turrets = data.raw["turret"];
2018-01-23 23:39:32 +02:00
turrets["small-worm-turret"]["attack_parameters"] = biterUtils.createStreamAttack(
2017-04-02 01:40:47 +02:00
{
2017-11-21 09:27:03 +02:00
cooldown = 60,
range = 21,
2017-04-02 01:40:47 +02:00
min_range = 5,
turn_range = 1,
fire_penalty = 0,
2017-11-21 09:27:03 +02:00
damageModifier = 0.9,
2017-04-02 01:40:47 +02:00
scale = 0.8
},
2017-11-21 09:27:03 +02:00
"acid-ball-2-stream-rampant")
2017-04-02 01:40:47 +02:00
2018-01-23 23:39:32 +02:00
turrets["medium-worm-turret"]["attack_parameters"] = biterUtils.createStreamAttack(
2017-04-02 01:40:47 +02:00
{
2017-11-21 09:27:03 +02:00
cooldown = 60,
range = 25,
2017-04-02 01:40:47 +02:00
min_range = 3,
turn_range = 1,
fire_penalty = 0,
2017-11-21 09:27:03 +02:00
damageModifier = 0.87,
2017-04-02 01:40:47 +02:00
scale = 1
},
2017-11-21 09:27:03 +02:00
"acid-ball-3-stream-rampant")
2017-04-02 01:40:47 +02:00
2018-01-23 23:39:32 +02:00
turrets["big-worm-turret"]["attack_parameters"] = biterUtils.createStreamAttack(
2017-04-02 01:40:47 +02:00
{
2017-11-21 09:27:03 +02:00
cooldown = 60,
range = 26,
2017-04-02 01:40:47 +02:00
min_range = 3,
turn_range = 1,
fire_penalty = 0,
scale = 1.2
},
2017-11-21 09:27:03 +02:00
"acid-ball-4-stream-rampant")
2017-04-02 01:40:47 +02:00
local units = data.raw["unit"];
local unit = units["small-spitter"]
2018-01-23 23:39:32 +02:00
unit["attack_parameters"] = biterUtils.createStreamAttack(
2017-04-02 01:40:47 +02:00
{
2017-11-21 09:27:03 +02:00
cooldown = 100,
2017-04-02 05:32:38 +02:00
range = 13,
warmup = 30,
2017-04-02 01:40:47 +02:00
min_range = 3,
turn_range = 1,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
2017-04-02 01:40:47 +02:00
},
"acid-ball-stream-rampant")
unit = units["medium-spitter"]
2018-01-23 23:39:32 +02:00
unit["attack_parameters"] = biterUtils.createStreamAttack(
2017-04-02 01:40:47 +02:00
{
2017-11-21 09:27:03 +02:00
cooldown = 95,
2017-04-02 05:32:38 +02:00
range = 14,
2017-04-02 01:40:47 +02:00
min_range = 3,
2017-04-02 05:32:38 +02:00
warmup = 30,
2017-04-02 01:40:47 +02:00
turn_range = 1,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
2017-04-02 01:40:47 +02:00
},
"acid-ball-1-stream-rampant")
unit = units["big-spitter"]
2018-01-23 23:39:32 +02:00
unit["attack_parameters"] = biterUtils.createStreamAttack(
2017-04-02 01:40:47 +02:00
{
2017-11-21 09:27:03 +02:00
cooldown = 90,
2017-04-02 01:40:47 +02:00
range = 15,
min_range = 3,
2017-04-02 05:32:38 +02:00
warmup = 30,
2017-04-02 01:40:47 +02:00
turn_range = 1,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
2017-04-02 01:40:47 +02:00
},
"acid-ball-2-stream-rampant")
unit = units["behemoth-spitter"]
2018-01-23 23:39:32 +02:00
unit["attack_parameters"] = biterUtils.createStreamAttack(
2017-04-02 01:40:47 +02:00
{
2017-11-21 09:27:03 +02:00
cooldown = 90,
range = 16,
2017-04-02 01:40:47 +02:00
min_range = 3,
2017-04-02 05:32:38 +02:00
warmup = 30,
2017-04-02 01:40:47 +02:00
turn_range = 1,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
2017-04-02 01:40:47 +02:00
},
"acid-ball-3-stream-rampant")
end
return vanillaUpdates