等级显示更宽裕

This commit is contained in:
ZouJin 2023-09-13 18:06:43 +08:00
parent 5858fd0bbb
commit ce79550af9
2 changed files with 16 additions and 3 deletions

View File

@ -196,15 +196,28 @@ namespace VPet_Simulator.Core
till.Visibility = Visibility.Collapsed;
tfun.Visibility = Visibility.Visible;
}
pExp.Maximum = m.Core.Save.LevelUpNeed();
var max = m.Core.Save.LevelUpNeed();
if (max > pExp.Minimum)
{
pExp.Maximum = max;
}
if (m.Core.Save.Exp < 0)
{
pExp.Minimum = m.Core.Save.Exp;
}
else
{
pExp.Minimum = 0;
var bl = m.Core.Save.Level - 2;
if (bl <= 0)
pExp.Minimum = 0;
else
pExp.Minimum = (int)(Math.Pow((bl) * 10, 2));
}
if (max < pExp.Minimum)
{
pExp.Maximum = max;
}
pExp.Value = m.Core.Save.Exp;
pStrength.Value = m.Core.Save.Strength;

View File

@ -32,7 +32,7 @@ namespace VPet_Simulator.Windows.Interface
var rel = get / spend;
if (rel < 0)
return true;
if (Math.Abs(get) > (work.LevelLimit + 4) * 5) //等级获取速率限制
if (Math.Abs(get) > (work.LevelLimit + 4) * 6) //等级获取速率限制
return true;
return rel > 2; // 推荐rel为1.0-1.4之间 超过2.0就是超模
}