106 lines
2.4 KiB
YAML
106 lines
2.4 KiB
YAML
# KARDS单位定义规范
|
||
# 本文件定义了YAML单位格式的规范和示例
|
||
|
||
# 基础单位格式
|
||
units:
|
||
# 步兵单位示例
|
||
- id: "ger_infantry_15th_cavalry"
|
||
name: "15th Cavalry Regiment"
|
||
nation: "GERMANY"
|
||
type: "Infantry"
|
||
stats:
|
||
attack: 2
|
||
defense: 1
|
||
operation_cost: 1
|
||
keywords:
|
||
- "BLITZ"
|
||
abilities: []
|
||
|
||
# 带能力的侦察兵示例
|
||
- id: "jpn_infantry_33rd_recon"
|
||
name: "33rd Recon"
|
||
nation: "JAPAN"
|
||
type: "Infantry"
|
||
stats:
|
||
attack: 1
|
||
defense: 2
|
||
operation_cost: 1
|
||
keywords: []
|
||
abilities:
|
||
- trigger: "on_damaged"
|
||
effects:
|
||
- action: "draw_card"
|
||
target: "self"
|
||
count: 1
|
||
|
||
# 坦克单位示例
|
||
- id: "usa_tank_sherman"
|
||
name: "M4 Sherman"
|
||
nation: "USA"
|
||
type: "Tank"
|
||
stats:
|
||
attack: 3
|
||
defense: 2
|
||
operation_cost: 2
|
||
keywords:
|
||
- "BLITZ"
|
||
abilities: []
|
||
|
||
# 火炮单位示例
|
||
- id: "ger_artillery_88mm"
|
||
name: "88mm Flak"
|
||
nation: "GERMANY"
|
||
type: "Artillery"
|
||
stats:
|
||
attack: 4
|
||
defense: 1
|
||
operation_cost: 3
|
||
keywords:
|
||
- "GUARD"
|
||
abilities: []
|
||
|
||
# 战斗机示例
|
||
- id: "usa_fighter_p51"
|
||
name: "P-51 Mustang"
|
||
nation: "USA"
|
||
type: "Fighter"
|
||
stats:
|
||
attack: 2
|
||
defense: 1
|
||
operation_cost: 2
|
||
keywords: []
|
||
abilities: []
|
||
|
||
# 轰炸机示例
|
||
- id: "gbr_bomber_lancaster"
|
||
name: "Avro Lancaster"
|
||
nation: "BRITAIN"
|
||
type: "Bomber"
|
||
stats:
|
||
attack: 5
|
||
defense: 2
|
||
operation_cost: 4
|
||
keywords: []
|
||
abilities:
|
||
- trigger: "on_deploy"
|
||
effects:
|
||
- action: "deal_damage"
|
||
target: "enemy_support_random"
|
||
amount: 2
|
||
|
||
# 字段说明:
|
||
# id: 单位唯一标识符 (字符串)
|
||
# name: 单位显示名称 (字符串)
|
||
# nation: 所属国家 (GERMANY/USA/JAPAN/BRITAIN/USSR等)
|
||
# type: 单位类型 (Infantry/Tank/Artillery/Fighter/Bomber)
|
||
# stats: 单位属性
|
||
# attack: 攻击力 (整数)
|
||
# defense: 防御力/生命值 (整数)
|
||
# operation_cost: 行动消耗 (整数,对应原activation_cost)
|
||
# keywords: 关键词列表 (BLITZ/GUARD/SMOKESCREEN等)
|
||
# abilities: 能力列表
|
||
# trigger: 触发时机 (on_deploy/on_damaged/on_destroy等)
|
||
# effects: 效果列表
|
||
# action: 动作类型 (draw_card/deal_damage/heal等)
|
||
# target: 目标 (self/enemy_support_random等)
|
||
# 其他参数根据action类型而定 |