| | |
| | |
|
| | | public DateTime expStartTime { get; private set; }
|
| | |
|
| | | int realmPoolRedpointPercent = 100;
|
| | |
|
| | | UIEffect realmEffect;
|
| | | int realmEffectCount = 0;
|
| | |
|
| | |
| | | public readonly Redpoint levelUpRedpoint = new Redpoint(114, 11401);
|
| | | public readonly Redpoint challengeRedpoint = new Redpoint(114, 11402);
|
| | | public readonly Redpoint realmPoolRedpoint = new Redpoint(114, 11403);
|
| | | public readonly Redpoint realmDailyRedpoint = new Redpoint(114, 11404);
|
| | |
|
| | | int m_SelectRealm = 0;
|
| | | public int selectRealm
|
| | |
| | |
|
| | | funcConfig = FuncConfigConfig.Get("RealmEqiupDisplayLevel");
|
| | | realmEquipDisplayLevel = int.Parse(funcConfig.Numerical1);
|
| | | realmPoolRedpointPercent = int.Parse(funcConfig.Numerical2);
|
| | |
|
| | | funcConfig = FuncConfigConfig.Get("LVUPAddPoint");
|
| | | realmLevelUpReikiPoint = int.Parse(funcConfig.Numerical3);
|
| | |
| | | WindowCenter.Instance.Open<RealmTransitionWin>();
|
| | | }
|
| | |
|
| | | public void SetDayRemind()
|
| | | {
|
| | | if (realmDailyRedpoint.state == RedPointState.Simple)
|
| | | {
|
| | | DayRemind.Instance.SetDayRemind(DayRemind.DAILYREALMREDPOINT, true);
|
| | | RefreshRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | | void RefreshRedpoint()
|
| | | {
|
| | | var levelUpable = false;
|
| | | var challengeable = false;
|
| | | var dailyRedpointable = false;
|
| | |
|
| | | if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Realm))
|
| | | {
|
| | |
| | | levelUpable = true;
|
| | | }
|
| | | }
|
| | |
|
| | | if (realmLevel >= realmPoolOpenLevel)
|
| | | {
|
| | | if (!DayRemind.Instance.GetDayRemind(DayRemind.DAILYREALMREDPOINT))
|
| | | {
|
| | | dailyRedpointable = true;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | levelUpRedpoint.state = levelUpable ? RedPointState.Simple : RedPointState.None;
|
| | | challengeRedpoint.state = challengeable ? RedPointState.Simple : RedPointState.None;
|
| | | realmDailyRedpoint.state = dailyRedpointable ? RedPointState.Simple : RedPointState.None;
|
| | |
|
| | | RefreshRealmPoolRedpoint();
|
| | | }
|
| | |
| | | if (realmLevel >= realmPoolOpenLevel)
|
| | | {
|
| | | var config = RealmConfig.Get(PlayerDatas.Instance.baseData.realmLevel);
|
| | | if (totalExp >= config.expLimit)
|
| | | if (totalExp >= config.expLimit * (realmPoolRedpointPercent / 100f))
|
| | | {
|
| | | isPoolFull = true;
|
| | | }
|