玉虚论道入口修改

dev_chengFeng
wangzhenxing 2021-09-28 17:29:33 +08:00
parent d45abf6fcf
commit 81ace8ae2e
3 changed files with 10 additions and 3 deletions

View File

@ -205,7 +205,7 @@ local ManagerNames = {
--七界试炼管理器
"QiJieShiLian/QiJieShiLianManager",
--玉虚论道管理器
-- "WorldArena/WorldArenaManager",
"WorldArena/WorldArenaManager",
--秘宝管理器
"GeneralPanel/GeneralTreasureMangaer",
--!!!!红点管理(尽量放在最后)!!!!--

View File

@ -118,11 +118,18 @@ function this.GetHightLadderDataIsGroup()
return isGroup ~= 0
end
function this.GetHightLadderDataIsStart()
LogRed("isStart1:"..tostring(isStart))
return isStart >= mServerArenaSetting[1].OpenWeek
end
function this.GetQiJieIsStart()
LogRed("isStart3:"..tostring(isStart))
return isStart >= mServerArenaSetting[3].OpenWeek
end
function this.GetYuxuIsStart()
LogRed("isStart2:"..tostring(isStart))
return isStart >= mServerArenaSetting[2].OpenWeek
end
-- 获取剩余挑战次数 特权
function this.GetCanBattleCount()
return PrivilegeManager.GetPrivilegeRemainValue(PRIVILEGE_TYPE.JUMPSERVER_GIGHTLADDER_MIANFEINUM)

View File

@ -245,9 +245,9 @@ function JumpServerPanel:SystemState(id,fun)
end
-- 跨服相关判断
JumpServerManager.GetWorldArenaInfoRequest(function()
if not JumpServerManager.GetHightLadderDataIsStart() then
if not JumpServerManager.GetYuxuIsStart() then
type[id].state = -4
type[id].tipStr = string.format("开服第%s周开放",ConfigManager.GetConfigData(ConfigName.MServerArenaSetting,1).OpenWeek)
type[id].tipStr = string.format("开服第%s周开放",ConfigManager.GetConfigData(ConfigName.MServerArenaSetting,2).OpenWeek)
elseif not JumpServerManager.GetHightLadderDataIsGroup() then
type[id].state = -5
type[id].tipStr = "未划分跨服分组,无法参与!"