NPC好友优化
This commit is contained in:
parent
075ba32e99
commit
322b0e1926
@ -4145,6 +4145,9 @@ func ReqAddNpc(player *Player, buf []byte) error {
|
||||
FriendMod.SetNpc(int(req.NpcId))
|
||||
player.PlayMod.save()
|
||||
FriendListBackData(player)
|
||||
PlayroomMod := player.PlayMod.getPlayroomMod()
|
||||
PlayroomMod.AddRoomPointInvite()
|
||||
PlayroomMod.AddRoomPointAdd()
|
||||
player.AddLog(int(req.NpcId), friend.LOG_TYPE_FRIEND_BECOME_NPC, GoUtil.String(req.NpcId))
|
||||
player.PushClientRes(&msg.ResAddNpc{
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user