``refactor(player): 统一将UseCoins方法重命名为GetCoins并优化宠物融合扣费逻辑``
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user