From ccbc8e1929b2e844639c2bb1ac6da369a0875c5c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 03 十二月 2021 18:54:54 +0800
Subject: [PATCH] 9341 【BT5】【主干】【后端】情缘系统(增加魅力等级属性;伴侣亲密度等级属性;优化已成亲的伴侣再次提亲时直接成亲 主干冲突)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py
index 58cb30f..d3ede7e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py
@@ -32,6 +32,7 @@
 import SkillShell
 import PlayerSuccess
 import PyGameData
+import PlayerLove
 import PlayerVip
 #---------------------------------------------------------------------
 
@@ -155,9 +156,11 @@
     sameMapVIPLV = 0 # 同地图VIP加成等级
     mapID = curPlayer.GetMapID()
     teamVIPBuffIpyData = PlayerVip.GetVipPrivilegeData(ChConfig.VIPPrivilege_TeamVIPBuff)
+    teamPlayerInfoDict = {}
     # 处理队伍人数影响的内容(队伍经验加成、VIPbuff等)
     for memInfo in curPackData.MemInfoList:
-        #memPlayerID = memInfo.PlayerID
+        memPlayerID = memInfo.PlayerID
+        teamPlayerInfoDict[memPlayerID] = {"MapID":memInfo.MapID, "VIPLV":memInfo.VIPLV, "FamilyID":memInfo.FamilyID}
         #GameWorld.DebugLog("    MemInfo memPlayerID=%s,MapID=%s,VIPLV=%s" % (memPlayerID, memInfo.MapID, memInfo.VIPLV))
         if mapID != memInfo.MapID:
             continue
@@ -170,10 +173,12 @@
         # 同地图人数
         sameMapMemCount += 1
         
+    PyGameData.g_teamPlayerInfoDict[teamID] = teamPlayerInfoDict
     teamExpRate = max(0, (sameMapMemCount - 1) * 1000) # 每多1个同地图队员增加 10%
     UpdTeamExpRate(curPlayer, teamExpRate)
     
     __RefreshTeamVIPBuff(curPlayer, sameMapVIPLV, tick)
+    PlayerLove.RefreshCoupleTeamBuff(curPlayer)
     return
 
 def __RefreshTeamVIPBuff(curPlayer, sameMapVIPLV, tick):
@@ -336,6 +341,7 @@
         
         #自己离开队伍, 删除自己的buff
         __CleanTeamEffect(curPlayer, tick)
+        PlayerLove.RefreshCoupleTeamBuff(curPlayer)
         
         #副本中,如果只有一个玩家,这个玩家离开组队,设置副本ID为0
         if curGameWorld.GetMapCopyPlayerManager().GetPlayerCount() == 1 and GameWorld.GetMap().GetMapFBType() == IPY_GameWorld.tmtTeam:

--
Gitblit v1.8.0