| | |
| | | #第一积分奖励
|
| | | 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()
|
| | |
| | | #阵营奖励
|
| | | 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)
|
| | |
| | | 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()
|
| | |
| | | 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越大机器人越高级,根据策划需求自增
|
| | | #高级机器人
|
| | |
| | | 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:
|