WIKI

MOD

ウェーブと敵

ゲームはすべてのウェーブを数式から作ります。mod.json の隣に waves.json を置くと、そこに並べたウェーブがあなたのものに置き換わり、それらが送り出す敵の種類も定義されます。この MOD はゲームプレイ 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}
  ]
}

敵の種類

  • health、speed(ゲームの虫はおよそ25〜95で歩きます)、reward(撃破時のゴールド)、shield。
  • species:見た目の元になる虫: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。2番目または3番目の難易度の色にするには、名前の前に dusk_ か night_ を付けます。
  • kind:worker、fast、armored、swarm、shield、flyer、boss、flyer_boss のいずれか。scale はボスの大きさを決めます。
  • cloaked:擬態します(下記)。
  • life_damage:突破されたときに失うライフ。初期値は1に、まだ内側に残っている層1つにつき1を足した値です。
  • children:倒れた場所から生まれ、そこから歩き続ける敵です。ウェーブはそれらを待ちます。数は少なめにしましょう。層はどれも本物の虫です。
  • immune と resist はダメージグループ単位で指定します。projectile(ガン、キャノン、マシンガン)、explosive(ミサイル)、flame、frost、bolt、laser、poison、wall(バリア)、bleed(刃による出血)です。immune はそのグループからダメージも状態異常も受けず、resist はその攻撃に倍率を掛けます({"frost": 0.5})。
  • melee:兵士に、そしてレーンではタワーに与える毎秒のダメージ。

ウェーブのリスト

  • 各ウェーブは groups のリストです。type、count、秒単位の spacing、グループ開始までの任意の delay を持ちます。
  • ウェーブには reward(独自の報酬を持たない種類の撃破ゴールド)、boss、weakness、coins、そして送り出すすべての体力とシールドに倍率を掛ける health_mult も設定できます。
  • after_last:"procedural"(初期値)はリストの後もゲーム本来のウェーブを続け、"victory" でランに勝利します。
  • health_by_difficulty は、難易度ごとにすべての種類の体力とシールドに倍率を掛けます。

Banana Brigade は層を持つ敵の50ラウンドを、Iron Kingdom は30ウェーブを書いています。

擬態

擬態した虫を見て、狙って、攻撃できるのは、建設済みのレベル3タワーがその射程内に捉えたときだけです。どのウェーブが擬態して来るかは 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 はウェーブを並べ、random_by_difficulty は from_wave 以降の他のすべてのウェーブに、擬態して来る確率 chance を与えます。health_multiplier と quantity_multiplier はそれらのウェーブを弱めます。
  • detection_level は、タワーが擬態を見破れるようになるレベルです。detection_towers はこれを、タワーとそれぞれが見破れるレベルのリストに置き換えます。
  • "shared_detection": true:いずれかの探知タワーの射程内にいる虫は、すべてのタワーから攻撃できるようになります。
  • "enabled": false で擬態がなくなります。

最終ボス

{"bosses": {"final_boss": {"wave": 50, "health_multiplier": 3.6, "speed_multiplier": 0.48,
                           "visual_scale": 1.8, "shield_ratio": 0.0}}}

Brood Mind が現れるウェーブと、通常のボスに対する数値です。モデルは Enemies/Castes/brain です。Final encounters には、ボスと擬態のすべてのキーがゲームの値とともに入っています。