| | |
| | | familyID = curPlayer.GetFamilyID()
|
| | | if isHelp:
|
| | | # 助战的随便取一位优先级最高的即可
|
| | | defaultRelationPlayerID = 0
|
| | | for memPlayerID, memFamilyID in memFamilyIDDict.items():
|
| | | memRelation, relationPlayerID = __GetTemMemRelation(playerManager, playerID, familyID, memPlayerID, memFamilyID, relationList, friendList, leavePlayerID)
|
| | | if not memRelation:
|
| | | if not defaultRelationPlayerID and relationPlayerID:
|
| | | defaultRelationPlayerID = relationPlayerID
|
| | | continue
|
| | | relation = memRelation
|
| | | relationAddList = relationCoinAddDict.get(str(memRelation), [])
|
| | |
| | | relationPlayerName = memNameDict[relationPlayerID]
|
| | | return relation, relationAdd, relationPlayerID, relationPlayerName
|
| | |
|
| | | relationPlayerID = defaultRelationPlayerID
|
| | | relationPlayerName = memNameDict.get(relationPlayerID, "")
|
| | | GameWorld.DebugLog("助战默认无关系队员: relationPlayerID=%s,relationPlayerName=%s" % (relationPlayerID, relationPlayerName), playerID)
|
| | | else:
|
| | | # 非助战享受所有队员加成
|
| | | for memPlayerID, memFamilyID in memFamilyIDDict.items():
|
| | |
| | | ## 离线玩家不算社交关系
|
| | | if leavePlayerID and memPlayerID == leavePlayerID:
|
| | | return 0, 0
|
| | | if playerID == memPlayerID:
|
| | | return 0, 0
|
| | | memPlayer = playerManager.FindPlayerByID(memPlayerID)
|
| | | if memPlayer == None or memPlayer.IsEmpty():
|
| | | return 0, 0
|
| | |
| | | if checkRelation == 2:
|
| | | if playerID != memPlayerID and familyID and familyID == memFamilyID:
|
| | | return checkRelation, memPlayerID
|
| | | return 0, 0
|
| | | return 0, memPlayerID
|
| | |
|
| | | def RefershTeamFBMemRelation(tick, leavePlayerID=0):
|
| | | ## 刷新组队副本队员关系
|