feat(config): 添加配置文档并调整天赋与属性效果

- 新增 config.md 汇总游戏配置,便于查阅
- 将部分天赋效果从概率触发改为必定触发,提升玩家体验
- 将攻击力和生命上限加成从固定值改为百分比,增强后期成长性
- 修复 MissionCardComp 中 Buff 类型注释与实际值不一致的问题
This commit is contained in:
panw
2026-02-04 10:25:17 +08:00
parent c76a31593f
commit 98ac676ded
5 changed files with 125 additions and 21 deletions

View File

@@ -524,13 +524,12 @@ export class MissionCardComp extends CCComp {
const buffConf: BuffConf = {
buff: attrCard.attr,
value: attrCard.value,
BType: BType.VALUE, // 始终使用 VALUE 类型,代表数值/点数叠加
BType: BType.RATIO, // 始终使用 VALUE 类型,代表数值/点数叠加
time: 0,
chance: 1,
};
mLogger.log(this.debugMode, 'MissionCard', `[MissionCard] Adding Buff: Attr=${attrCard.attr}, Val=${attrCard.value}, Type=VALUE`);
attrsComp.addBuff(buffConf);
// addBuff 内部会自动调用 recalculateSingleAttr 和 updateHeroInfo