feat(mana): 游戏设计器支持 mana 字段(补 Mana MVP 配套)
- Core 编辑器加「蓝上限/回蓝」两栏(_on_select 读 / _on_apply 写 / _on_new 默认), 修复此前编辑 Core 保存会静默丢失 mana_max/mana_regen 的数据丢失洞 - 法术编辑器 4 个 meta 模板加 mana_cost,新法术默认有合理蓝耗 - handbook 07 补 Core 蓝池字段 + 法术 mana_cost 说明 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,10 +8,10 @@ const TYPE_NAMES: Array = ["ACTION", "MODIFIER", "TRIGGER", "LOGIC"]
|
||||
|
||||
## meta 模板(按类型“插入模板”用)
|
||||
const META_TEMPLATES: Dictionary = {
|
||||
0: '{ "base_damage": 5.0, "speed": 350.0, "lifetime": 4.0, "radius": 6.0, "damage_type": 0, "shop_cost": 20 }',
|
||||
1: '{ "damage_add": 10.0, "shop_cost": 20 }',
|
||||
2: '{ "base_damage": 3.0, "speed": 250.0, "lifetime": 4.0, "radius": 6.0, "damage_type": 0, "shop_cost": 30 }',
|
||||
3: '{ "logic_op": "every_n_shots", "n": 3, "reg": 0, "shop_cost": 24 }',
|
||||
0: '{ "base_damage": 5.0, "speed": 350.0, "lifetime": 4.0, "radius": 6.0, "damage_type": 0, "mana_cost": 5, "shop_cost": 20 }',
|
||||
1: '{ "damage_add": 10.0, "mana_cost": 10, "shop_cost": 20 }',
|
||||
2: '{ "base_damage": 3.0, "speed": 250.0, "lifetime": 4.0, "radius": 6.0, "damage_type": 0, "mana_cost": 10, "shop_cost": 30 }',
|
||||
3: '{ "logic_op": "every_n_shots", "n": 3, "reg": 0, "mana_cost": 0, "shop_cost": 24 }',
|
||||
}
|
||||
|
||||
var _spells: Dictionary = {} # { id: {type, display_name, description, element_tags, meta} }
|
||||
|
||||
Reference in New Issue
Block a user