From 39001a600fcae2bcf27c225df8752d75fb92fef4 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 31 十月 2025 11:18:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/Config/PartialConfigs/HeroAwakeConfig.cs | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/Main/Config/PartialConfigs/HeroAwakeConfig.cs b/Main/Config/PartialConfigs/HeroAwakeConfig.cs
index 4d2d182..f93655e 100644
--- a/Main/Config/PartialConfigs/HeroAwakeConfig.cs
+++ b/Main/Config/PartialConfigs/HeroAwakeConfig.cs
@@ -46,9 +46,10 @@
public static bool CanAwake(int heroID, int awakeLv)
{
- return GetHeroAwakeConfig(heroID, awakeLv) == null;
+ return GetHeroAwakeConfig(heroID, awakeLv) != null;
}
+ //瑙i攣鎸囧畾澶╄祴妲戒綅闇�瑕佺殑瑙夐啋绛夌骇
public static int GetAwakeLVByUnLockGiftIndex(int heroID, int index)
{
Dictionary<int, HeroAwakeConfig> tempDic = null;
@@ -63,7 +64,18 @@
{
return item.Key;
}
- }
+ }
return 0;
}
+
+
+ public static int GetMaxAwakeLV(int heroID)
+ {
+ Dictionary<int, HeroAwakeConfig> tempDic = null;
+ if (!configDics.TryGetValue(heroID, out tempDic))
+ {
+ return 0;
+ }
+ return tempDic.Count;
+ }
}
--
Gitblit v1.8.0