``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

@@ -96,7 +96,7 @@ func WithConn(c gnet.Conn) PlayerOption {
}
}
func (p *Player) UseCoins(amount uint32) bool {
func (p *Player) GetCoins(amount uint32) bool {
if p.Info.Coins < amount {
return false
}