1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-20 21:34:27 +08:00
parent aeeac8b2ed
commit 922f7c3622
17 changed files with 138 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
package controller
import (
"blazing/common/data/xmlres"
"blazing/common/socket/errorcode"
"blazing/common/utils"
"blazing/cool"
@@ -83,8 +84,12 @@ func (h Controller) ChangePlayerDoodle(data *user.ChangeDoodleInboundInfo, playe
}
player.Info.Coins -= changeDoodleCost
player.Info.Texture = data.Id
player.Info.Color = data.Color
info, ok := xmlres.ItemsMAP[int(data.Id)]
if !ok {
return nil, errorcode.ErrorCodes.ErrSystemBusy
}
player.Info.Texture = uint32(info.Texture)
player.Info.Color = uint32(info.Texture)
result = &user.ChangeDoodleOutboundInfo{
UserId: player.Info.UserID,