From 6bcbcf0494eceb60e2754c966d66bd531c5be2a9 Mon Sep 17 00:00:00 2001 From: yyl <yyl> Date: 星期二, 30 九月 2025 18:13:25 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts --- Main/System/HeroUI/HeroUIManager.cs | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Main/System/HeroUI/HeroUIManager.cs b/Main/System/HeroUI/HeroUIManager.cs index b0f8634..0380453 100644 --- a/Main/System/HeroUI/HeroUIManager.cs +++ b/Main/System/HeroUI/HeroUIManager.cs @@ -163,21 +163,22 @@ return hero.heroLevel >= GetMaxLV(hero.Quality); } - //绐佺牬闄愬埗鐨勬渶楂樼瓑绾�; 瀛樺湪绐佺牬绛夌骇鍙兘鏇村鐨勬儏鍐碉紝涓嶄竴瀹氭彁渚涚瓑绾т笂闄� + //绐佺牬闄愬埗鐨勬渶楂樼瓑绾�; 濡傛灉瀛樺湪绐佺牬绛夌骇鍚庝笉鑳藉啀鍗囩骇鏄瓥鍒掗厤缃棶棰� public int GetMaxLVByBreakLV(int quality, int breakLevel) { - for (int i = breakLevel; i >= 0; i--) - { - var config = HeroQualityBreakConfig.GetQualityBreakConfig(quality, i); - if (config == null) - { - continue; - } - return config.LVMax; - } - return 0; + // for (int i = breakLevel; i >= 0; i--) + // { + // var config = HeroQualityBreakConfig.GetQualityBreakConfig(quality, i); + // if (config == null) + // { + // continue; + // } + // return config.LVMax; + // } + return HeroQualityBreakConfig.GetQualityBreakConfig(quality, breakLevel).LVMax; } + //鏄惁杈惧埌鍥犵獊鐮撮檺鍒剁殑鏈�楂樼骇 public bool IsLVMaxByBreakLevel(HeroInfo hero) { return hero.heroLevel == GetMaxLVByBreakLV(hero.Quality, hero.breakLevel); @@ -416,6 +417,7 @@ { return 3; } + return 0; } } -- Gitblit v1.8.0