From 8cb28d52d34d241cafd10c54f40af32a852f1d05 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Fri, 22 Mar 2024 15:35:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AA=81=E7=A0=B4:=E4=BD=93=E5=8A=9B/=E5=BF=83?= =?UTF-8?q?=E6=83=85=E4=B8=8A=E9=99=90=E4=BC=9A=E6=AF=94=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows.Interface/GameSave_VPet.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VPet-Simulator.Windows.Interface/GameSave_VPet.cs b/VPet-Simulator.Windows.Interface/GameSave_VPet.cs index c8c3ffc..df64074 100644 --- a/VPet-Simulator.Windows.Interface/GameSave_VPet.cs +++ b/VPet-Simulator.Windows.Interface/GameSave_VPet.cs @@ -72,7 +72,7 @@ public class GameSave_VPet : IGameSave /// public double Strength { get => strength; set => strength = Math.Min(StrengthMax, Math.Max(0, value)); } - public double StrengthMax => 100 + (int)Math.Sqrt(Level) * 4; + public double StrengthMax => 100 + (int)(Math.Pow(Level * (1 + LevelMax), 0.75) * 4); [Line(Type = LPSConvert.ConvertType.ToFloat, IgnoreCase = true)] protected double strength { get; set; } @@ -296,7 +296,7 @@ public class GameSave_VPet : IGameSave [Line] public double LikabilityMax { get; set; } = 100; - public double FeelingMax => 100 + (int)Math.Sqrt(Level) * 2; + public double FeelingMax => 100 + (int)(Math.Pow(Level * (1 + LevelMax), 0.75) * 2); /// /// 经验值加成 TODO ///