少年修仙传客户端代码仓库
client_linchunjie
2018-09-08 5f3643d8843358226c28eed7227bbabf705c990c
3318 开服限时活动定制——仙盟联赛
1个文件已修改
24 ■■■■ 已修改文件
System/FairyAu/FairyLeagueModel.cs 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FairyAu/FairyLeagueModel.cs
@@ -259,6 +259,7 @@
                    fairyLeagueWeekTime.AddStage(configs[i]);
                }
            }
            fairyLeagueWeekTime.Sort();
            var specialStateTimes = DungeonSpecialStateTimeConfig.GetDungeonTimes(FAIRY_LEAGUE_DUNGEON);
            for (int i = 0; i < specialStateTimes.Count; i++)
            {
@@ -280,6 +281,13 @@
                        dict.Add(index, leagueTime);
                    }
                    leagueTime.AddStage(specialConfig, dayOfWeek);
                }
            }
            foreach (var dict in specialLeagueTimes.Values)
            {
                foreach (var leagueTime in dict.Values)
                {
                    leagueTime.Sort();
                }
            }
            cfg = Config.Instance.Get<FuncConfigConfig>("FamilyMatchResourcePoint");
@@ -1175,6 +1183,16 @@
            public void Sort()
            {
                var fightStage = stages.Find((x) =>
                {
                    return x.stage == FairyLeagueStage.Fight;
                });
                var overStage = stages.Find((x) =>
                {
                    return x.stage == FairyLeagueStage.Over;
                });
                overStage.startHour = fightStage.endHour;
                overStage.startMinute = fightStage.endMinute;
                stages.Sort(Compare);
            }
@@ -1271,7 +1289,7 @@
            }
        }
        public struct Stage
        public class Stage
        {
            public FairyLeagueStage stage;
            public int dayOfWeek;
@@ -1295,7 +1313,7 @@
                {
                    return false;
                }
                if (time.Hour == endHour && time.Minute > endMinute)
                if (time.Hour == endHour && time.Minute >= endMinute)
                {
                    return false;
                }
@@ -1315,7 +1333,7 @@
                    {
                        return true;
                    }
                    if (time.Hour == endHour && time.Minute > endMinute)
                    if (time.Hour == endHour && time.Minute >= endMinute)
                    {
                        return true;
                    }