Waves and enemies
The game builds every wave from formulas. A waves.json beside mod.json replaces the waves it lists with your own and defines the enemy types they send. It makes your mod a gameplay mod.
{
"after_last": "victory",
"health_by_difficulty": {"1": 1.0, "2": 1.5, "3": 2.0},
"types": {
"red": {"health": 8, "speed": 30, "reward": 1, "species": "fire"},
"blue": {"health": 8, "speed": 40, "reward": 1, "species": "harvester",
"children": [{"type": "red", "count": 1}]},
"lead": {"health": 45, "speed": 30, "kind": "armored", "immune": ["projectile"],
"resist": {"frost": 0.5}, "children": [{"type": "blue", "count": 2}]}
},
"list": [
{"groups": [{"type": "red", "count": 12, "spacing": 0.9}]},
{"groups": [{"type": "red", "count": 10, "spacing": 0.6},
{"type": "blue", "count": 6, "spacing": 0.9, "delay": 1.0}], "reward": 3}
]
}
Enemy types
health,speed(the game's insects walk from about 25 to 95),reward(gold for a kill) andshield.species: the insect it looks like:garden,fire,carpenter,harvester,trapjaw,leafcutter,weaver,army,acrobat,turtle,bullet,honeypot,razor_reaver,bastion_shell,rift_strider,siege_horn,pale_brood,antler_tyrant,needlewing,stingwing,shardwing,veilwing. Putdusk_ornight_before a name for the second or third difficulty's colours.kind:worker,fast,armored,swarm,shield,flyer,bossorflyer_boss.scalesizes a boss.cloaked: camouflaged (below).life_damage: the lives a leak costs. By default one, plus one for each layer still inside it.children: enemies born where it dies, which walk on from there; the wave waits for them. Keep the counts low: every layer is a real insect.immuneandresistgo by damage group:projectile(Gun, Cannon, Machine Gun),explosive(Missile),flame,frost,bolt,laser,poison,wall(the barrier) andbleed(the blades' bleeding).immunetakes no damage and no status from the group;resistmultiplies its hits ({"frost": 0.5}).melee: the damage a second it deals to soldiers and, on lanes, to towers.
The list of waves
- Each wave is a list of
groups: atype, acount, thespacingin seconds and an optionaldelaybefore the group starts. - A wave may also set
reward(gold a kill, for types without their own),boss,weakness,coinsandhealth_mult, which scales the health and shield of everything it sends. after_last:"procedural"(the default) carries on with the game's own waves after your list;"victory"wins the run.health_by_difficultyscales every type's health and shield by difficulty.
Banana Brigade writes fifty rounds of layered enemies, and Iron Kingdom thirty waves.
Camouflage
A camouflaged insect can be seen, aimed at and hit only by a built level-3 tower, within that tower's range. Which waves come camouflaged is set in balance.json:
{"cloaked_waves": {
"waves_by_difficulty": {"1": [42, 47], "2": [41, 46, 49], "3": [41, 43, 47, 49]},
"random_by_difficulty": {"3": {"from_wave": 20, "chance": 0.2}},
"health_multiplier": 0.48,
"detection_level": 3,
"detection_towers": {"Laser": 1},
"shared_detection": true
}}
waves_by_difficultylists the waves;random_by_difficultygives every other wave fromfrom_waveon achanceof coming camouflaged.health_multiplierandquantity_multipliersoften those waves.detection_levelis the level from which a tower sees them.detection_towersreplaces that with a list of towers and the level from which each sees."shared_detection": true: an insect inside any detector's range is open to every tower."enabled": falseturns camouflage off.
The final boss
{"bosses": {"final_boss": {"wave": 50, "health_multiplier": 3.6, "speed_multiplier": 0.48,
"visual_scale": 1.8, "shield_ratio": 0.0}}}
The Brood Mind's wave and its numbers against an ordinary boss. Its model is Enemies/Castes/brain. Final encounters has every key of the boss and the camouflage, with the game's values.
