| | |
| | | public bool IsPass() |
| | | { |
| | | if (null == battleField) |
| | | return false; |
| | | return true; |
| | | // 检查是否为永久特权卡玩家 |
| | | bool hasForeverPrivilege = InvestModel.Instance.IsInvested(InvestModel.foreverCardType); |
| | | |
| | | if (!hasForeverPrivilege && !FuncOpen.Instance.IsFuncOpen(BattleManager.Instance.passFuncId, true)) |
| | | string battleFieldName = battleField.ToString(); |
| | | if (!hasForeverPrivilege && !FuncOpen.Instance.IsFuncOpen(BattleManager.Instance.passFuncId)) |
| | | { |
| | | if (battleFieldName != BattleConst.StoryBossBattleField) |
| | | { |
| | | //等级达到20级后解锁或开通终身特权解锁 |
| | | SysNotifyMgr.Instance.ShowTip("BattlePass2"); |
| | | } |
| | | else |
| | | { |
| | | FuncOpen.Instance.ProcessorFuncErrorTip(BattleManager.Instance.passFuncId); |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | int passRound = BattleManager.Instance.defaultPassRound; |
| | | var name = battleField.ToString(); |
| | |
| | | int realPassRound = passRound + 1; // 配置是超过x回合可以跳,意味着x+1回合可以跳 |
| | | if (nowRound < realPassRound) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("BattlePass", realPassRound - nowRound); |
| | | if (battleFieldName != BattleConst.StoryBossBattleField) |
| | | { |
| | | //%s0回合后可跳过,开通终身特权立即跳过 |
| | | SysNotifyMgr.Instance.ShowTip("BattlePass1", realPassRound - nowRound); |
| | | } |
| | | else |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("BattlePass", realPassRound - nowRound); |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | } |