From 5affad5d239f5fed725f5992ebab08c6da59c090 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 12 二月 2019 11:58:17 +0800
Subject: [PATCH] 5819 【后端】【1.6】运营活动支持对应不同的职业和世界等级
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py | 28 ++++++++++++++++++++++++++--
1 files changed, 26 insertions(+), 2 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 25009e7..0341d47 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
@@ -78,6 +78,28 @@
def OnFBPlayerOnLogin(curPlayer):
+ if not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_VersionFix, ChConfig.Def_VerFix_ZXTower):
+ GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_VersionFix, ChConfig.Def_VerFix_ZXTower, 1)
+ #奖励变更补偿 s级通关奖励里的宝石
+ curFloor = __GetZhuXianTowerCurPassLV(curPlayer)
+ if curFloor:
+ giveItemList = []
+ for floor in xrange(1, curFloor+1):
+ ipyData = GetTowerIpyData(floor)
+ if not ipyData:
+ continue
+ for itemInfo in ipyData.GetFirstAward():
+ itemID = itemInfo[0]
+ itemData = GameWorld.GetGameData().GetItemByTypeID(itemID)
+ if not itemData:
+ continue
+ if itemData.GetType() == ChConfig.Def_ItemType_ZhuXianStone:
+ giveItemList.append(itemInfo)
+ if giveItemList:
+ PlayerControl.SendMailByKey('KillGodTowerCompensation', [curPlayer.GetID()], giveItemList)
+
+
+
SyncZhuXianLevelInfo(curPlayer)
return
@@ -137,8 +159,10 @@
gameFB = GameWorld.GetGameFB()
fbStep = gameFB.GetFBStep()
curStar = gameFB.GetGameFBDictByKey(FBDict_FBStar)
- if curStar != Def_MaxStar and fbStep == FB_State_FreeTime:
- FBCommon.UpdateFBEnterTick(curPlayer)
+ hasPass = gameFB.GetGameFBDictByKey(FBDict_HasPass)
+ if fbStep == FB_State_FreeTime: #失败或非S通关需要加cd
+ if curStar != Def_MaxStar or not hasPass:
+ FBCommon.UpdateFBEnterTick(curPlayer)
return
##副本玩家进入点
--
Gitblit v1.8.0