xdh
2019-05-30 60738f90008d8bea155d34a842c87c9e6cf0c66f
7027 【2.0】【后端】成长基金新增投资限制
3个文件已修改
13 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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               # 直接给战盟活跃点
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, {}]):
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