From 152477572cb63cfd0dee9fd5c5fd1ea138263c75 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sun, 4 Feb 2024 14:20:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=9C=80=E5=A4=A7=E7=AD=89?= =?UTF-8?q?=E7=BA=A7=E9=99=90=E5=88=B6&=E6=95=B0=E6=8D=AE=E6=BA=A2?= =?UTF-8?q?=E5=87=BA=E8=A1=A5=E5=81=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows.Interface/ExtensionFunction.cs | 2 ++ VPet-Simulator.Windows.Interface/GameSave_v2.cs | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/VPet-Simulator.Windows.Interface/ExtensionFunction.cs b/VPet-Simulator.Windows.Interface/ExtensionFunction.cs index 29370d0..df19ca5 100644 --- a/VPet-Simulator.Windows.Interface/ExtensionFunction.cs +++ b/VPet-Simulator.Windows.Interface/ExtensionFunction.cs @@ -52,6 +52,8 @@ namespace VPet_Simulator.Windows.Interface /// 是否超模 public static bool IsOverLoad(this Work work) {//判断这个工作是否超模 + if (work.LevelLimit > 1000) + return true; if (work.FinishBonus < 0) return true; var spend = work.Spend(); diff --git a/VPet-Simulator.Windows.Interface/GameSave_v2.cs b/VPet-Simulator.Windows.Interface/GameSave_v2.cs index 480d0aa..7fafcf2 100644 --- a/VPet-Simulator.Windows.Interface/GameSave_v2.cs +++ b/VPet-Simulator.Windows.Interface/GameSave_v2.cs @@ -43,6 +43,14 @@ namespace VPet_Simulator.Windows.Interface if (vpet != null) { GameSave = GameSave.Load(vpet); + if (GameSave.Exp < -1000000000) + { + GameSave.Exp = 100000; + } + if (GameSave.Money < -1000000000) + { + GameSave.Money = 100000; + } hash = vpet.GetInt64("hash"); if (vpet.Remove("hash")) {