| | |
| | | import SkillShell
|
| | | import PlayerSuccess
|
| | | import PyGameData
|
| | | import PlayerLove
|
| | | import PlayerVip
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | |
| | | 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
|
| | |
| | | # 同地图人数
|
| | | 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):
|
| | |
| | |
|
| | | #自己离开队伍, 删除自己的buff
|
| | | __CleanTeamEffect(curPlayer, tick)
|
| | | PlayerLove.RefreshCoupleTeamBuff(curPlayer)
|
| | |
|
| | | #副本中,如果只有一个玩家,这个玩家离开组队,设置副本ID为0
|
| | | if curGameWorld.GetMapCopyPlayerManager().GetPlayerCount() == 1 and GameWorld.GetMap().GetMapFBType() == IPY_GameWorld.tmtTeam:
|