From 60738f90008d8bea155d34a842c87c9e6cf0c66f Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 30 五月 2019 20:44:28 +0800
Subject: [PATCH] 7027 【2.0】【后端】成长基金新增投资限制

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py      |    3 +++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py |    9 +++++----
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py                |    1 +
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
index 143b7d8..577cfcf 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -258,6 +258,7 @@
 Def_ItemID_VIPExperience = 985               # VIP体验卡
 
 # 直接转换为对应数值的物品ID列表
+Def_ItemID_GoldMoney = 20               # 直接给仙玉
 Def_ItemID_SilverMoney = 22               # 直接给铜钱
 Def_ItemID_FamilyContribution = 26               # 直接给战盟贡献点
 Def_ItemID_FamilyActive = 28               # 直接给战盟活跃点
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
index a4b01eb..ba8e28f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
@@ -1034,6 +1034,9 @@
             PlayerControl.GiveMoney(curPlayer, ShareDefine.TYPE_Price_SoulCore, itemCount)
         elif itemID == ChConfig.Def_ItemID_Honor:
             PlayerControl.GiveMoney(curPlayer, ShareDefine.TYPE_Price_Honor, itemCount)
+        elif itemID == ChConfig.Def_ItemID_GoldMoney:
+            PlayerControl.GiveMoney(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Money, itemCount)
+
         return True
     
     def __CrossServerPutInItem(self, packIndex, tagItem, event=["", False, {}]):
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
index 2da2a28..166411e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
@@ -120,10 +120,11 @@
     awardData = costList.index(investGold) + 1
     if investType == ChConfig.GoldInvestType_VIP:
         awardData = __GetInvestLVData(curPlayer)
-        needVIPLV = IpyGameDataPY.GetFuncCfg('VIPInvest', 2)
-        if curPlayer.GetVIPLv() < needVIPLV:
-            GameWorld.DebugLog('    投资理财 需要VIP%s'%(needVIPLV))
-            return
+    needVIPLVDict = IpyGameDataPY.GetFuncEvalCfg('InvestCost', 2, {})
+    needVIPLV = needVIPLVDict.get(str(investType), 0)
+    if curPlayer.GetVIPLv() < needVIPLV:
+        GameWorld.DebugLog('    投资理财 需要VIP%s'%(needVIPLV))
+        return
     
         
     deductGold = investGold

--
Gitblit v1.8.0