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 +++++++++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
index 75aaa36..24e892b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -5156,7 +5156,12 @@
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)
(
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