``refactor(player): 统一将UseCoins方法重命名为GetCoins并优化宠物融合扣费逻辑``

This commit is contained in:
1
2026-01-03 13:53:38 +00:00
parent 3cce8738cf
commit 77baefef11
7 changed files with 23 additions and 21 deletions

View File

@@ -54,7 +54,7 @@ func (h *Controller) PlayerPetCure(data *nono.PetCureInboundInfo, c *player.Play
if c.GetSpace().Owner.UserID == c.Info.UserID {
return result, errorcode.ErrorCodes.ErrChampionCannotHeal
}
if !c.UseCoins(50) {
if !c.GetCoins(50) {
return result, errorcode.ErrorCodes.ErrSunDouInsufficient10016
}
for i := 0; i < len(c.Info.PetList); i++ {