少年修仙传客户端代码仓库
client_linchunjie
2019-07-02 7518ef41db22240c1ce648c1e2ccc4a935b58e89
7726 子 【2.0.200】【开发】修为池红点优化 / 【2.0.200】【前端】修为池红点优化
3个文件已修改
29 ■■■■■ 已修改文件
System/DailyQuest/DayRemind.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmModel.cs 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmWin.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/DailyQuest/DayRemind.cs
@@ -53,6 +53,7 @@
    public const string EQUIPSTRENGTH_REDPOINT = "EquipStrength_Redpoint";
    public const string SHIFTEQUIPREMIND1 = "ShiftEquipRemind1";
    public const string SHIFTEQUIPREMIND2 = "ShiftEquipRemind2";
    public const string DAILYREALMREDPOINT = "DailyRealmRedpoint";
    public Dictionary<string, int[]> dayRemindDic = new Dictionary<string, int[]>();
@@ -115,6 +116,7 @@
        SetDayRemind(EQUIPSTRENGTH_REDPOINT);
        SetDayRemind(SHIFTEQUIPREMIND1);
        SetDayRemind(SHIFTEQUIPREMIND2);
        SetDayRemind(DAILYREALMREDPOINT);
    }
    public void SetDayRemind(string _key)
System/Realm/RealmModel.cs
@@ -76,6 +76,8 @@
        public DateTime expStartTime { get; private set; }
        int realmPoolRedpointPercent = 100;
        UIEffect realmEffect;
        int realmEffectCount = 0;
@@ -84,6 +86,7 @@
        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
@@ -276,6 +279,7 @@
            funcConfig = FuncConfigConfig.Get("RealmEqiupDisplayLevel");
            realmEquipDisplayLevel = int.Parse(funcConfig.Numerical1);
            realmPoolRedpointPercent = int.Parse(funcConfig.Numerical2);
            funcConfig = FuncConfigConfig.Get("LVUPAddPoint");
            realmLevelUpReikiPoint = int.Parse(funcConfig.Numerical3);
@@ -741,10 +745,20 @@
            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))
            {
@@ -763,10 +777,19 @@
                        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();
        }
@@ -780,7 +803,7 @@
                if (realmLevel >= realmPoolOpenLevel)
                {
                    var config = RealmConfig.Get(PlayerDatas.Instance.baseData.realmLevel);
                    if (totalExp >= config.expLimit)
                    if (totalExp >= config.expLimit * (realmPoolRedpointPercent / 100f))
                    {
                        isPoolFull = true;
                    }
System/Realm/RealmWin.cs
@@ -109,6 +109,8 @@
            cacheRealmLevel = PlayerDatas.Instance.baseData.realmLevel;
            cacheFightPower = PlayerDatas.Instance.baseData.FightPoint;
            customUpPower = 0;
            model.SetDayRemind();
        }
        protected override void OnActived()