WIKI

Mods

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) and shield.
  • 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. Put dusk_ or night_ before a name for the second or third difficulty's colours.
  • kind: worker, fast, armored, swarm, shield, flyer, boss or flyer_boss. scale sizes 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.
  • immune and resist go by damage group: projectile (Gun, Cannon, Machine Gun), explosive (Missile), flame, frost, bolt, laser, poison, wall (the barrier) and bleed (the blades' bleeding). immune takes no damage and no status from the group; resist multiplies 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: a type, a count, the spacing in seconds and an optional delay before the group starts.
  • A wave may also set reward (gold a kill, for types without their own), boss, weakness, coins and health_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_difficulty scales 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_difficulty lists the waves; random_by_difficulty gives every other wave from from_wave on a chance of coming camouflaged. health_multiplier and quantity_multiplier soften those waves.
  • detection_level is the level from which a tower sees them. detection_towers replaces 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": false turns 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.