角色皮肤更新

This commit is contained in:
UnKownOwO
2023-02-02 16:58:10 +08:00
parent 52e0cb4586
commit 1d93d4a5f5
2 changed files with 3 additions and 1 deletions

View File

@@ -386,6 +386,9 @@ func (g *GameManager) CreatePlayer(userId uint32, nickName string, mainCharAvata
player.CostumeList = append(player.CostumeList, 204501)
player.CostumeList = append(player.CostumeList, 201601)
player.CostumeList = append(player.CostumeList, 203101)
player.CostumeList = append(player.CostumeList, 200201)
player.CostumeList = append(player.CostumeList, 200601)
player.CostumeList = append(player.CostumeList, 208201)
player.SafePos = &model.Vector{X: 2747, Y: 194, Z: -1719}
player.Pos = &model.Vector{X: 2747, Y: 194, Z: -1719}

View File

@@ -19,7 +19,6 @@ func (g *GameManager) ChangeAvatarReq(player *model.Player, payloadMsg pb.Messag
world := WORLD_MANAGER.GetWorldByID(player.WorldId)
scene := world.GetSceneById(player.SceneId)
targetAvatarId := player.GetAvatarIdByGuid(targetAvatarGuid)
logger.Error("avatarId: %v", targetAvatarGuid)
oldAvatarId := world.GetPlayerActiveAvatarId(player)
if targetAvatarId == oldAvatarId {
logger.Error("can not change to the same avatar, uid: %v, oldAvatarId: %v, targetAvatarId: %v", player.PlayerID, oldAvatarId, targetAvatarId)