1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-24 03:16:25 +02:00
Rampant/prototypes/utils/UpdatesBobs.lua
2018-01-23 13:39:32 -08:00

218 lines
5.6 KiB
Lua
Executable File

local bobsUpdates = {}
local biterUtils = require("BiterUtils")
function bobsUpdates.useDumbProjectiles()
local turrets = data.raw["turret"];
turrets["bob-big-explosive-worm-turret"]["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 60,
range = 26,
min_range = 3,
turn_range = 1,
fire_penalty = 0,
scale = 1.2
},
"bob-explosive-ball-stream-rampant")
turrets["bob-big-fire-worm-turret"]["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 60,
range = 26,
min_range = 3,
turn_range = 1,
fire_penalty = 0,
scale = 1.2
},
"bob-fire-ball-stream-rampant")
turrets["bob-big-poison-worm-turret"]["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 60,
range = 26,
min_range = 3,
turn_range = 1,
fire_penalty = 0,
scale = 1.2
},
"bob-poison-ball-stream-rampant")
turrets["bob-big-piercing-worm-turret"]["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 60,
range = 26,
min_range = 3,
turn_range = 1,
fire_penalty = 0,
scale = 1.2
},
"bob-piercing-ball-stream-rampant")
turrets["bob-big-electric-worm-turret"]["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 60,
range = 26,
min_range = 3,
turn_range = 1,
fire_penalty = 0,
scale = 1.2
},
"bob-electric-ball-stream-rampant")
turrets["bob-giant-worm-turret"]["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 60,
range = 28,
min_range = 3,
turn_range = 1,
fire_penalty = 0,
scale = 1.6
},
"acid-ball-5-stream-rampant")
turrets["bob-behemoth-worm-turret"]["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 60,
range = 30,
min_range = 3,
turn_range = 1,
fire_penalty = 0,
scale = 2
},
"acid-ball-6-stream-rampant")
local units = data.raw["unit"]
local unit = units["behemoth-spitter"]
unit["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 90,
range = 16,
min_range = 3,
turn_range = 1,
warmup = 30,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
},
"acid-ball-3-stream-rampant")
unit = units["bob-big-electric-spitter"]
unit["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 90,
range = 15,
min_range = 3,
turn_range = 1,
damageModifier = 0.6,
warmup = 30,
fire_penalty = 0,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
},
"bob-electric-ball-stream-rampant")
unit = units["bob-huge-explosive-spitter"]
unit["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 90,
range = 16,
min_range = 3,
warmup = 30,
turn_range = 1,
damageModifier = 0.8,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
},
"bob-explosive-ball-stream-rampant")
unit = units["bob-huge-acid-spitter"]
unit["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 90,
range = 16,
min_range = 3,
turn_range = 1,
warmup = 30,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
},
"wide-acid-ball-stream-rampant")
unit = units["bob-giant-fire-spitter"]
unit["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 90,
range = 16,
min_range = 3,
turn_range = 1,
warmup = 30,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
},
"bob-fire-ball-stream-rampant")
unit = units["bob-giant-poison-spitter"]
unit["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 90,
range = 16,
min_range = 3,
turn_range = 1,
warmup = 30,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
},
"bob-poison-ball-stream-rampant")
unit = units["bob-titan-spitter"]
unit["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 90,
range = 16,
min_range = 3,
turn_range = 1,
warmup = 30,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
},
"bob-titan-ball-stream-rampant")
unit = units["bob-behemoth-spitter"]
unit["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 90,
range = 16,
min_range = 3,
turn_range = 1,
warmup = 30,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
},
"bob-behemoth-ball-stream-rampant")
unit = units["bob-leviathan-spitter"]
unit["attack_parameters"] = biterUtils.createStreamAttack(
{
cooldown = 90,
range = 17,
min_range = 3,
warmup = 30,
turn_range = 1,
fire_penalty = 15,
scale = biterUtils.findRunScale(unit),
tint = biterUtils.findTint(unit)
},
"bob-leviathan-ball-stream-rampant")
end
return bobsUpdates