2017-04-02 01:40:47 +02:00
|
|
|
local bobsUpdates = {}
|
|
|
|
|
2018-02-06 10:01:20 +02:00
|
|
|
local FORCE_OLD_PROJECTILES = settings.startup["rampant-forceOldProjectiles"].value
|
|
|
|
|
2017-04-02 01:40:47 +02:00
|
|
|
local biterUtils = require("BiterUtils")
|
|
|
|
|
|
|
|
function bobsUpdates.useDumbProjectiles()
|
|
|
|
local turrets = data.raw["turret"];
|
2018-02-06 10:01:20 +02:00
|
|
|
|
|
|
|
turrets["bob-big-explosive-worm-turret"]["attack_parameters"] = biterUtils.createRangedAttack(
|
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,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2017-04-02 01:40:47 +02:00
|
|
|
scale = 1.2
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-explosive-ball-stream-rampant")
|
2017-04-02 01:40:47 +02:00
|
|
|
|
2018-02-06 10:01:20 +02:00
|
|
|
turrets["bob-big-fire-worm-turret"]["attack_parameters"] = biterUtils.createRangedAttack(
|
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,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2017-04-02 01:40:47 +02:00
|
|
|
scale = 1.2
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-fire-ball-stream-rampant")
|
2017-04-02 01:40:47 +02:00
|
|
|
|
2018-02-06 10:01:20 +02:00
|
|
|
turrets["bob-big-poison-worm-turret"]["attack_parameters"] = biterUtils.createRangedAttack(
|
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,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2017-04-02 01:40:47 +02:00
|
|
|
scale = 1.2
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-poison-ball-stream-rampant")
|
2017-04-02 01:40:47 +02:00
|
|
|
|
2018-02-06 10:01:20 +02:00
|
|
|
turrets["bob-big-piercing-worm-turret"]["attack_parameters"] = biterUtils.createRangedAttack(
|
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,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2017-04-02 01:40:47 +02:00
|
|
|
scale = 1.2
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-piercing-ball-stream-rampant")
|
2017-04-02 01:40:47 +02:00
|
|
|
|
2018-02-06 10:01:20 +02:00
|
|
|
turrets["bob-big-electric-worm-turret"]["attack_parameters"] = biterUtils.createRangedAttack(
|
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,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2017-04-02 01:40:47 +02:00
|
|
|
scale = 1.2
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-electric-ball-stream-rampant")
|
2017-04-02 01:40:47 +02:00
|
|
|
|
2018-02-06 10:01:20 +02:00
|
|
|
turrets["bob-giant-worm-turret"]["attack_parameters"] = biterUtils.createRangedAttack(
|
2017-04-02 01:40:47 +02:00
|
|
|
{
|
2017-11-21 09:27:03 +02:00
|
|
|
cooldown = 60,
|
2017-04-02 01:40:47 +02:00
|
|
|
range = 28,
|
|
|
|
min_range = 3,
|
|
|
|
turn_range = 1,
|
|
|
|
fire_penalty = 0,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2017-04-02 01:40:47 +02:00
|
|
|
scale = 1.6
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"acid-ball-5-stream-rampant")
|
2017-04-02 01:40:47 +02:00
|
|
|
|
2018-02-06 10:01:20 +02:00
|
|
|
turrets["bob-behemoth-worm-turret"]["attack_parameters"] = biterUtils.createRangedAttack(
|
2017-04-02 01:40:47 +02:00
|
|
|
{
|
2017-11-21 09:27:03 +02:00
|
|
|
cooldown = 60,
|
2017-04-02 01:40:47 +02:00
|
|
|
range = 30,
|
|
|
|
min_range = 3,
|
|
|
|
turn_range = 1,
|
|
|
|
fire_penalty = 0,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2017-04-02 01:40:47 +02:00
|
|
|
scale = 2
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"acid-ball-6-stream-rampant")
|
2017-04-02 01:40:47 +02:00
|
|
|
|
|
|
|
local units = data.raw["unit"]
|
|
|
|
|
|
|
|
local unit = units["behemoth-spitter"]
|
2018-02-06 10:01:20 +02:00
|
|
|
unit["attack_parameters"] = biterUtils.createRangedAttack(
|
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,
|
|
|
|
turn_range = 1,
|
2017-04-02 05:32:38 +02:00
|
|
|
warmup = 30,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2017-04-02 01:40:47 +02:00
|
|
|
fire_penalty = 15,
|
2018-02-06 10:01:20 +02:00
|
|
|
scale = biterUtils.findRunScale(unit)
|
2017-04-02 01:40:47 +02:00
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"acid-ball-3-stream-rampant",
|
2018-02-06 10:01:20 +02:00
|
|
|
spitterattackanimation(biterUtils.findRunScale(unit),
|
|
|
|
biterUtils.findTint(unit)))
|
2017-04-02 01:40:47 +02:00
|
|
|
|
|
|
|
unit = units["bob-big-electric-spitter"]
|
2018-02-06 10:01:20 +02:00
|
|
|
unit["attack_parameters"] = biterUtils.createRangedAttack(
|
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,
|
|
|
|
turn_range = 1,
|
2017-11-21 09:27:03 +02:00
|
|
|
damageModifier = 0.6,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2017-04-02 05:32:38 +02:00
|
|
|
warmup = 30,
|
2017-04-02 01:40:47 +02:00
|
|
|
fire_penalty = 0,
|
2018-02-06 10:01:20 +02:00
|
|
|
scale = biterUtils.findRunScale(unit)
|
2017-04-02 01:40:47 +02:00
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-electric-ball-stream-rampant",
|
2018-02-06 10:01:20 +02:00
|
|
|
spitterattackanimation(biterUtils.findRunScale(unit),
|
|
|
|
biterUtils.findTint(unit)))
|
2017-04-02 01:40:47 +02:00
|
|
|
|
|
|
|
unit = units["bob-huge-explosive-spitter"]
|
2018-02-06 10:01:20 +02:00
|
|
|
unit["attack_parameters"] = biterUtils.createRangedAttack(
|
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,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2017-04-02 05:32:38 +02:00
|
|
|
warmup = 30,
|
2017-04-02 01:40:47 +02:00
|
|
|
turn_range = 1,
|
2017-11-21 09:27:03 +02:00
|
|
|
damageModifier = 0.8,
|
2017-04-02 01:40:47 +02:00
|
|
|
fire_penalty = 15,
|
2018-02-06 10:01:20 +02:00
|
|
|
scale = biterUtils.findRunScale(unit)
|
2017-04-02 01:40:47 +02:00
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-explosive-ball-stream-rampant",
|
2018-02-06 10:01:20 +02:00
|
|
|
spitterattackanimation(biterUtils.findRunScale(unit),
|
|
|
|
biterUtils.findTint(unit)))
|
2017-04-02 01:40:47 +02:00
|
|
|
|
|
|
|
unit = units["bob-huge-acid-spitter"]
|
2018-02-06 10:01:20 +02:00
|
|
|
unit["attack_parameters"] = biterUtils.createRangedAttack(
|
|
|
|
{
|
|
|
|
cooldown = 90,
|
|
|
|
range = 16,
|
|
|
|
min_range = 3,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2018-02-06 10:01:20 +02:00
|
|
|
turn_range = 1,
|
2017-04-02 05:32:38 +02:00
|
|
|
warmup = 30,
|
2018-02-06 10:01:20 +02:00
|
|
|
fire_penalty = 15,
|
|
|
|
scale = biterUtils.findRunScale(unit)
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"wide-acid-ball-stream-rampant",
|
2018-02-06 10:01:20 +02:00
|
|
|
spitterattackanimation(biterUtils.findRunScale(unit),
|
|
|
|
biterUtils.findTint(unit)))
|
2017-04-02 01:40:47 +02:00
|
|
|
|
|
|
|
unit = units["bob-giant-fire-spitter"]
|
2018-02-06 10:01:20 +02:00
|
|
|
unit["attack_parameters"] = biterUtils.createRangedAttack(
|
|
|
|
{
|
|
|
|
cooldown = 90,
|
|
|
|
range = 16,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2018-02-06 10:01:20 +02:00
|
|
|
min_range = 3,
|
|
|
|
turn_range = 1,
|
2017-04-02 05:32:38 +02:00
|
|
|
warmup = 30,
|
2018-02-06 10:01:20 +02:00
|
|
|
fire_penalty = 15,
|
|
|
|
scale = biterUtils.findRunScale(unit)
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-fire-ball-stream-rampant",
|
2018-02-06 10:01:20 +02:00
|
|
|
spitterattackanimation(biterUtils.findRunScale(unit),
|
|
|
|
biterUtils.findTint(unit)))
|
2017-04-02 01:40:47 +02:00
|
|
|
|
|
|
|
unit = units["bob-giant-poison-spitter"]
|
2018-02-06 10:01:20 +02:00
|
|
|
unit["attack_parameters"] = biterUtils.createRangedAttack(
|
|
|
|
{
|
|
|
|
cooldown = 90,
|
|
|
|
range = 16,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2018-02-06 10:01:20 +02:00
|
|
|
min_range = 3,
|
|
|
|
turn_range = 1,
|
2017-04-02 05:32:38 +02:00
|
|
|
warmup = 30,
|
2018-02-06 10:01:20 +02:00
|
|
|
fire_penalty = 15,
|
|
|
|
scale = biterUtils.findRunScale(unit)
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-poison-ball-stream-rampant",
|
2018-02-06 10:01:20 +02:00
|
|
|
spitterattackanimation(biterUtils.findRunScale(unit),
|
|
|
|
biterUtils.findTint(unit)))
|
|
|
|
|
2017-04-02 01:40:47 +02:00
|
|
|
unit = units["bob-titan-spitter"]
|
2018-02-06 10:01:20 +02:00
|
|
|
unit["attack_parameters"] = biterUtils.createRangedAttack(
|
|
|
|
{
|
|
|
|
cooldown = 90,
|
|
|
|
range = 16,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2018-02-06 10:01:20 +02:00
|
|
|
min_range = 3,
|
|
|
|
turn_range = 1,
|
2017-04-02 05:32:38 +02:00
|
|
|
warmup = 30,
|
2018-02-06 10:01:20 +02:00
|
|
|
fire_penalty = 15,
|
|
|
|
scale = biterUtils.findRunScale(unit)
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-titan-ball-stream-rampant",
|
2018-02-06 10:01:20 +02:00
|
|
|
spitterattackanimation(biterUtils.findRunScale(unit),
|
|
|
|
biterUtils.findTint(unit)))
|
2017-04-02 01:40:47 +02:00
|
|
|
|
|
|
|
unit = units["bob-behemoth-spitter"]
|
2018-02-06 10:01:20 +02:00
|
|
|
unit["attack_parameters"] = biterUtils.createRangedAttack(
|
|
|
|
{
|
|
|
|
cooldown = 90,
|
|
|
|
range = 16,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2018-02-06 10:01:20 +02:00
|
|
|
min_range = 3,
|
|
|
|
turn_range = 1,
|
2017-04-02 05:32:38 +02:00
|
|
|
warmup = 30,
|
2018-02-06 10:01:20 +02:00
|
|
|
fire_penalty = 15,
|
|
|
|
scale = biterUtils.findRunScale(unit)
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-behemoth-ball-stream-rampant",
|
2018-02-06 10:01:20 +02:00
|
|
|
spitterattackanimation(biterUtils.findRunScale(unit),
|
|
|
|
biterUtils.findTint(unit)))
|
|
|
|
|
2017-04-02 01:40:47 +02:00
|
|
|
|
|
|
|
unit = units["bob-leviathan-spitter"]
|
2018-02-06 10:01:20 +02:00
|
|
|
unit["attack_parameters"] = biterUtils.createRangedAttack(
|
|
|
|
{
|
|
|
|
cooldown = 90,
|
2018-02-07 09:57:41 +02:00
|
|
|
type = "stream",
|
2018-02-06 10:01:20 +02:00
|
|
|
range = 17,
|
|
|
|
min_range = 3,
|
2017-04-02 05:32:38 +02:00
|
|
|
warmup = 30,
|
2018-02-06 10:01:20 +02:00
|
|
|
turn_range = 1,
|
|
|
|
fire_penalty = 15,
|
|
|
|
scale = biterUtils.findRunScale(unit)
|
|
|
|
},
|
2018-02-07 09:57:41 +02:00
|
|
|
"bob-leviathan-ball-stream-rampant",
|
2018-02-06 10:01:20 +02:00
|
|
|
spitterattackanimation(biterUtils.findRunScale(unit),
|
|
|
|
biterUtils.findTint(unit)))
|
2017-04-02 01:40:47 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return bobsUpdates
|