xdh
2018-10-17 5abe612e298a749615bb78a73b1b18eabd013505
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()
@@ -627,11 +628,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越大机器人越高级,根据策划需求自增
        #高级机器人