8463 【BT】【后端】蓬莱仙境修改(支持购买boss次数)
| | |
| | | VIPPrivilege_BossHomeBuy, #37 BOSS之家购买次数
|
| | | VIPPrivilege_38, #38 个人boss购买次数 - 副本总表统一处理
|
| | | VIPPrivilege_39, #39 缥缈仙域购买次数 - 日常活动表统一处理
|
| | | ) = range(1, 40)
|
| | | VIPPrivilege_40, #40 VIP称号(客户端使用)
|
| | | VIPPrivilege_41, #41 VIP特权礼包(客户端使用)
|
| | | VIPPrivilege_42, #42 签到奖励倍率(客户端使用)
|
| | | VIPPrivilege_43, #43 冰晶矿脉扫荡(客户端使用)
|
| | | VIPPrivilege_BossDogzBuy, #44 神兽boss/蓬莱boss购买次数
|
| | | ) = range(1, 45)
|
| | |
|
| | |
|
| | | (
|
| | |
| | |
|
| | | 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}
|