【战斗】首领关卡2回合后才可以跳过
parent
ad58a58843
commit
c10667f77d
|
@ -857,7 +857,7 @@ end
|
||||||
-- 是否解锁跳过功能
|
-- 是否解锁跳过功能
|
||||||
function this.IsUnlockBattlePass()
|
function this.IsUnlockBattlePass()
|
||||||
-- return false
|
-- return false
|
||||||
return PrivilegeManager.GetPrivilegeOpenStatus(PRIVILEGE_TYPE.SkipFight), "通关简单3-20或充值任意金额后解锁"
|
return PrivilegeManager.GetPrivilegeOpenStatus(PRIVILEGE_TYPE.SkipFight), "通关简单3-10或充值任意金额后解锁"
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 战斗暂停控制
|
-- 战斗暂停控制
|
||||||
|
|
|
@ -50,18 +50,19 @@ local UpdateBtnGMFunc = {
|
||||||
-- [BATTLE_TYPE.DAILY_CHALLENGE] = function()
|
-- [BATTLE_TYPE.DAILY_CHALLENGE] = function()
|
||||||
-- return SKIP_STATE.NOUSE, "日常副本战斗无法跳过!"
|
-- return SKIP_STATE.NOUSE, "日常副本战斗无法跳过!"
|
||||||
-- end,
|
-- end,
|
||||||
-- [BATTLE_TYPE.STORY_FIGHT] = function()
|
[BATTLE_TYPE.STORY_FIGHT] = function()
|
||||||
-- if not BattleManager.IsUnlockBattlePass() then
|
local isUnlock, tip = BattleManager.IsUnlockBattlePass()
|
||||||
-- return SKIP_STATE.LOCK, "25级或充值任意金额后解锁"
|
if not isUnlock then
|
||||||
-- end
|
return SKIP_STATE.LOCK, tip
|
||||||
-- -- if FightPointPassManager.GetCurOpenFightIdIsBoss() then
|
end
|
||||||
-- -- return SKIP_STATE.NOUSE, "首领关卡无法跳过!"
|
if FightPointPassManager.GetCurOpenFightIdIsBoss() then
|
||||||
-- -- end
|
if this.curRound <= _NO_JUMP_ROUND then
|
||||||
-- -- if this.curRound <= _NO_JUMP_ROUND then
|
return SKIP_STATE.NOUSE, "首领关卡第二回合结束后可以跳过"
|
||||||
-- -- return SKIP_STATE.NOUSE, "第二回合结束后可以跳过"
|
end
|
||||||
-- -- end
|
-- return SKIP_STATE.NOUSE, "首领关卡无法跳过!"
|
||||||
-- return SKIP_STATE.UNLOCK
|
end
|
||||||
-- end,
|
return SKIP_STATE.UNLOCK
|
||||||
|
end,
|
||||||
-- [BATTLE_TYPE.DAILY_CHALLENGE] = function()
|
-- [BATTLE_TYPE.DAILY_CHALLENGE] = function()
|
||||||
-- -- if not BattleManager.IsUnlockBattlePass() then
|
-- -- if not BattleManager.IsUnlockBattlePass() then
|
||||||
-- -- return SKIP_STATE.LOCK, "25级或充值任意金额后解锁"
|
-- -- return SKIP_STATE.LOCK, "25级或充值任意金额后解锁"
|
||||||
|
@ -773,7 +774,7 @@ function this.OnRoundChanged(round)
|
||||||
this.roundText.text = string.format(Language[10211], curRound, maxRound)
|
this.roundText.text = string.format(Language[10211], curRound, maxRound)
|
||||||
|
|
||||||
-- 设置跳过按钮的状态
|
-- 设置跳过按钮的状态
|
||||||
-- this.SetJumpBtnState()
|
this.SetJumpBtnState()
|
||||||
end
|
end
|
||||||
-- 角色轮转回调
|
-- 角色轮转回调
|
||||||
function this.RoleTurnChange(role)
|
function this.RoleTurnChange(role)
|
||||||
|
|
Loading…
Reference in New Issue