| Main/Config/PartialConfigs/ActHeroAppearStarConfig.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Main/System/HeroDebut/HeroDebutManager.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Main/Config/PartialConfigs/ActHeroAppearStarConfig.cs
@@ -31,7 +31,34 @@ { LoadSortList(); sortDict.TryGetValue(starTempID, out var list); return list; List<int> res = new List<int>(); int heroId = HeroDebutManager.Instance.GetCurrentDisplayStarUpHeroId(); int nowStar = HeroDebutManager.Instance.GetNowHeroMaxStarCnt(heroId); for (int i = HeroDebutManager.Instance.seeArr.Length - 1; i >= 0; i--) { int[] info = HeroDebutManager.Instance.seeArr[i]; int needStar = info[0]; int seeStar = info[1]; if (nowStar >= needStar) { for (int j = 0; j < seeStar; j++) { if (j >= list.Count) continue; var config = GetConfig(starTempID, list[j]); if (config == null) continue; int tempStar = config.NeedStar; if (tempStar > seeStar) continue; res.Add(list[j]); } return res; } } return null; } public static Dictionary<int, int> GetAwardIndexDict(int starTempID) Main/System/HeroDebut/HeroDebutManager.cs
@@ -8,6 +8,7 @@ { public int[] xbGridArr; public Dictionary<int, int[][]> heroQaulityColor; public int[][] seeArr; public override void Init() { DTC0102_tagCDBPlayer.beforePlayerDataInitializeEventOnRelogin += OnBeforePlayerDataInitializeEventOnRelogin; @@ -26,6 +27,7 @@ var config = FuncConfigConfig.Get("HeroAppear"); xbGridArr = JsonMapper.ToObject<int[]>(config.Numerical1); heroQaulityColor = ConfigParse.ParseIntArray2Dict(config.Numerical2); seeArr = JsonMapper.ToObject<int[][]>(config.Numerical3); InitRedPointId(); }