hxp
2020-09-08 92b3290923b12d9beb46f3fcefd38f84e159ffab
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -6169,6 +6169,17 @@
    
    costGold = IpyGameDataPY.GetFuncEvalCfg("KillBossCntLimit1", 2, {}).get(killBossMark)
    if not costGold:
        costGoldList = IpyGameDataPY.GetFuncEvalCfg("KillBossCntLimit1", 3, {}).get(str(killBossMark), [])
        if not costGoldList:
            GameWorld.DebugLog("没有配置可购买boss次数消耗,无法购买! killBossMark=%s" % killBossMark)
            return
        if hasBuyCnt >= len(costGoldList):
            costGold = costGoldList[-1]
        else:
            costGold = costGoldList[hasBuyCnt]
    if not costGold:
        return
    
    infoDict = {"index":killBossMark, ChConfig.Def_Cost_Reason_SonKey:killBossMark}