mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-09 00:42:27 +08:00
角色皮肤更新
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user