refactor(hero): 重命名天赋相关方法以区分计数型和数值型

将计数型天赋操作方法从addTalent/consumeTalent重命名为addCountTal/useCountTal
将数值型天赋操作方法从addTalBuff/clearTalBuff重命名为addValueTal/useValueTalByUuid
更新相关文档和调用代码以保持一致性
This commit is contained in:
2025-11-24 10:27:38 +08:00
parent aefe3d6d06
commit 4ed531e100
5 changed files with 36 additions and 30 deletions

View File

@@ -201,10 +201,10 @@ console.log("道具1001数量:", itemInfo.result.data.count);
const talents = await WxCloudApi.getTalents();
// 添加天赋点
const result = await WxCloudApi.addTalent(1001, 1);
const result = await WxCloudApi.addCountTal(1001, 1);
// 消耗天赋点
const result = await WxCloudApi.consumeTalent(1001, 1);
const result = await WxCloudApi.useCountTal(1001, 1);
```
### 装备操作