波次与敌人
游戏根据公式生成每一波。放在 mod.json 旁边的 waves.json 会用你自己的波次替换它列出的波次,并定义这些波次派出的敌人类型。它会让你的模组成为玩法模组。
{
"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。在名称前加上dusk_或night_可使用第二或第三个难度的配色。kind:worker、fast、armored、swarm、shield、flyer、boss或flyer_boss。scale设置首领的大小。cloaked:伪装(见下文)。life_damage:漏过一只时扣除的生命。默认为一条,其内部每多一层再加一条。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 编写了五十回合的分层敌人,Iron Kingdom 则编写了三十波。
伪装
伪装的虫子只有已建成的 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 包含首领和伪装的所有键,以及游戏的数值。
