From 7e68987c9536fd546e7b9d203d35fd7919f6d3e4 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 03 十一月 2019 23:11:14 +0800
Subject: [PATCH] 0312 寻宝暂改成积分寻宝,关闭极品寻宝

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTreasure.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTreasure.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTreasure.py
index 0a9481c..22e481e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTreasure.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTreasure.py
@@ -75,6 +75,8 @@
     GameWorld.DebugLog("玩家寻宝: treasureType=%s,treasureIndex=%s,costType=%s,playerLV=%s" 
                        % (treasureType, treasureIndex, costType, playerLV), playerID)
     
+    if treasureType == 1:
+        return
     TreasureSet1 = "TreasureSet1%s" % treasureType
     TreasureSet2 = "TreasureSet2%s" % treasureType
     treasureCountList = IpyGameDataPY.GetFuncEvalCfg(TreasureSet1, 1) # 寻宝获得个数列表
@@ -127,7 +129,7 @@
         if lackCount > 0:
             lackCountCostMoney = ItemCommon.GetAutoBuyItemNeedGold({costItemID:lackCount})
             if lackCountCostMoney:
-                moneyType = IPY_GameWorld.TYPE_Price_Gold_Money
+                moneyType = IPY_GameWorld.TYPE_Price_Gold_Paper
                 infoDict = {ChConfig.Def_Cost_Reason_SonKey:costItemID}
                 if not PlayerControl.HaveMoney(curPlayer, moneyType, lackCountCostMoney):
                     return
@@ -144,7 +146,7 @@
             GameWorld.ErrLog("该寻宝类型索引不支持消耗仙玉寻宝!treasureType=%s,treasureIndex=%s" % (treasureType, treasureIndex), playerID)
             return
         
-        if not PlayerControl.HaveMoney(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Money, costGold):
+        if not PlayerControl.HaveMoney(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Paper, costGold):
             return
         
     ipyData = IpyGameDataPY.InterpolationSearch("TreasureHouse", "MinLV", playerLV, {"TreasureType":treasureType})
@@ -315,7 +317,7 @@
             PlayerControl.PayMoney(curPlayer, moneyType, lackCountCostMoney, ChConfig.Def_Cost_Treasure, infoDict, lackCount)
     else:
         infoDict = {"TreasureType":treasureType, "TreasureIndex":treasureIndex}
-        PlayerControl.PayMoney(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Money, costGold, ChConfig.Def_Cost_Treasure, infoDict)
+        PlayerControl.PayMoney(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Paper, costGold, ChConfig.Def_Cost_Treasure, infoDict)
         GameWorld.DebugLog("扣除仙玉,costGold=%s" % costGold, playerID)
         
     # 加数据

--
Gitblit v1.8.0