NPC好友优化

This commit is contained in:
hahwu 2025-05-27 11:34:20 +08:00
parent 075ba32e99
commit 322b0e1926

View File

@ -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,