271 【内政】古宝系统-服务端(增加古宝特权3-永久卡额外领取物品奖励;)
2个文件已修改
8 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
@@ -275,13 +275,16 @@
    if not rewardItemList:
        return
    
    if investType == ChConfig.InvestType_Month:
    exItemGubaoPowerDict = {ChConfig.InvestType_Month:PlayerGubao.GubaoPowerType_InvestMonthAwardPer,
                            ChConfig.InvestType_Life:PlayerGubao.GubaoPowerType_InvestLifeAwardPer}
    if investType in exItemGubaoPowerDict:
        gubaoPowerType = exItemGubaoPowerDict[investType]
        # 古宝月卡奖励双倍特权
        exItemList = []
        gubaoExSign = 10 # 标记古宝额外奖励
        for itemInfo in rewardItemList:
            itemID, itemCount = itemInfo[:2]
            addPer = PlayerGubao.GetGubaoPowerValue(curPlayer, PlayerGubao.GubaoPowerType_InvestMonthAwardPer, itemID)
            addPer = PlayerGubao.GetGubaoPowerValue(curPlayer, gubaoPowerType, itemID)
            if not addPer:
                continue
            countEx = int(itemCount * addPer / 100.0)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py
@@ -37,6 +37,7 @@
# 特权效果类型
GubaoPowerType_TravelMultiRate = 1 # 游历双倍奖励概率
GubaoPowerType_InvestMonthAwardPer = 2 # 月卡领取额外奖励
GubaoPowerType_InvestLifeAwardPer = 3 # 永久卡领取额外奖励
def GetGubaoInfo(curPlayer, gubaoID):
    info = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GubaoInfo % gubaoID)