xdh
2019-03-15 9734ca380d9e594e7e5766383e1101ea454b87de
6307 【后端】【2.0】多套装备开发单(暂屏蔽首充武器试用)
2个文件已修改
22 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MagicWeapon.py 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MagicWeapon.py
@@ -586,14 +586,14 @@
    if isPass:
        EventReport.WriteEvent_FB(curPlayer, ChConfig.Def_FBMapID_MagicWeapon, 0, ChConfig.CME_Log_End, 0, 1)
    
    if lineID == IpyGameDataPY.GetFuncCfg('FirstGoldTryItem', 3):
        if not isPass:
            #副本指定线路失败了,进入首充试用引导
            if not curPlayer.GetChangeCoinPointTotal() and not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FirstGoldTry):
                PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 1)
                PlayerGoldGift.Sync_FirstGoldInfo(curPlayer)
        else:
            PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 0)
#    if lineID == IpyGameDataPY.GetFuncCfg('FirstGoldTryItem', 3):
#        if not isPass:
#            #副本指定线路失败了,进入首充试用引导
#            if not curPlayer.GetChangeCoinPointTotal() and not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FirstGoldTry):
#                PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 1)
#                PlayerGoldGift.Sync_FirstGoldInfo(curPlayer)
#        else:
#            PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 0)
    return
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py
@@ -513,7 +513,11 @@
            itemObj = ItemCommon.GetMailItemDict(curItem)
            PlayerControl.SendMailByKey('', [curPlayer.GetID()], [itemObj])
            ItemCommon.DelItem(curPlayer, curItem, 1, False)
        else:
            result = ItemControler.PlayerItemControler(curPlayer).UnEquipItem(equipPlace, spaceIndex)
            if not result:
                GameWorld.Log('    试用首充武器 卸下原装备失败!!', curPlayer.GetID())
                return
    tryItem = ItemControler.GetOutPutItemObj(tryItemID)
    if ChEquip.DoPlayerEquipItem(curPlayer, tryItem, ItemCommon.GetEquipPackIndex(tryItem), tick):
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 2)