mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
等级显示更宽裕
This commit is contained in:
parent
5858fd0bbb
commit
ce79550af9
@ -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;
|
||||
|
@ -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就是超模
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user