From 92b3290923b12d9beb46f3fcefd38f84e159ffab Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 22 十二月 2020 10:36:04 +0800
Subject: [PATCH] 8463 【BT】【后端】蓬莱仙境修改(支持购买boss次数)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index de23364..9d758d7 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/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}

--
Gitblit v1.8.0