| | |
| | |
|
| | | 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}
|