This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user