8380 【主干】【后端】优化境界压制(大境界不足时无法获得归属)
1个文件已修改
26 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -4484,10 +4484,15 @@
                    dropPlayer = curPlayer
                    
                if isGameBoss and curPlayer.GetOfficialRank() < GetRealmLV(curNPC):
                    GameWorld.Log("玩家境界不足,无法获得Boss归属奖励! playerRealmLV=%s,npcID=%s,npcRealmLV=%s"
                                  % (curPlayer.GetOfficialRank(), npcID, GetRealmLV(curNPC)), curPlayer.GetPlayerID())
                    continue
                    playerRealmIpyData = IpyGameDataPY.GetIpyGameDataNotLog("Realm", curPlayer.GetOfficialRank())
                    npcRealmIpyData = IpyGameDataPY.GetIpyGameDataNotLog("Realm", GetRealmLV(curNPC))
                    playerRealmLVLarge = playerRealmIpyData.GetLvLarge() if playerRealmIpyData else 0
                    npcRealmLVLarge = npcRealmIpyData.GetLvLarge() if npcRealmIpyData else 0
                    if npcRealmLVLarge > playerRealmLVLarge:
                        GameWorld.Log("玩家大境界不足,无法获得Boss归属奖励! playerRealmLVLarge=%s,npcID=%s,npcRealmLVLarge=%s"
                                      % (playerRealmLVLarge, npcID, npcRealmLVLarge), curPlayer.GetPlayerID())
                        continue
                self.__KilledByPlayerSetPrize(curPlayer)
                ownerPlayerList.append(curPlayer)
            self.__ownerPlayerList = ownerPlayerList
@@ -4866,10 +4871,15 @@
        #遍历队伍,半径为一屏半的距离内的所有队伍/团队成员,可以获得经验
        for curPlayer in playerlist:
            if isGameBoss and curPlayer.GetOfficialRank() < GetRealmLV(curNPC):
                GameWorld.Log("队员境界不足,无法获得Boss归属奖励! playerRealmLV=%s,npcID=%s,npcRealmLV=%s"
                              % (curPlayer.GetOfficialRank(), npcID, GetRealmLV(curNPC)), curPlayer.GetPlayerID())
                continue
                playerRealmIpyData = IpyGameDataPY.GetIpyGameDataNotLog("Realm", curPlayer.GetOfficialRank())
                npcRealmIpyData = IpyGameDataPY.GetIpyGameDataNotLog("Realm", GetRealmLV(curNPC))
                playerRealmLVLarge = playerRealmIpyData.GetLvLarge() if playerRealmIpyData else 0
                npcRealmLVLarge = npcRealmIpyData.GetLvLarge() if npcRealmIpyData else 0
                if npcRealmLVLarge > playerRealmLVLarge:
                    GameWorld.Log("队员玩家大境界不足,无法获得Boss归属奖励! playerRealmLVLarge=%s,npcID=%s,npcRealmLVLarge=%s"
                                  % (playerRealmLVLarge, npcID, npcRealmLVLarge), curPlayer.GetPlayerID())
                    continue
            curPlayerLV = curPlayer.GetLV()
            if teamMaxLV < curPlayerLV:
                teamMaxLV = curPlayerLV