refactor(hero): 重命名天赋相关方法以区分计数型和数值型
将计数型天赋操作方法从addTalent/consumeTalent重命名为addCountTal/useCountTal 将数值型天赋操作方法从addTalBuff/clearTalBuff重命名为addValueTal/useValueTalByUuid 更新相关文档和调用代码以保持一致性
This commit is contained in:
@@ -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);
|
||||
```
|
||||
|
||||
### 装备操作
|
||||
|
||||
Reference in New Issue
Block a user