From c124d98bdf9659cf764bebb799bee42c30eb152f Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 17 十月 2025 11:19:21 +0800
Subject: [PATCH] 125 战斗 战场开关接口
---
Main/System/HeroUI/HeroUIManager.Awake.cs | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/Main/System/HeroUI/HeroUIManager.Awake.cs b/Main/System/HeroUI/HeroUIManager.Awake.cs
index 733cde1..2cbfe02 100644
--- a/Main/System/HeroUI/HeroUIManager.Awake.cs
+++ b/Main/System/HeroUI/HeroUIManager.Awake.cs
@@ -12,5 +12,31 @@
public List<int> heroBeforeAwakeGiftIDList = new List<int>(); //浼氭湁閲嶅鐨処D锛屼笉瑕佺敤瀛楀吀
public List<int> heroBeforeAwakeGiftLevelList = new List<int>();
+
+ //杈惧埌X鏄熼渶瑕佺殑瑙夐啋绛夌骇
+ public int GetAwakeLVByStarLV(int heroID, int starLV)
+ {
+ var config = HeroConfig.Get(heroID);
+ var starCnt = HeroQualityConfig.Get(config.Quality).InitStarUpper;
+ if (starLV <= starCnt)
+ return 0;
+
+ Dictionary<int, HeroAwakeConfig> tempDic = null;
+ if (!HeroAwakeConfig.configDics.TryGetValue(heroID, out tempDic))
+ {
+ return 0;
+ }
+ foreach (var item in tempDic)
+ {
+ starCnt += item.Value.AddStarUpper;
+ if (starCnt >= starLV)
+ {
+ return item.Key;
+ }
+ }
+ return 0;
+ }
+
+
}
--
Gitblit v1.8.0