mirror of
https://github.com/veden/Rampant.git
synced 2025-01-05 22:53:24 +02:00
1365 lines
19 KiB
Lua
Executable File
1365 lines
19 KiB
Lua
Executable File
-- imports
|
|
|
|
local acidBall = require("utils/AttackBall")
|
|
local biterUtils = require("utils/BiterUtils")
|
|
local swarmUtils = require("SwarmUtils")
|
|
package.path = "../libs/?.lua;" .. package.path
|
|
local constants = require("Constants")
|
|
|
|
-- constants
|
|
|
|
local FAST_UNIT_TIERS = constants.FAST_UNIT_TIERS
|
|
local FAST_UNIT_VARIATIONS = constants.FAST_UNIT_VARIATIONS
|
|
|
|
local FAST_NEST_TIERS = constants.FAST_NEST_TIERS
|
|
local FAST_NEST_VARIATIONS = constants.FAST_NEST_VARIATIONS
|
|
|
|
local FAST_WORM_TIERS = constants.FAST_WORM_TIERS
|
|
local FAST_WORM_VARIATIONS = constants.FAST_WORM_VARIATIONS
|
|
|
|
-- imported functions
|
|
|
|
local buildUnitSpawner = swarmUtils.buildUnitSpawner
|
|
local buildWorm = swarmUtils.buildWorm
|
|
local createAttackBall = acidBall.createAttackBall
|
|
local createRangedAttack = biterUtils.createRangedAttack
|
|
local createMeleeAttack = biterUtils.createMeleeAttack
|
|
|
|
local softSmoke = "the-soft-smoke-rampant"
|
|
|
|
local makeUnitAlienLootTable = biterUtils.makeUnitAlienLootTable
|
|
local makeSpawnerAlienLootTable = biterUtils.makeSpawnerAlienLootTable
|
|
local makeWormAlienLootTable = biterUtils.makeWormAlienLootTable
|
|
|
|
local biterLoot = makeUnitAlienLootTable("purple")
|
|
local spawnerLoot = makeSpawnerAlienLootTable("purple")
|
|
local wormLoot = makeWormAlienLootTable("purple")
|
|
|
|
|
|
|
|
-- fast biters
|
|
buildUnitSpawner(
|
|
{
|
|
unit = {
|
|
name = "fast-biter",
|
|
|
|
attributes = {
|
|
explosion = "blood-explosion-small"
|
|
},
|
|
attack = {},
|
|
resistances = {},
|
|
|
|
loot = biterLoot,
|
|
type = "biter",
|
|
scales = {
|
|
[1] = 0.5,
|
|
[2] = 0.6,
|
|
[3] = 0.7,
|
|
[4] = 0.8,
|
|
[5] = 0.9,
|
|
[6] = 1,
|
|
[7] = 1.1,
|
|
[8] = 1.2,
|
|
[9] = 1.3,
|
|
[10] = 1.4
|
|
},
|
|
tint1 = {r=0.26, g=0.76, b=0.72, a=0.65},
|
|
tint2 = {r=1, g=0.63, b=0, a=0.4}
|
|
},
|
|
|
|
unitSpawner = {
|
|
name = "fast-biter-nest",
|
|
|
|
loot = spawnerLoot,
|
|
attributes = {},
|
|
resistances = {},
|
|
scales = {
|
|
[1] = 0.5,
|
|
[2] = 0.5,
|
|
[3] = 0.5,
|
|
[4] = 0.5,
|
|
[5] = 0.5,
|
|
[6] = 0.5,
|
|
[7] = 0.5,
|
|
[8] = 0.5,
|
|
[9] = 0.5,
|
|
[10] = 0.5
|
|
},
|
|
tint = {r=0.26, g=0.76, b=0.72, a=0.65}
|
|
}
|
|
},
|
|
|
|
{
|
|
unit = {
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "health",
|
|
[1] = 15,
|
|
[2] = 75,
|
|
[3] = 150,
|
|
[4] = 250,
|
|
[5] = 400,
|
|
[6] = 750,
|
|
[7] = 1500,
|
|
[8] = 3000,
|
|
[9] = 5000,
|
|
[10] = 10000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attack",
|
|
name = "cooldown",
|
|
[1] = 35,
|
|
[2] = 36,
|
|
[3] = 38,
|
|
[4] = 38,
|
|
[5] = 40,
|
|
[6] = 42,
|
|
[7] = 42,
|
|
[8] = 43,
|
|
[9] = 43,
|
|
[10] = 45
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "spawningTimeModifer",
|
|
[1] = 0,
|
|
[2] = 0,
|
|
[3] = 1,
|
|
[4] = 2,
|
|
[5] = 2,
|
|
[6] = 5,
|
|
[7] = 8,
|
|
[8] = 8,
|
|
[9] = 10,
|
|
[10] = 10
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "pollutionToAttack",
|
|
[1] = 200,
|
|
[2] = 750,
|
|
[3] = 1750,
|
|
[4] = 3500,
|
|
[5] = 5000,
|
|
[6] = 10000,
|
|
[7] = 20000,
|
|
[8] = 25000,
|
|
[9] = 30000,
|
|
[10] = 40000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attack",
|
|
name = "damage",
|
|
[1] = 7,
|
|
[2] = 15,
|
|
[3] = 22.5,
|
|
[4] = 35,
|
|
[5] = 45,
|
|
[6] = 60,
|
|
[7] = 75,
|
|
[8] = 90,
|
|
[9] = 150,
|
|
[10] = 200
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "healing",
|
|
[1] = 0.01,
|
|
[2] = 0.01,
|
|
[3] = 0.015,
|
|
[4] = 0.02,
|
|
[5] = 0.05,
|
|
[6] = 0.075,
|
|
[7] = 0.1,
|
|
[8] = 0.12,
|
|
[9] = 0.14,
|
|
[10] = 0.16
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "movement",
|
|
[1] = 0.22,
|
|
[2] = 0.22,
|
|
[3] = 0.23,
|
|
[4] = 0.23,
|
|
[5] = 0.23,
|
|
[6] = 0.23,
|
|
[7] = 0.24,
|
|
[8] = 0.24,
|
|
[9] = 0.24,
|
|
[10] = 0.25
|
|
},
|
|
{
|
|
type = "attribute",
|
|
name = "distancePerFrame",
|
|
[1] = 0.12,
|
|
[2] = 0.145,
|
|
[3] = 0.17,
|
|
[4] = 0.21,
|
|
[5] = 0.215,
|
|
[6] = 0.22,
|
|
[7] = 0.22,
|
|
[8] = 0.24,
|
|
[9] = 0.24,
|
|
[10] = 0.26
|
|
},
|
|
|
|
{
|
|
type = "resistance",
|
|
name = "physical",
|
|
decrease = {
|
|
[1] = 0,
|
|
[2] = 0,
|
|
[3] = 4,
|
|
[4] = 5,
|
|
[5] = 6,
|
|
[6] = 8,
|
|
[7] = 10,
|
|
[8] = 12,
|
|
[9] = 14,
|
|
[10] = 15
|
|
},
|
|
percent = {
|
|
[1] = 0,
|
|
[2] = 0,
|
|
[3] = 0,
|
|
[4] = 10,
|
|
[5] = 12,
|
|
[6] = 12,
|
|
[7] = 13,
|
|
[8] = 13,
|
|
[9] = 14,
|
|
[10] = 15
|
|
}
|
|
},
|
|
{
|
|
type = "resistance",
|
|
name = "explosion",
|
|
decrease = {
|
|
[1] = 0,
|
|
[2] = 0,
|
|
[3] = 0,
|
|
[4] = 0,
|
|
[5] = 0,
|
|
[6] = 0,
|
|
[7] = 10,
|
|
[8] = 12,
|
|
[9] = 14,
|
|
[10] = 15
|
|
},
|
|
percent = {
|
|
[1] = 0,
|
|
[2] = 0,
|
|
[3] = 0,
|
|
[4] = 10,
|
|
[5] = 12,
|
|
[6] = 12,
|
|
[7] = 13,
|
|
[8] = 13,
|
|
[9] = 14,
|
|
[10] = 15
|
|
}
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "range",
|
|
[1] = 0.5,
|
|
[2] = 0.5,
|
|
[3] = 0.75,
|
|
[4] = 0.75,
|
|
[5] = 1.0,
|
|
[6] = 1.0,
|
|
[7] = 1.25,
|
|
[8] = 1.50,
|
|
[9] = 1.75,
|
|
[10] = 2.0
|
|
|
|
}
|
|
},
|
|
|
|
unitSpawner = {
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "health",
|
|
[1] = 350,
|
|
[2] = 500,
|
|
[3] = 750,
|
|
[4] = 1500,
|
|
[5] = 2500,
|
|
[6] = 3500,
|
|
[7] = 5000,
|
|
[8] = 7000,
|
|
[9] = 10000,
|
|
[10] = 15000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "healing",
|
|
[1] = 0.02,
|
|
[2] = 0.02,
|
|
[3] = 0.022,
|
|
[4] = 0.024,
|
|
[5] = 0.026,
|
|
[6] = 0.028,
|
|
[7] = 0.03,
|
|
[8] = 0.032,
|
|
[9] = 0.034,
|
|
[10] = 0.036
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "spawingCooldownStart",
|
|
[1] = 330,
|
|
[2] = 330,
|
|
[3] = 325,
|
|
[4] = 325,
|
|
[5] = 320,
|
|
[6] = 320,
|
|
[7] = 315,
|
|
[8] = 315,
|
|
[9] = 310,
|
|
[10] = 310
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "spawingCooldownEnd",
|
|
[1] = 120,
|
|
[2] = 120,
|
|
[3] = 125,
|
|
[4] = 125,
|
|
[5] = 120,
|
|
[6] = 120,
|
|
[7] = 115,
|
|
[8] = 115,
|
|
[9] = 110,
|
|
[10] = 110
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "evolutionRequirement",
|
|
[1] = 0,
|
|
[2] = 0.12,
|
|
[3] = 0.22,
|
|
[4] = 0.32,
|
|
[5] = 0.42,
|
|
[6] = 0.52,
|
|
[7] = 0.62,
|
|
[8] = 0.72,
|
|
[9] = 0.82,
|
|
[10] = 0.92
|
|
|
|
},
|
|
|
|
{
|
|
type = "attribute",
|
|
name = "unitsOwned",
|
|
[1] = 7,
|
|
[2] = 7,
|
|
[3] = 8,
|
|
[4] = 8,
|
|
[5] = 9,
|
|
[6] = 9,
|
|
[7] = 10,
|
|
[8] = 10,
|
|
[9] = 11,
|
|
[10] = 11
|
|
|
|
},
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "unitsToSpawn",
|
|
[1] = 5,
|
|
[2] = 5,
|
|
[3] = 6,
|
|
[4] = 6,
|
|
[5] = 7,
|
|
[6] = 7,
|
|
[7] = 8,
|
|
[8] = 8,
|
|
[9] = 9,
|
|
[10] = 9
|
|
},
|
|
|
|
|
|
{
|
|
type = "resistance",
|
|
name = "physical",
|
|
decrease = {
|
|
[1] = 2,
|
|
[2] = 2,
|
|
[3] = 4,
|
|
[4] = 4,
|
|
[5] = 6,
|
|
[6] = 6,
|
|
[7] = 10,
|
|
[8] = 12,
|
|
[9] = 12,
|
|
[10] = 14
|
|
},
|
|
percent = {
|
|
[1] = 15,
|
|
[2] = 15,
|
|
[3] = 17,
|
|
[4] = 17,
|
|
[5] = 18,
|
|
[6] = 18,
|
|
[7] = 19,
|
|
[8] = 19,
|
|
[9] = 20,
|
|
[10] = 20
|
|
}
|
|
},
|
|
|
|
{
|
|
type = "resistance",
|
|
name = "explosion",
|
|
decrease = {
|
|
[1] = 5,
|
|
[2] = 5,
|
|
[3] = 6,
|
|
[4] = 6,
|
|
[5] = 7,
|
|
[6] = 7,
|
|
[7] = 8,
|
|
[8] = 8,
|
|
[9] = 9,
|
|
[10] = 9
|
|
},
|
|
percent = {
|
|
[1] = 15,
|
|
[2] = 15,
|
|
[3] = 17,
|
|
[4] = 17,
|
|
[5] = 18,
|
|
[6] = 18,
|
|
[7] = 19,
|
|
[8] = 19,
|
|
[9] = 20,
|
|
[10] = 20
|
|
}
|
|
},
|
|
|
|
{
|
|
type = "resistance",
|
|
name = "fire",
|
|
decrease = {
|
|
[1] = 3,
|
|
[2] = 3,
|
|
[3] = 4,
|
|
[4] = 4,
|
|
[5] = 6,
|
|
[6] = 6,
|
|
[7] = 6,
|
|
[8] = 6,
|
|
[9] = 7,
|
|
[10] = 7
|
|
},
|
|
percent = {
|
|
[1] = 60,
|
|
[2] = 60,
|
|
[3] = 62,
|
|
[4] = 62,
|
|
[5] = 63,
|
|
[6] = 63,
|
|
[7] = 64,
|
|
[8] = 64,
|
|
[9] = 65,
|
|
[10] = 65
|
|
}
|
|
}
|
|
},
|
|
|
|
probabilityTable = {
|
|
[1] = 1,
|
|
[2] = 1,
|
|
[3] = 1,
|
|
[4] = 1,
|
|
[5] = 1,
|
|
[6] = 1,
|
|
[7] = 1,
|
|
[8] = 1,
|
|
[9] = 1,
|
|
[10] = 1,
|
|
}
|
|
},
|
|
|
|
createMeleeAttack,
|
|
|
|
{
|
|
unit = FAST_UNIT_VARIATIONS,
|
|
unitSpawner = FAST_NEST_VARIATIONS
|
|
},
|
|
|
|
{
|
|
unit = FAST_UNIT_TIERS,
|
|
unitSpawner = FAST_NEST_TIERS
|
|
}
|
|
)
|
|
|
|
-- fast spitters
|
|
buildUnitSpawner(
|
|
{
|
|
unit = {
|
|
name = "fast-spitter",
|
|
|
|
loot = biterLoot,
|
|
attributes = {
|
|
explosion = "blood-explosion-small"
|
|
},
|
|
attack = {
|
|
type = "projectile",
|
|
softSmokeName = softSmoke
|
|
},
|
|
resistances = {},
|
|
|
|
type = "spitter",
|
|
scales = {
|
|
[1] = 0.5,
|
|
[2] = 0.6,
|
|
[3] = 0.7,
|
|
[4] = 0.8,
|
|
[5] = 0.9,
|
|
[6] = 1,
|
|
[7] = 1.1,
|
|
[8] = 1.2,
|
|
[9] = 1.3,
|
|
[10] = 1.4
|
|
},
|
|
attackName = "fast-ball",
|
|
tint = {r=0.26, g=0.76, b=0.72, a=0.65},
|
|
pTint = {r=0, g=1, b=1, a=0.5},
|
|
sTint = {r=0, g=1, b=1, a=0.5}
|
|
},
|
|
|
|
unitSpawner = {
|
|
name = "fast-spitter-nest",
|
|
|
|
loot = spawnerLoot,
|
|
attributes = {},
|
|
resistances = {},
|
|
|
|
scales = {
|
|
[1] = 0.5,
|
|
[2] = 0.5,
|
|
[3] = 0.5,
|
|
[4] = 0.5,
|
|
[5] = 0.5,
|
|
[6] = 0.5,
|
|
[7] = 0.5,
|
|
[8] = 0.5,
|
|
[9] = 0.5,
|
|
[10] = 0.5
|
|
},
|
|
tint = {r=0.26, g=0.76, b=0.72, a=1}
|
|
}
|
|
},
|
|
|
|
{
|
|
unit = {
|
|
{
|
|
type = "attribute",
|
|
name = "health",
|
|
[1] = 10,
|
|
[2] = 50,
|
|
[3] = 200,
|
|
[4] = 350,
|
|
[5] = 750,
|
|
[6] = 1000,
|
|
[7] = 1500,
|
|
[8] = 2500,
|
|
[9] = 4500,
|
|
[10] = 7000
|
|
},
|
|
|
|
{
|
|
|
|
type = "attack",
|
|
name = "cooldown",
|
|
[1] = 80,
|
|
[2] = 80,
|
|
[3] = 77,
|
|
[4] = 77,
|
|
[5] = 75,
|
|
[6] = 75,
|
|
[7] = 73,
|
|
[8] = 73,
|
|
[9] = 70,
|
|
[10] = 70
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "spawningTimeModifer",
|
|
[1] = 0,
|
|
[2] = 0,
|
|
[3] = 1,
|
|
[4] = 2,
|
|
[5] = 2,
|
|
[6] = 5,
|
|
[7] = 8,
|
|
[8] = 8,
|
|
[9] = 10,
|
|
[10] = 10
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "pollutionToAttack",
|
|
[1] = 200,
|
|
[2] = 750,
|
|
[3] = 1200,
|
|
[4] = 1750,
|
|
[5] = 2500,
|
|
[6] = 5000,
|
|
[7] = 10000,
|
|
[8] = 12500,
|
|
[9] = 15000,
|
|
[10] = 20000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attack",
|
|
name = "damage",
|
|
[1] = 4,
|
|
[2] = 9,
|
|
[3] = 14,
|
|
[4] = 23,
|
|
[5] = 30,
|
|
[6] = 37,
|
|
[7] = 45,
|
|
[8] = 57,
|
|
[9] = 70,
|
|
[10] = 80
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "healing",
|
|
[1] = 0.01,
|
|
[2] = 0.01,
|
|
[3] = 0.015,
|
|
[4] = 0.02,
|
|
[5] = 0.05,
|
|
[6] = 0.075,
|
|
[7] = 0.1,
|
|
[8] = 0.12,
|
|
[9] = 0.14,
|
|
[10] = 0.16
|
|
|
|
},
|
|
|
|
|
|
{
|
|
type = "attribute",
|
|
name = "movement",
|
|
[1] = 0.205,
|
|
[2] = 0.20,
|
|
[3] = 0.20,
|
|
[4] = 0.21,
|
|
[5] = 0.21,
|
|
[6] = 0.22,
|
|
[7] = 0.22,
|
|
[8] = 0.23,
|
|
[9] = 0.23,
|
|
[10] = 0.24
|
|
},
|
|
{
|
|
type = "attribute",
|
|
name = "distancePerFrame",
|
|
[1] = 0.06,
|
|
[2] = 0.065,
|
|
[3] = 0.070,
|
|
[4] = 0.075,
|
|
[5] = 0.080,
|
|
[6] = 0.085,
|
|
[7] = 0.090,
|
|
[8] = 0.095,
|
|
[9] = 0.10,
|
|
[10] = 0.104
|
|
},
|
|
|
|
{
|
|
type = "resistance",
|
|
name = "explosion",
|
|
percent = {
|
|
[1] = 0,
|
|
[2] = 0,
|
|
[3] = 10,
|
|
[4] = 10,
|
|
[5] = 20,
|
|
[6] = 20,
|
|
[7] = 30,
|
|
[8] = 30,
|
|
[9] = 40,
|
|
[10] = 40
|
|
}
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "range",
|
|
[1] = 13,
|
|
[2] = 13,
|
|
[3] = 14,
|
|
[4] = 14,
|
|
[5] = 15,
|
|
[6] = 15,
|
|
[7] = 16,
|
|
[8] = 16,
|
|
[9] = 17,
|
|
[10] = 17
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "radius",
|
|
[1] = 1.2,
|
|
[2] = 1.3,
|
|
[3] = 1.4,
|
|
[4] = 1.5,
|
|
[5] = 1.6,
|
|
[6] = 1.7,
|
|
[7] = 1.8,
|
|
[8] = 1.9,
|
|
[9] = 2.0,
|
|
[10] = 2.5
|
|
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "particleVerticalAcceleration",
|
|
[1] = 0.01,
|
|
[2] = 0.01,
|
|
[3] = 0.02,
|
|
[4] = 0.02,
|
|
[5] = 0.03,
|
|
[6] = 0.03,
|
|
[7] = 0.04,
|
|
[8] = 0.04,
|
|
[9] = 0.05,
|
|
[10] = 0.05
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "particleHoizontalSpeed",
|
|
[1] = 0.7,
|
|
[2] = 0.7,
|
|
[3] = 0.8,
|
|
[4] = 0.8,
|
|
[5] = 0.9,
|
|
[6] = 0.9,
|
|
[7] = 0.10,
|
|
[8] = 0.10,
|
|
[9] = 1.1,
|
|
[10] = 1.1
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "particleHoizontalSpeedDeviation",
|
|
[1] = 0.0025,
|
|
[2] = 0.0025,
|
|
[3] = 0.0024,
|
|
[4] = 0.0024,
|
|
[5] = 0.0023,
|
|
[6] = 0.0023,
|
|
[7] = 0.0022,
|
|
[8] = 0.0022,
|
|
[9] = 0.0021,
|
|
[10] = 0.0021
|
|
}
|
|
},
|
|
|
|
unitSpawner = {
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "health",
|
|
[1] = 350,
|
|
[2] = 500,
|
|
[3] = 750,
|
|
[4] = 1500,
|
|
[5] = 2500,
|
|
[6] = 3500,
|
|
[7] = 5000,
|
|
[8] = 7000,
|
|
[9] = 10000,
|
|
[10] = 15000
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "healing",
|
|
[1] = 0.02,
|
|
[2] = 0.02,
|
|
[3] = 0.022,
|
|
[4] = 0.024,
|
|
[5] = 0.026,
|
|
[6] = 0.028,
|
|
[7] = 0.03,
|
|
[8] = 0.032,
|
|
[9] = 0.034,
|
|
[10] = 0.036
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "spawingCooldownStart",
|
|
[1] = 330,
|
|
[2] = 330,
|
|
[3] = 325,
|
|
[4] = 325,
|
|
[5] = 320,
|
|
[6] = 320,
|
|
[7] = 315,
|
|
[8] = 315,
|
|
[9] = 310,
|
|
[10] = 310
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "spawingCooldownEnd",
|
|
[1] = 120,
|
|
[2] = 120,
|
|
[3] = 115,
|
|
[4] = 115,
|
|
[5] = 110,
|
|
[6] = 110,
|
|
[7] = 105,
|
|
[8] = 105,
|
|
[9] = 100,
|
|
[10] = 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "evolutionRequirement",
|
|
[1] = 0.08,
|
|
[2] = 0.16,
|
|
[3] = 0.24,
|
|
[4] = 0.35,
|
|
[5] = 0.40,
|
|
[6] = 0.45,
|
|
[7] = 0.55,
|
|
[8] = 0.65,
|
|
[9] = 0.75,
|
|
[10] = 0.9
|
|
|
|
},
|
|
|
|
{
|
|
type = "attribute",
|
|
name = "unitsOwned",
|
|
[1] = 7,
|
|
[2] = 7,
|
|
[3] = 8,
|
|
[4] = 8,
|
|
[5] = 9,
|
|
[6] = 9,
|
|
[7] = 10,
|
|
[8] = 10,
|
|
[9] = 11,
|
|
[10] = 11
|
|
|
|
},
|
|
{
|
|
|
|
type = "attribute",
|
|
name = "unitsToSpawn",
|
|
[1] = 5,
|
|
[2] = 5,
|
|
[3] = 6,
|
|
[4] = 6,
|
|
[5] = 7,
|
|
[6] = 7,
|
|
[7] = 8,
|
|
[8] = 8,
|
|
[9] = 9,
|
|
[10] = 9
|
|
},
|
|
|
|
{
|
|
type = "resistance",
|
|
name = "physical",
|
|
decrease = {
|
|
[1] = 2,
|
|
[2] = 2,
|
|
[3] = 4,
|
|
[4] = 4,
|
|
[5] = 6,
|
|
[6] = 6,
|
|
[7] = 10,
|
|
[8] = 12,
|
|
[9] = 12,
|
|
[10] = 14
|
|
},
|
|
percent = {
|
|
[1] = 15,
|
|
[2] = 15,
|
|
[3] = 17,
|
|
[4] = 17,
|
|
[5] = 18,
|
|
[6] = 18,
|
|
[7] = 19,
|
|
[8] = 19,
|
|
[9] = 20,
|
|
[10] = 20
|
|
}
|
|
},
|
|
{
|
|
type = "resistance",
|
|
name = "explosion",
|
|
decrease = {
|
|
[1] = 5,
|
|
[2] = 5,
|
|
[3] = 6,
|
|
[4] = 6,
|
|
[5] = 7,
|
|
[6] = 7,
|
|
[7] = 8,
|
|
[8] = 8,
|
|
[9] = 9,
|
|
[10] = 9
|
|
},
|
|
percent = {
|
|
[1] = 15,
|
|
[2] = 15,
|
|
[3] = 17,
|
|
[4] = 17,
|
|
[5] = 18,
|
|
[6] = 18,
|
|
[7] = 19,
|
|
[8] = 19,
|
|
[9] = 20,
|
|
[10] = 20
|
|
}
|
|
},
|
|
{
|
|
type = "resistance",
|
|
name = "fire",
|
|
decrease = {
|
|
[1] = 3,
|
|
[2] = 3,
|
|
[3] = 4,
|
|
[4] = 4,
|
|
[5] = 6,
|
|
[6] = 6,
|
|
[7] = 6,
|
|
[8] = 6,
|
|
[9] = 7,
|
|
[10] = 7
|
|
},
|
|
percent = {
|
|
[1] = 60,
|
|
[2] = 60,
|
|
[3] = 62,
|
|
[4] = 62,
|
|
[5] = 63,
|
|
[6] = 63,
|
|
[7] = 64,
|
|
[8] = 64,
|
|
[9] = 65,
|
|
[10] = 65
|
|
}
|
|
}
|
|
},
|
|
|
|
probabilityTable = {
|
|
[1] = 1,
|
|
[2] = 1,
|
|
[3] = 1,
|
|
[4] = 1,
|
|
[5] = 1,
|
|
[6] = 1,
|
|
[7] = 1,
|
|
[8] = 1,
|
|
[9] = 1,
|
|
[10] = 1,
|
|
}
|
|
},
|
|
|
|
function (attributes)
|
|
return createRangedAttack(attributes,
|
|
createAttackBall(attributes),
|
|
spitterattackanimation(attributes.scale,
|
|
attributes.tint))
|
|
end,
|
|
|
|
{
|
|
unit = FAST_UNIT_VARIATIONS,
|
|
unitSpawner = FAST_NEST_VARIATIONS
|
|
},
|
|
|
|
{
|
|
unit = FAST_UNIT_TIERS,
|
|
unitSpawner = FAST_NEST_TIERS
|
|
}
|
|
)
|
|
|
|
-- fast worms
|
|
buildWorm(
|
|
{
|
|
name = "fast-worm",
|
|
|
|
loot = wormLoot,
|
|
attributes = {},
|
|
attack = {
|
|
type = "projectile",
|
|
softSmokeName = softSmoke
|
|
},
|
|
resistances = {},
|
|
|
|
scales = {
|
|
[1] = 0.5,
|
|
[2] = 0.6,
|
|
[3] = 0.7,
|
|
[4] = 0.8,
|
|
[5] = 0.9,
|
|
[6] = 1,
|
|
[7] = 1.1,
|
|
[8] = 1.2,
|
|
[9] = 1.3,
|
|
[10] = 1.4
|
|
},
|
|
attackName = "worm-fast",
|
|
tint = {r=0.56, g=0.46, b=0.42, a=0.65},
|
|
pTint = {r=0, g=1, b=1, a=0.5},
|
|
sTint = {r=0, g=1, b=1, a=0.5}
|
|
},
|
|
|
|
{
|
|
{
|
|
type = "attribute",
|
|
name = "health",
|
|
[1] = 200,
|
|
[2] = 350,
|
|
[3] = 500,
|
|
[4] = 750,
|
|
[5] = 900,
|
|
[6] = 1000,
|
|
[7] = 1500,
|
|
[8] = 3000,
|
|
[9] = 5000,
|
|
[10] = 9000
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "cooldown",
|
|
[1] = 50,
|
|
[2] = 50,
|
|
[3] = 45,
|
|
[4] = 45,
|
|
[5] = 40,
|
|
[6] = 40,
|
|
[7] = 35,
|
|
[8] = 35,
|
|
[9] = 30,
|
|
[10] = 30
|
|
},
|
|
|
|
{
|
|
type = "attribute",
|
|
name = "evolutionRequirement",
|
|
[1] = 0,
|
|
[2] = 0.1,
|
|
[3] = 0.2,
|
|
[4] = 0.3,
|
|
[5] = 0.4,
|
|
[6] = 0.5,
|
|
[7] = 0.6,
|
|
[8] = 0.7,
|
|
[9] = 0.8,
|
|
[10] = 0.9
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "damage",
|
|
[1] = 12,
|
|
[2] = 20,
|
|
[3] = 25,
|
|
[4] = 30,
|
|
[5] = 35,
|
|
[6] = 40,
|
|
[7] = 50,
|
|
[8] = 60,
|
|
[9] = 70,
|
|
[10] = 80
|
|
},
|
|
|
|
{
|
|
type = "attribute",
|
|
name = "healing",
|
|
[1] = 0.01,
|
|
[2] = 0.01,
|
|
[3] = 0.015,
|
|
[4] = 0.02,
|
|
[5] = 0.05,
|
|
[6] = 0.075,
|
|
[7] = 0.1,
|
|
[8] = 0.12,
|
|
[9] = 0.14,
|
|
[10] = 0.16
|
|
},
|
|
|
|
{
|
|
type = "attribute",
|
|
name = "prepareRange",
|
|
[1] = 30,
|
|
[2] = 30,
|
|
[3] = 31,
|
|
[4] = 31,
|
|
[5] = 32,
|
|
[6] = 32,
|
|
[7] = 33,
|
|
[8] = 33,
|
|
[9] = 34,
|
|
[10] = 34
|
|
},
|
|
|
|
{
|
|
type = "attribute",
|
|
name = "foldingSpeed",
|
|
[1] = 0.17,
|
|
[2] = 0.17,
|
|
[3] = 0.18,
|
|
[4] = 0.18,
|
|
[5] = 0.18,
|
|
[6] = 0.19,
|
|
[7] = 0.19,
|
|
[8] = 0.20,
|
|
[9] = 0.20,
|
|
[10] = 0.21
|
|
},
|
|
|
|
{
|
|
type = "attribute",
|
|
name = "preparingSpeed",
|
|
[1] = 0.027,
|
|
[2] = 0.027,
|
|
[3] = 0.028,
|
|
[4] = 0.028,
|
|
[5] = 0.029,
|
|
[6] = 0.029,
|
|
[7] = 0.030,
|
|
[8] = 0.030,
|
|
[9] = 0.031,
|
|
[10] = 0.031
|
|
},
|
|
|
|
{
|
|
type = "resistance",
|
|
name = "physical",
|
|
decrease = {
|
|
[1] = 0,
|
|
[2] = 0,
|
|
[3] = 5,
|
|
[4] = 5,
|
|
[5] = 8,
|
|
[6] = 8,
|
|
[7] = 10,
|
|
[8] = 10,
|
|
[9] = 12,
|
|
[10] = 12
|
|
}
|
|
},
|
|
|
|
{
|
|
type = "resistance",
|
|
name = "explosion",
|
|
decrease = {
|
|
[1] = 0,
|
|
[2] = 0,
|
|
[3] = 5,
|
|
[4] = 5,
|
|
[5] = 8,
|
|
[6] = 8,
|
|
[7] = 10,
|
|
[8] = 10,
|
|
[9] = 12,
|
|
[10] = 12
|
|
},
|
|
percent = {
|
|
[1] = 0,
|
|
[2] = 0,
|
|
[3] = 10,
|
|
[4] = 10,
|
|
[5] = 20,
|
|
[6] = 20,
|
|
[7] = 30,
|
|
[8] = 30,
|
|
[9] = 40,
|
|
[10] = 40
|
|
}
|
|
},
|
|
|
|
{
|
|
type = "resistance",
|
|
name = "fire",
|
|
decrease = {
|
|
[1] = 3,
|
|
[2] = 3,
|
|
[3] = 4,
|
|
[4] = 4,
|
|
[5] = 6,
|
|
[6] = 6,
|
|
[7] = 6,
|
|
[8] = 6,
|
|
[9] = 7,
|
|
[10] = 7
|
|
},
|
|
percent = {
|
|
[1] = 70,
|
|
[2] = 70,
|
|
[3] = 72,
|
|
[4] = 72,
|
|
[5] = 73,
|
|
[6] = 73,
|
|
[7] = 74,
|
|
[8] = 74,
|
|
[9] = 75,
|
|
[10] = 75
|
|
}
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "range",
|
|
[1] = 21,
|
|
[2] = 22,
|
|
[3] = 23,
|
|
[4] = 23,
|
|
[5] = 24,
|
|
[6] = 26,
|
|
[7] = 26,
|
|
[8] = 28,
|
|
[9] = 30,
|
|
[10] = 32
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "radius",
|
|
[1] = 1.5,
|
|
[2] = 1.6,
|
|
[3] = 1.7,
|
|
[4] = 1.8,
|
|
[5] = 1.9,
|
|
[6] = 2.0,
|
|
[7] = 2.2,
|
|
[8] = 2.3,
|
|
[9] = 2.5,
|
|
[10] = 3.0
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "particleVerticalAcceleration",
|
|
[1] = 0.01,
|
|
[2] = 0.01,
|
|
[3] = 0.02,
|
|
[4] = 0.02,
|
|
[5] = 0.03,
|
|
[6] = 0.03,
|
|
[7] = 0.04,
|
|
[8] = 0.04,
|
|
[9] = 0.05,
|
|
[10] = 0.05
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "particleHoizontalSpeed",
|
|
[1] = 0.8,
|
|
[2] = 0.8,
|
|
[3] = 0.9,
|
|
[4] = 0.9,
|
|
[5] = 1,
|
|
[6] = 1,
|
|
[7] = 1.1,
|
|
[8] = 1.1,
|
|
[9] = 1.2,
|
|
[10] = 1.2
|
|
},
|
|
|
|
{
|
|
type = "attack",
|
|
name = "particleHoizontalSpeedDeviation",
|
|
[1] = 0.0025,
|
|
[2] = 0.0025,
|
|
[3] = 0.0024,
|
|
[4] = 0.0024,
|
|
[5] = 0.0023,
|
|
[6] = 0.0023,
|
|
[7] = 0.0022,
|
|
[8] = 0.0022,
|
|
[9] = 0.0021,
|
|
[10] = 0.0021
|
|
}
|
|
},
|
|
|
|
function (attributes)
|
|
return createRangedAttack(attributes,
|
|
createAttackBall(attributes))
|
|
end,
|
|
|
|
FAST_WORM_VARIATIONS,
|
|
FAST_WORM_TIERS
|
|
)
|