|
@@ -60,12 +60,12 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
|
|
|
widgets.Clear();
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
HeroPowerUpConfig[] heroPowerUpConfigs = ConfigComponent.Instance.GetAll<HeroPowerUpConfig>().ToList()
|
|
|
.Where(hpc =>
|
|
|
hpc.jingjie1 == PlayerManager.Instance.myHero.powerUpConfig.jingjie1 &&
|
|
|
- hpc.jingjie1 == PlayerManager.Instance.myHero.powerUpConfig.jingjie2).ToArray();
|
|
|
+ hpc.jingjie2 == PlayerManager.Instance.myHero.powerUpConfig.jingjie2).ToArray();
|
|
|
|
|
|
int allexp = 0;
|
|
|
foreach (var heroPowerUpConfig in heroPowerUpConfigs)
|
|
@@ -73,13 +73,18 @@ namespace Fort23.Mono
|
|
|
allexp += heroPowerUpConfig.levelUpExp;
|
|
|
}
|
|
|
|
|
|
- int bl = (PlayerManager.Instance.myHero.exp.Value / allexp) * 100;
|
|
|
+ int currentMiao = (int)((TimeHelper.ClientNow() - PlayerManager.Instance.myHero.heroData.upTime) / 1000);
|
|
|
+
|
|
|
+ float heroAllexp = currentMiao * PlayerManager.Instance.myHero.powerUpConfig.AutoXiuwei;
|
|
|
+ heroAllexp = PlayerManager.Instance.myHero.heroData.exp + heroAllexp;
|
|
|
+
|
|
|
+
|
|
|
+ int bl = (int)((heroAllexp / allexp) * 100);
|
|
|
|
|
|
Text_JingJie.text =
|
|
|
LanguageManager.Instance.Text(PlayerManager.Instance.myHero.powerUpConfig.jingjieLanIDs[0]) +
|
|
|
LanguageManager.Instance.Text(PlayerManager.Instance.myHero.powerUpConfig.jingjieLanIDs[1]) + " " +
|
|
|
bl + "%";
|
|
|
-
|
|
|
|
|
|
|
|
|
Slider_Exp.maxValue = PlayerManager.Instance.myHero.powerUpConfig.levelUpExp;
|