2018-01-24 10:07:22 +02:00
|
|
|
-- imports
|
|
|
|
|
|
|
|
local acidBall = require("utils/AttackBall")
|
|
|
|
local biterUtils = require("utils/BiterUtils")
|
|
|
|
local swarmUtils = require("SwarmUtils")
|
2019-02-28 04:53:59 +02:00
|
|
|
local constants = require("__Rampant__/libs/Constants")
|
2018-01-24 10:07:22 +02:00
|
|
|
|
|
|
|
-- constants
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
local troll = {}
|
|
|
|
|
2018-01-28 03:02:33 +02:00
|
|
|
local TROLL_UNIT_TIERS = constants.TROLL_UNIT_TIERS
|
|
|
|
local TROLL_UNIT_VARIATIONS = constants.TROLL_UNIT_VARIATIONS
|
|
|
|
|
2018-01-24 10:07:22 +02:00
|
|
|
local TROLL_NEST_TIERS = constants.TROLL_NEST_TIERS
|
|
|
|
local TROLL_NEST_VARIATIONS = constants.TROLL_NEST_VARIATIONS
|
|
|
|
|
|
|
|
local TROLL_WORM_TIERS = constants.TROLL_WORM_TIERS
|
|
|
|
local TROLL_WORM_VARIATIONS = constants.TROLL_WORM_VARIATIONS
|
|
|
|
|
|
|
|
-- imported functions
|
|
|
|
|
|
|
|
local buildUnitSpawner = swarmUtils.buildUnitSpawner
|
|
|
|
local buildWorm = swarmUtils.buildWorm
|
|
|
|
local createAttackBall = acidBall.createAttackBall
|
2018-02-06 10:01:20 +02:00
|
|
|
local createRangedAttack = biterUtils.createRangedAttack
|
2018-01-24 10:07:22 +02:00
|
|
|
local createMeleeAttack = biterUtils.createMeleeAttack
|
|
|
|
|
2018-01-29 03:51:24 +02:00
|
|
|
local makeUnitAlienLootTable = biterUtils.makeUnitAlienLootTable
|
|
|
|
local makeSpawnerAlienLootTable = biterUtils.makeSpawnerAlienLootTable
|
|
|
|
local makeWormAlienLootTable = biterUtils.makeWormAlienLootTable
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
function troll.addFaction()
|
2018-01-29 03:51:24 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
local biterLoot = makeUnitAlienLootTable("green")
|
|
|
|
local spawnerLoot = makeSpawnerAlienLootTable("green")
|
|
|
|
local wormLoot = makeWormAlienLootTable("green")
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
-- troll biters
|
|
|
|
buildUnitSpawner(
|
|
|
|
{
|
|
|
|
unit = {
|
|
|
|
name = "troll-biter",
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
loot = biterLoot,
|
|
|
|
attributes = {
|
|
|
|
explosion = "blood-explosion-small"
|
|
|
|
},
|
|
|
|
attack = {},
|
|
|
|
resistances = {},
|
|
|
|
|
|
|
|
type = "biter",
|
|
|
|
scales = {
|
2018-06-05 03:48:37 +02:00
|
|
|
[1] = 0.7,
|
|
|
|
[2] = 0.8,
|
|
|
|
[3] = 0.9,
|
|
|
|
[4] = 1,
|
|
|
|
[5] = 1.1,
|
2019-04-06 05:01:46 +02:00
|
|
|
[6] = 1.3,
|
|
|
|
[7] = 1.5,
|
|
|
|
[8] = 1.7,
|
|
|
|
[9] = 1.9,
|
|
|
|
[10] = 2.1
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
2019-03-17 05:39:30 +02:00
|
|
|
tint = {r=0.56, g=0.46, b=0.42, a=0.65}
|
2018-01-24 10:07:22 +02:00
|
|
|
},
|
2018-04-15 01:02:40 +02:00
|
|
|
|
|
|
|
unitSpawner = {
|
2019-05-10 02:46:57 +02:00
|
|
|
name = "troll-biter-spawner",
|
2018-04-15 01:02:40 +02:00
|
|
|
|
|
|
|
loot = spawnerLoot,
|
2019-02-12 06:38:27 +02:00
|
|
|
attributes = {},
|
2018-04-15 01:02:40 +02:00
|
|
|
resistances = {},
|
|
|
|
scales = {
|
2018-06-05 03:48:37 +02:00
|
|
|
[1] = 0.7,
|
|
|
|
[2] = 0.8,
|
|
|
|
[3] = 0.9,
|
|
|
|
[4] = 1,
|
|
|
|
[5] = 1.1,
|
|
|
|
[6] = 1.2,
|
|
|
|
[7] = 1.3,
|
|
|
|
[8] = 1.4,
|
|
|
|
[9] = 1.5,
|
|
|
|
[10] = 1.6
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
|
|
|
tint = {r=1.0, g=1.0, b=1.0, a=1.0}
|
|
|
|
}
|
2018-01-24 10:07:22 +02:00
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
|
|
|
unit = {
|
|
|
|
{
|
|
|
|
type = "attribute",
|
|
|
|
name = "health",
|
|
|
|
[1] = 30,
|
|
|
|
[2] = 150,
|
|
|
|
[3] = 300,
|
|
|
|
[4] = 500,
|
2019-02-19 02:43:01 +02:00
|
|
|
[5] = 1500,
|
|
|
|
[6] = 3000,
|
|
|
|
[7] = 5000,
|
|
|
|
[8] = 12000,
|
|
|
|
[9] = 20000,
|
|
|
|
[10] = 40000
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
2018-06-08 08:52:39 +02:00
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
2018-04-15 01:02:40 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "healing",
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = 0.3,
|
|
|
|
[2] = 0.3,
|
|
|
|
[3] = 0.35,
|
|
|
|
[4] = 0.4,
|
|
|
|
[5] = 0.8,
|
|
|
|
[6] = 1.2,
|
|
|
|
[7] = 1.8,
|
|
|
|
[8] = 2.5,
|
|
|
|
[9] = 2.5,
|
|
|
|
[10] = 3
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
2019-02-12 06:38:27 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "explosion",
|
|
|
|
decrease = {
|
|
|
|
[1] = 3,
|
|
|
|
[2] = 3,
|
|
|
|
[3] = 7,
|
|
|
|
[4] = 7,
|
|
|
|
[5] = 10,
|
|
|
|
[6] = 10,
|
|
|
|
[7] = 13,
|
|
|
|
[8] = 13,
|
|
|
|
[9] = 16,
|
|
|
|
[10] = 18
|
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = 35,
|
|
|
|
[2] = 35,
|
|
|
|
[3] = 40,
|
|
|
|
[4] = 40,
|
|
|
|
[5] = 45,
|
|
|
|
[6] = 45,
|
|
|
|
[7] = 50,
|
|
|
|
[8] = 55,
|
|
|
|
[9] = 55,
|
|
|
|
[10] = 60
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2018-04-15 01:02:40 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "movement",
|
|
|
|
[1] = 0.16,
|
|
|
|
[2] = 0.16,
|
|
|
|
[3] = 0.155,
|
|
|
|
[4] = 0.15,
|
|
|
|
[5] = 0.155,
|
|
|
|
[6] = 0.15,
|
|
|
|
[7] = 0.15,
|
|
|
|
[8] = 0.15,
|
|
|
|
[9] = 0.15,
|
|
|
|
[10] = 0.15
|
|
|
|
},
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "physical",
|
|
|
|
decrease = {
|
|
|
|
[1] = 3,
|
|
|
|
[2] = 3,
|
|
|
|
[3] = 7,
|
|
|
|
[4] = 7,
|
|
|
|
[5] = 10,
|
|
|
|
[6] = 10,
|
|
|
|
[7] = 13,
|
|
|
|
[8] = 13,
|
|
|
|
[9] = 16,
|
|
|
|
[10] = 18
|
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = 35,
|
|
|
|
[2] = 35,
|
|
|
|
[3] = 40,
|
|
|
|
[4] = 40,
|
|
|
|
[5] = 45,
|
|
|
|
[6] = 45,
|
|
|
|
[7] = 50,
|
|
|
|
[8] = 55,
|
|
|
|
[9] = 55,
|
|
|
|
[10] = 60
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "fire",
|
|
|
|
decrease = {
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = -10,
|
|
|
|
[2] = -10,
|
|
|
|
[3] = -15,
|
|
|
|
[4] = -15,
|
|
|
|
[5] = -20,
|
|
|
|
[6] = -20,
|
|
|
|
[7] = -25,
|
|
|
|
[8] = -25,
|
|
|
|
[9] = -30,
|
|
|
|
[10] = -35
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = -100,
|
|
|
|
[2] = -100,
|
|
|
|
[3] = -100,
|
|
|
|
[4] = -120,
|
|
|
|
[5] = -120,
|
|
|
|
[6] = -160,
|
|
|
|
[7] = -160,
|
|
|
|
[8] = -200,
|
|
|
|
[9] = -200,
|
|
|
|
[10] = -240
|
|
|
|
}
|
|
|
|
}
|
2018-01-24 10:07:22 +02:00
|
|
|
},
|
2019-02-12 06:38:27 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
unitSpawner = {
|
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
2018-04-15 01:02:40 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "health",
|
|
|
|
[1] = 700,
|
|
|
|
[2] = 1000,
|
|
|
|
[3] = 1500,
|
|
|
|
[4] = 3000,
|
2019-03-17 05:39:30 +02:00
|
|
|
[5] = 7000,
|
|
|
|
[6] = 15000,
|
|
|
|
[7] = 22000,
|
|
|
|
[8] = 40000,
|
|
|
|
[9] = 60000,
|
|
|
|
[10] = 70000
|
|
|
|
},
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "explosion",
|
|
|
|
decrease = {
|
|
|
|
[1] = 3,
|
|
|
|
[2] = 3,
|
|
|
|
[3] = 7,
|
|
|
|
[4] = 7,
|
|
|
|
[5] = 10,
|
|
|
|
[6] = 10,
|
|
|
|
[7] = 13,
|
|
|
|
[8] = 13,
|
|
|
|
[9] = 16,
|
|
|
|
[10] = 18
|
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = 35,
|
|
|
|
[2] = 35,
|
|
|
|
[3] = 40,
|
|
|
|
[4] = 40,
|
|
|
|
[5] = 45,
|
|
|
|
[6] = 45,
|
|
|
|
[7] = 50,
|
|
|
|
[8] = 55,
|
|
|
|
[9] = 55,
|
|
|
|
[10] = 60
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2018-04-15 01:02:40 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "healing",
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = 0.6,
|
|
|
|
[2] = 0.6,
|
|
|
|
[3] = 0.65,
|
|
|
|
[4] = 0.8,
|
|
|
|
[5] = 1.6,
|
|
|
|
[6] = 3.2,
|
|
|
|
[7] = 4.4,
|
|
|
|
[8] = 5.2,
|
|
|
|
[9] = 6,
|
|
|
|
[10] = 7
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
2019-02-12 06:38:27 +02:00
|
|
|
|
|
|
|
{
|
2019-03-12 08:03:26 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "evolutionRequirement",
|
|
|
|
[1] = 0,
|
|
|
|
[2] = 0.15,
|
|
|
|
[3] = 0.25,
|
|
|
|
[4] = 0.35,
|
|
|
|
[5] = 0.45,
|
|
|
|
[6] = 0.55,
|
|
|
|
[7] = 0.65,
|
|
|
|
[8] = 0.70,
|
|
|
|
[9] = 0.75,
|
|
|
|
[10] = 0.95
|
|
|
|
},
|
2018-04-15 01:02:40 +02:00
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "physical",
|
|
|
|
decrease = {
|
|
|
|
[1] = 3,
|
|
|
|
[2] = 3,
|
|
|
|
[3] = 7,
|
|
|
|
[4] = 7,
|
|
|
|
[5] = 10,
|
|
|
|
[6] = 10,
|
|
|
|
[7] = 13,
|
|
|
|
[8] = 13,
|
|
|
|
[9] = 16,
|
|
|
|
[10] = 18
|
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = 35,
|
|
|
|
[2] = 35,
|
|
|
|
[3] = 40,
|
|
|
|
[4] = 40,
|
|
|
|
[5] = 45,
|
|
|
|
[6] = 45,
|
|
|
|
[7] = 50,
|
|
|
|
[8] = 55,
|
|
|
|
[9] = 55,
|
|
|
|
[10] = 60
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "fire",
|
|
|
|
decrease = {
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = -10,
|
|
|
|
[2] = -10,
|
|
|
|
[3] = -15,
|
|
|
|
[4] = -15,
|
|
|
|
[5] = -20,
|
|
|
|
[6] = -20,
|
|
|
|
[7] = -25,
|
|
|
|
[8] = -25,
|
|
|
|
[9] = -30,
|
|
|
|
[10] = -35
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = -100,
|
|
|
|
[2] = -100,
|
|
|
|
[3] = -100,
|
|
|
|
[4] = -120,
|
|
|
|
[5] = -120,
|
|
|
|
[6] = -160,
|
|
|
|
[7] = -160,
|
|
|
|
[8] = -200,
|
|
|
|
[9] = -200,
|
|
|
|
[10] = -240
|
|
|
|
}
|
2018-01-24 10:07:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
createMeleeAttack,
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
|
|
|
unit = TROLL_UNIT_VARIATIONS,
|
|
|
|
unitSpawner = TROLL_NEST_VARIATIONS
|
|
|
|
},
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
|
|
|
unit = TROLL_UNIT_TIERS,
|
|
|
|
unitSpawner = TROLL_NEST_TIERS
|
|
|
|
}
|
|
|
|
)
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
-- troll spitters
|
|
|
|
buildUnitSpawner(
|
|
|
|
{
|
|
|
|
unit = {
|
|
|
|
name = "troll-spitter",
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
loot = biterLoot,
|
|
|
|
attributes = {
|
|
|
|
explosion = "blood-explosion-small"
|
|
|
|
},
|
|
|
|
attack = {
|
|
|
|
type = "projectile",
|
2019-03-17 05:39:30 +02:00
|
|
|
directionOnly = true
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
|
|
|
resistances = {},
|
|
|
|
|
|
|
|
type = "spitter",
|
|
|
|
scales = {
|
2018-06-05 03:48:37 +02:00
|
|
|
[1] = 0.7,
|
|
|
|
[2] = 0.8,
|
|
|
|
[3] = 0.9,
|
|
|
|
[4] = 1,
|
|
|
|
[5] = 1.1,
|
|
|
|
[6] = 1.2,
|
|
|
|
[7] = 1.3,
|
|
|
|
[8] = 1.4,
|
|
|
|
[9] = 1.5,
|
|
|
|
[10] = 1.6
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
|
|
|
attackName = "troll-spitter",
|
2019-03-17 05:39:30 +02:00
|
|
|
tint = {r=0.56, g=0.46, b=0.42, a=0.65}
|
2018-01-24 10:07:22 +02:00
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
unitSpawner = {
|
2019-05-10 02:46:57 +02:00
|
|
|
name = "troll-spitter-spawner",
|
2018-04-15 01:02:40 +02:00
|
|
|
|
|
|
|
loot = spawnerLoot,
|
|
|
|
attributes = {},
|
|
|
|
resistances = {},
|
2019-02-12 06:38:27 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
scales = {
|
2018-06-05 03:48:37 +02:00
|
|
|
[1] = 0.7,
|
|
|
|
[2] = 0.8,
|
|
|
|
[3] = 0.9,
|
|
|
|
[4] = 1,
|
|
|
|
[5] = 1.1,
|
|
|
|
[6] = 1.2,
|
|
|
|
[7] = 1.3,
|
|
|
|
[8] = 1.4,
|
|
|
|
[9] = 1.5,
|
|
|
|
[10] = 1.6
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
|
|
|
tint = {r=0.99, g=0.09, b=0.09, a=1}
|
|
|
|
}
|
|
|
|
},
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
|
|
|
unit = {
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
2018-04-15 01:02:40 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "health",
|
2019-03-17 05:39:30 +02:00
|
|
|
[1] = 700,
|
|
|
|
[2] = 1000,
|
|
|
|
[3] = 1500,
|
|
|
|
[4] = 3000,
|
|
|
|
[5] = 7000,
|
|
|
|
[6] = 15000,
|
|
|
|
[7] = 22000,
|
|
|
|
[8] = 40000,
|
|
|
|
[9] = 60000,
|
|
|
|
[10] = 70000
|
|
|
|
},
|
2018-06-08 08:52:39 +02:00
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "explosion",
|
|
|
|
decrease = {
|
|
|
|
[1] = 3,
|
|
|
|
[2] = 3,
|
|
|
|
[3] = 7,
|
|
|
|
[4] = 7,
|
|
|
|
[5] = 10,
|
|
|
|
[6] = 10,
|
|
|
|
[7] = 13,
|
|
|
|
[8] = 13,
|
|
|
|
[9] = 16,
|
|
|
|
[10] = 18
|
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = 35,
|
|
|
|
[2] = 35,
|
|
|
|
[3] = 40,
|
|
|
|
[4] = 40,
|
|
|
|
[5] = 45,
|
|
|
|
[6] = 45,
|
|
|
|
[7] = 50,
|
|
|
|
[8] = 55,
|
|
|
|
[9] = 55,
|
|
|
|
[10] = 60
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2018-04-15 01:02:40 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "healing",
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = 0.3,
|
|
|
|
[2] = 0.3,
|
|
|
|
[3] = 0.35,
|
|
|
|
[4] = 0.4,
|
|
|
|
[5] = 0.8,
|
|
|
|
[6] = 1.6,
|
|
|
|
[7] = 2.2,
|
|
|
|
[8] = 3,
|
|
|
|
[9] = 3.5,
|
|
|
|
[10] = 4.5
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
2018-06-08 08:52:39 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
|
|
|
type = "attribute",
|
|
|
|
name = "movement",
|
|
|
|
[1] = 0.165,
|
|
|
|
[2] = 0.16,
|
|
|
|
[3] = 0.16,
|
|
|
|
[4] = 0.15,
|
|
|
|
[5] = 0.15,
|
|
|
|
[6] = 0.14,
|
|
|
|
[7] = 0.14,
|
|
|
|
[8] = 0.13,
|
|
|
|
[9] = 0.13,
|
|
|
|
[10] = 0.12
|
|
|
|
},
|
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "physical",
|
|
|
|
decrease = {
|
|
|
|
[1] = 3,
|
|
|
|
[2] = 3,
|
|
|
|
[3] = 7,
|
|
|
|
[4] = 7,
|
|
|
|
[5] = 10,
|
|
|
|
[6] = 10,
|
|
|
|
[7] = 13,
|
|
|
|
[8] = 13,
|
|
|
|
[9] = 16,
|
|
|
|
[10] = 18
|
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = 35,
|
|
|
|
[2] = 35,
|
|
|
|
[3] = 40,
|
|
|
|
[4] = 40,
|
|
|
|
[5] = 45,
|
|
|
|
[6] = 45,
|
|
|
|
[7] = 50,
|
|
|
|
[8] = 55,
|
|
|
|
[9] = 55,
|
|
|
|
[10] = 60
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "fire",
|
|
|
|
decrease = {
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = -10,
|
|
|
|
[2] = -10,
|
|
|
|
[3] = -15,
|
|
|
|
[4] = -15,
|
|
|
|
[5] = -20,
|
|
|
|
[6] = -20,
|
|
|
|
[7] = -25,
|
|
|
|
[8] = -25,
|
|
|
|
[9] = -30,
|
|
|
|
[10] = -35
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = -100,
|
|
|
|
[2] = -100,
|
|
|
|
[3] = -100,
|
|
|
|
[4] = -120,
|
|
|
|
[5] = -120,
|
|
|
|
[6] = -160,
|
|
|
|
[7] = -160,
|
|
|
|
[8] = -200,
|
|
|
|
[9] = -200,
|
|
|
|
[10] = -240
|
|
|
|
}
|
2018-01-24 10:07:22 +02:00
|
|
|
}
|
2018-06-05 03:48:37 +02:00
|
|
|
|
2018-01-24 10:07:22 +02:00
|
|
|
},
|
2019-02-12 06:38:27 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
unitSpawner = {
|
2019-02-12 06:38:27 +02:00
|
|
|
|
|
|
|
{
|
2018-04-15 01:02:40 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "health",
|
|
|
|
[1] = 700,
|
|
|
|
[2] = 1000,
|
|
|
|
[3] = 1500,
|
|
|
|
[4] = 3000,
|
|
|
|
[5] = 5000,
|
|
|
|
[6] = 7000,
|
|
|
|
[7] = 10000,
|
|
|
|
[8] = 14000,
|
|
|
|
[9] = 20000,
|
|
|
|
[10] = 30000
|
|
|
|
},
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
2018-04-15 01:02:40 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "healing",
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = 0.6,
|
|
|
|
[2] = 0.6,
|
|
|
|
[3] = 0.65,
|
|
|
|
[4] = 0.8,
|
|
|
|
[5] = 1.6,
|
|
|
|
[6] = 3.2,
|
|
|
|
[7] = 4.4,
|
|
|
|
[8] = 5.2,
|
|
|
|
[9] = 6,
|
|
|
|
[10] = 7
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "physical",
|
|
|
|
decrease = {
|
|
|
|
[1] = 3,
|
|
|
|
[2] = 3,
|
|
|
|
[3] = 7,
|
|
|
|
[4] = 7,
|
|
|
|
[5] = 10,
|
|
|
|
[6] = 10,
|
|
|
|
[7] = 13,
|
|
|
|
[8] = 13,
|
|
|
|
[9] = 16,
|
|
|
|
[10] = 18
|
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = 35,
|
|
|
|
[2] = 35,
|
|
|
|
[3] = 40,
|
|
|
|
[4] = 40,
|
|
|
|
[5] = 45,
|
|
|
|
[6] = 45,
|
|
|
|
[7] = 50,
|
|
|
|
[8] = 55,
|
|
|
|
[9] = 55,
|
|
|
|
[10] = 60
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "explosion",
|
|
|
|
decrease = {
|
|
|
|
[1] = 3,
|
|
|
|
[2] = 3,
|
|
|
|
[3] = 7,
|
|
|
|
[4] = 7,
|
|
|
|
[5] = 10,
|
|
|
|
[6] = 10,
|
|
|
|
[7] = 13,
|
|
|
|
[8] = 13,
|
|
|
|
[9] = 16,
|
|
|
|
[10] = 18
|
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = 35,
|
|
|
|
[2] = 35,
|
|
|
|
[3] = 40,
|
|
|
|
[4] = 40,
|
|
|
|
[5] = 45,
|
|
|
|
[6] = 45,
|
|
|
|
[7] = 50,
|
|
|
|
[8] = 55,
|
|
|
|
[9] = 55,
|
|
|
|
[10] = 60
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "fire",
|
|
|
|
decrease = {
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = -10,
|
|
|
|
[2] = -10,
|
|
|
|
[3] = -15,
|
|
|
|
[4] = -15,
|
|
|
|
[5] = -20,
|
|
|
|
[6] = -20,
|
|
|
|
[7] = -25,
|
|
|
|
[8] = -25,
|
|
|
|
[9] = -30,
|
|
|
|
[10] = -35
|
2018-04-15 01:02:40 +02:00
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = -100,
|
|
|
|
[2] = -100,
|
|
|
|
[3] = -100,
|
|
|
|
[4] = -120,
|
|
|
|
[5] = -120,
|
|
|
|
[6] = -160,
|
|
|
|
[7] = -160,
|
|
|
|
[8] = -200,
|
|
|
|
[9] = -200,
|
|
|
|
[10] = -240
|
|
|
|
}
|
2018-01-24 10:07:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
function (attributes)
|
2019-02-12 06:38:27 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
return createRangedAttack(attributes,
|
|
|
|
createAttackBall(attributes),
|
|
|
|
spitterattackanimation(attributes.scale,
|
2019-03-17 05:39:30 +02:00
|
|
|
attributes.tint,
|
|
|
|
attributes.tint))
|
2018-04-15 01:02:40 +02:00
|
|
|
end,
|
2019-02-12 06:38:27 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
|
|
|
unit = TROLL_UNIT_VARIATIONS,
|
|
|
|
unitSpawner = TROLL_NEST_VARIATIONS
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
unit = TROLL_UNIT_TIERS,
|
|
|
|
unitSpawner = TROLL_NEST_TIERS
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
-- troll worms
|
|
|
|
buildWorm(
|
|
|
|
{
|
|
|
|
name = "troll-worm",
|
|
|
|
|
|
|
|
loot = wormLoot,
|
|
|
|
attributes = {},
|
2018-01-24 10:07:22 +02:00
|
|
|
attack = {
|
2018-02-06 10:01:20 +02:00
|
|
|
type = "projectile",
|
2019-03-17 05:39:30 +02:00
|
|
|
damageType = "physical",
|
|
|
|
pointEffects = function (attributes)
|
|
|
|
return {
|
|
|
|
{
|
|
|
|
type= "create-entity",
|
|
|
|
entity_name = "small-scorchmark"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type= "create-entity",
|
|
|
|
entity_name = attributes.explosion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
2018-01-24 10:07:22 +02:00
|
|
|
},
|
|
|
|
resistances = {},
|
|
|
|
|
|
|
|
scales = {
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = 0.7,
|
|
|
|
[2] = 0.8,
|
|
|
|
[3] = 0.9,
|
|
|
|
[4] = 1,
|
|
|
|
[5] = 1.1,
|
|
|
|
[6] = 1.2,
|
|
|
|
[7] = 1.3,
|
|
|
|
[8] = 1.4,
|
|
|
|
[9] = 1.5,
|
|
|
|
[10] = 1.6
|
|
|
|
},
|
2018-04-15 01:02:40 +02:00
|
|
|
attackName = "troll-worm",
|
2019-03-17 05:39:30 +02:00
|
|
|
tint = {r=0.56, g=0.46, b=0.42, a=0.65}
|
2018-01-24 10:07:22 +02:00
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
2019-03-17 05:39:30 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
type = "attack",
|
|
|
|
mapping = "explosion",
|
|
|
|
[1] = "explosion",
|
|
|
|
[2] = "explosion",
|
|
|
|
[3] = "big-explosion",
|
|
|
|
[4] = "big-explosion",
|
|
|
|
[5] = "big-explosion",
|
|
|
|
[6] = "big-explosion",
|
|
|
|
[7] = "massive-explosion",
|
|
|
|
[8] = "massive-explosion",
|
|
|
|
[9] = "massive-explosion",
|
|
|
|
[10] = "massive-explosion"
|
|
|
|
},
|
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
2019-03-17 05:39:30 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "health",
|
|
|
|
[1] = 400,
|
|
|
|
[2] = 700,
|
|
|
|
[3] = 1000,
|
|
|
|
[4] = 1500,
|
|
|
|
[5] = 4000,
|
|
|
|
[6] = 7000,
|
|
|
|
[7] = 15000,
|
|
|
|
[8] = 24000,
|
|
|
|
[9] = 40000,
|
|
|
|
[10] = 50000
|
|
|
|
},
|
2018-06-08 08:52:39 +02:00
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
2018-01-24 10:07:22 +02:00
|
|
|
type = "attribute",
|
|
|
|
name = "healing",
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = 0.6,
|
|
|
|
[2] = 0.6,
|
|
|
|
[3] = 0.65,
|
|
|
|
[4] = 0.8,
|
|
|
|
[5] = 1.6,
|
|
|
|
[6] = 3.2,
|
|
|
|
[7] = 4.4,
|
|
|
|
[8] = 5.2,
|
|
|
|
[9] = 6,
|
|
|
|
[10] = 7
|
2018-01-24 10:07:22 +02:00
|
|
|
},
|
|
|
|
|
2019-03-12 08:03:26 +02:00
|
|
|
{
|
|
|
|
type = "attribute",
|
|
|
|
name = "evolutionRequirement",
|
|
|
|
[1] = 0,
|
|
|
|
[2] = 0.15,
|
|
|
|
[3] = 0.25,
|
|
|
|
[4] = 0.35,
|
|
|
|
[5] = 0.45,
|
|
|
|
[6] = 0.55,
|
|
|
|
[7] = 0.65,
|
|
|
|
[8] = 0.70,
|
|
|
|
[9] = 0.75,
|
|
|
|
[10] = 0.95
|
|
|
|
},
|
|
|
|
|
2019-02-12 06:38:27 +02:00
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "explosion",
|
|
|
|
decrease = {
|
|
|
|
[1] = 3,
|
|
|
|
[2] = 3,
|
|
|
|
[3] = 7,
|
|
|
|
[4] = 7,
|
|
|
|
[5] = 10,
|
|
|
|
[6] = 10,
|
|
|
|
[7] = 13,
|
|
|
|
[8] = 13,
|
|
|
|
[9] = 16,
|
|
|
|
[10] = 18
|
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = 35,
|
|
|
|
[2] = 35,
|
|
|
|
[3] = 40,
|
|
|
|
[4] = 40,
|
|
|
|
[5] = 45,
|
|
|
|
[6] = 45,
|
|
|
|
[7] = 50,
|
|
|
|
[8] = 55,
|
|
|
|
[9] = 55,
|
|
|
|
[10] = 60
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
type = "resistance",
|
|
|
|
name = "physical",
|
|
|
|
decrease = {
|
|
|
|
[1] = 3,
|
|
|
|
[2] = 3,
|
|
|
|
[3] = 7,
|
|
|
|
[4] = 7,
|
|
|
|
[5] = 10,
|
|
|
|
[6] = 10,
|
|
|
|
[7] = 13,
|
|
|
|
[8] = 13,
|
|
|
|
[9] = 16,
|
|
|
|
[10] = 18
|
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = 35,
|
|
|
|
[2] = 35,
|
|
|
|
[3] = 40,
|
|
|
|
[4] = 40,
|
|
|
|
[5] = 45,
|
|
|
|
[6] = 45,
|
|
|
|
[7] = 50,
|
|
|
|
[8] = 55,
|
|
|
|
[9] = 55,
|
|
|
|
[10] = 60
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
{
|
2018-01-24 10:07:22 +02:00
|
|
|
type = "resistance",
|
|
|
|
name = "fire",
|
|
|
|
decrease = {
|
2018-06-08 08:52:39 +02:00
|
|
|
[1] = -10,
|
|
|
|
[2] = -10,
|
|
|
|
[3] = -15,
|
|
|
|
[4] = -15,
|
|
|
|
[5] = -20,
|
|
|
|
[6] = -20,
|
|
|
|
[7] = -25,
|
|
|
|
[8] = -25,
|
|
|
|
[9] = -30,
|
|
|
|
[10] = -35
|
2018-01-24 10:07:22 +02:00
|
|
|
},
|
|
|
|
percent = {
|
|
|
|
[1] = -100,
|
|
|
|
[2] = -100,
|
|
|
|
[3] = -100,
|
|
|
|
[4] = -120,
|
|
|
|
[5] = -120,
|
|
|
|
[6] = -160,
|
|
|
|
[7] = -160,
|
|
|
|
[8] = -200,
|
|
|
|
[9] = -200,
|
|
|
|
[10] = -240
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
function (attributes)
|
|
|
|
return createRangedAttack(attributes, createAttackBall(attributes))
|
|
|
|
end,
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
TROLL_WORM_VARIATIONS,
|
|
|
|
TROLL_WORM_TIERS
|
|
|
|
)
|
|
|
|
end
|
2018-01-24 10:07:22 +02:00
|
|
|
|
2018-04-15 01:02:40 +02:00
|
|
|
return troll
|