From 9dc8590dcca4f0a51e24b2f31d72cc841f2c1408 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 23 一月 2019 21:02:09 +0800
Subject: [PATCH] 5919 【后端】【1.5.100】诛仙塔功能开发(次数判断修改)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py
index d32e4e8..9cd2e17 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py
@@ -120,15 +120,14 @@
 ## 检查可否进行挑战
 def __CheckCanChallenge(curPlayer):
     #判断次数
-    enterCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_EnterFbCntDay % ChConfig.Def_FBMapID_ZhuXianTower)
-    if enterCnt >= FBCommon.GetEnterFBMaxCnt(curPlayer, ChConfig.Def_FBMapID_ZhuXianTower):
-        GameWorld.Log('进入次数不足!!')
-        return 0
-
     curFloor = __GetZhuXianTowerCurPassLV(curPlayer)
     ipyMgr = IpyGameDataPY.IPY_Data()
     maxFloor = ipyMgr.GetZhuXianTowerByIndex(ipyMgr.GetZhuXianTowerCount() - 1).GetID()
-    if curFloor >= maxFloor:
+    if curFloor >= maxFloor: #已经最后层时,判断次数
+        enterCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_EnterFbCntDay % ChConfig.Def_FBMapID_ZhuXianTower)
+        if enterCnt >= FBCommon.GetEnterFBMaxCnt(curPlayer, ChConfig.Def_FBMapID_ZhuXianTower):
+            GameWorld.Log('进入次数不足!!')
+            return 0
         return maxFloor
     return curFloor + 1
     
@@ -481,8 +480,8 @@
         for itemID, itemCnt, isBind in prizeItemList:
             ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBind, [IPY_GameWorld.rptItem],
                                             event=["ZhuXianTower", False, {}])
-    #本次副本里第一次给奖励时扣次数
-    if not gameFB.GetGameFBDictByKey(FBDict_HasAddCnt):
+    #本次副本里第一次给奖励时扣次数(非首次S也扣次数)
+    if (not isFirstPass and curStar == Def_MaxStar) or not gameFB.GetGameFBDictByKey(FBDict_HasAddCnt):
         FBCommon.AddEnterFBCount(curPlayer, ChConfig.Def_FBMapID_ZhuXianTower, 1)
         gameFB.SetGameFBDict(FBDict_HasAddCnt, 1)
         

--
Gitblit v1.8.0