From 5858fd0bbbb6d1c2e4383f5ad5d796e4dfae6bcd Mon Sep 17 00:00:00 2001 From: ZouJin Date: Wed, 13 Sep 2023 17:29:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=AD=89=E7=BA=A7=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=80=9F=E7=8E=87=E9=99=90=E5=88=B6?= 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/MainWindow.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VPet-Simulator.Windows.Interface/ExtensionFunction.cs b/VPet-Simulator.Windows.Interface/ExtensionFunction.cs index 5804b69..d43193c 100644 --- a/VPet-Simulator.Windows.Interface/ExtensionFunction.cs +++ b/VPet-Simulator.Windows.Interface/ExtensionFunction.cs @@ -32,6 +32,8 @@ namespace VPet_Simulator.Windows.Interface var rel = get / spend; if (rel < 0) return true; + if (Math.Abs(get) > (work.LevelLimit + 4) * 5) //等级获取速率限制 + return true; return rel > 2; // 推荐rel为1.0-1.4之间 超过2.0就是超模 } } diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index 430f71a..5ac8eb7 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -315,7 +315,7 @@ namespace VPet_Simulator.Windows TakeItem(item); Main.Display(item.GetGraph(), item.ImageSource, Main.DisplayToNomal); } - else if (Core.Save.Feeling < 50) + else if (Set.AutoGift && Core.Save.Feeling < 50) { food = food.FindAll(x => x.Type == Food.FoodType.Gift && x.Feeling > 10); if (food.Count == 0)