hxp
2018-12-26 1deb0b9086974c1205cddee149b88b6974d35ecd
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerXMZZ.py
@@ -473,8 +473,9 @@
        #第一积分奖励
        if topScorePlayerID:
            topScoreAward = IpyGameDataPY.GetFuncEvalCfg('XMZZAward', 2)
            PlayerCompensation.SendMailByKey('XMZZTopScore', [topScorePlayerID], topScoreAward, [topScore])
            SavePKRecord('XMZZ_FirstPlace', [self.XMZZTopPlayerName, self.XMZZTopScore], False)
            if topScoreAward:
                PlayerCompensation.SendMailByKey('XMZZTopScore', [topScorePlayerID], topScoreAward, [topScore])
                SavePKRecord('XMZZ_FirstPlace', [self.XMZZTopPlayerName, self.XMZZTopScore], False)
        
        #押注奖励
        self.BetOverLogic()
@@ -482,7 +483,7 @@
        #阵营奖励
        winAward = IpyGameDataPY.GetFuncEvalCfg('XMZZAward', 3)
        LoseAward = IpyGameDataPY.GetFuncEvalCfg('XMZZAward', 4)
        dogfallAward = IpyGameDataPY.GetFuncEvalCfg('XMZZAward', 5)
        dogfallAward = IpyGameDataPY.GetFuncCfg('XMZZAward', 5)
        result = self.GetXMZZCurResult()
        if result == Faction_1:
            SavePKRecord('XMZZ_Victory', [result], True)          
@@ -500,7 +501,6 @@
                SavePKRecord('XMZZ_Draw', [], True)
                
                PlayerCompensation.SendMailByKey('XMZZDogfall', Faction_2_IDList + Faction_1_IDList, [], goldPaper=dogfallAward)
                #PlayerControl.MergeWorldNotify(0, '', [])
        
        PlayerDBGSEvent.SetDBGSTrig_ByKey(PlayerDBGSEvent.Def_XMZZIsOver, 1)
        self.NotifyXMZZInfo()
@@ -627,11 +627,15 @@
    isRobotNPC = True
    pkDataDict = {}
    conWinCnt = XMZZPlayerDict[myPlayerID].ConWinCnt #参数
    XMZZSpecialNPCRate = eval(IpyGameDataPY.GetFuncCfg('XMZZSpecialNPCRate'))
    XMZZSpecialNPCRate = eval(IpyGameDataPY.GetFuncCompileCfg('XMZZSpecialNPCRate'))
    XMZZSuperNPCRate = eval(IpyGameDataPY.GetFuncCompileCfg('XMZZSpecialNPCRate', 2))
    XMZZNPCByLVPowerList = IpyGameDataPY.GetFuncEvalCfg('XMZZPKPowerRange', 2)
    isByLVPower = conWinCnt + 1 in XMZZNPCByLVPowerList #是否按等级表战力来随机范围
    if GameWorld.CanHappen(XMZZSuperNPCRate):
        GameWorld.DebugLog('    筛选对手  超级机器人 XMZZSuperNPCRate=%s' % (XMZZSuperNPCRate))
        pkPlayerID = 2
    
    if not isByLVPower and GameWorld.CanHappen(XMZZSpecialNPCRate):
    elif not isByLVPower and GameWorld.CanHappen(XMZZSpecialNPCRate):
        GameWorld.DebugLog('    筛选对手  高级机器人 XMZZSpecialNPCRate=%s' % (XMZZSpecialNPCRate))
        #机器人ID规则: ID从0~n, n不大于机器人ID列表长度, ID越大机器人越高级,根据策划需求自增
        #高级机器人
@@ -689,7 +693,7 @@
                aboveList2.append(playerID)
        GameWorld.DebugLog('    筛选对手 myPower=%s,underList1=%s, aboveList1=%s,underList2=%s, aboveList2=%s' % (myPower, underList1, aboveList1, underList2, aboveList2), myPlayerID)
        if conWinCnt % 5 == 0: #每5个匹配战力低的对手
        if conWinCnt % 5 == 0 or conWinCnt <= IpyGameDataPY.GetFuncCfg('XMZZPKPowerRange', 3): #每5个匹配战力低的对手
            if underList1:
                pkPlayerID = underList1[0]
            elif underList2: