PlayerStats 只负责加载定义、持有加成列表、把公式结果写进静态类型裸字段, 不含任何公式(公式在 AttributeFormula)。读取端零开销以满足热路径纪律 (move_speed 每物理帧被 player_manager 读)。 armor/resistance 零消费方且不在 numerical_design §1.1 权威属性表内,属实现 先于设计的残留,删除;真要做玩家侧减伤时按货架 C 属性词条立项(见 spec §2.6)。 hp_max/cpu_limit 现为派生值,从存档字段移除——回读会覆盖公式结果。 旧存档相应键忽略即可,无需提升 schema 版本(hp_max 全项目从无写入方、 cpu_limit 从未被读取)。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
7 lines
561 B
JSON
7 lines
561 B
JSON
{
|
|
"cpu_limit": { "display_name": "运算力 cpu_limit", "base": 0.0, "soft": 20.0, "hard": 50.0, "combine": "add_int" },
|
|
"move_speed": { "display_name": "移动速度 move_speed", "base": 200.0, "soft": 600.0, "hard": 800.0, "combine": "hybrid" },
|
|
"cast_delay_mod": { "display_name": "施法延迟 cast_delay_mod", "base": 1.0, "soft": 0.1, "hard": 0.01, "combine": "inverse" },
|
|
"hp_max": { "display_name": "最大生命 hp_max", "base": 100.0, "soft": 2000.0, "hard": 0.0, "combine": "hybrid" }
|
|
}
|