命令管理器优化、传送命令改善

换上装备或脱下装备的时候加了个更新面板
This commit is contained in:
UnKownOwO
2023-02-13 22:23:02 +08:00
parent f8f55be5bd
commit 43c3e30026
4 changed files with 146 additions and 88 deletions
+4
View File
@@ -68,6 +68,8 @@ func (g *GameManager) TakeoffEquipReq(player *model.Player, payloadMsg pb.Messag
}
// 卸下圣遗物
player.TakeOffReliquary(avatar.AvatarId, reliquary.ReliquaryId)
// 角色更新面板
g.UpdateUserAvatarFightProp(player.PlayerID, avatar.AvatarId)
// 更新玩家装备
avatarEquipChangeNotify := &proto.AvatarEquipChangeNotify{
AvatarGuid: avatar.Guid,
@@ -113,6 +115,8 @@ func (g *GameManager) WearEquipReq(player *model.Player, payloadMsg pb.Message)
g.SendError(cmd.WearEquipRsp, player, &proto.WearEquipRsp{})
return
}
// 角色更新面板
g.UpdateUserAvatarFightProp(player.PlayerID, avatar.AvatarId)
wearEquipRsp := &proto.WearEquipRsp{
AvatarGuid: req.AvatarGuid,