From 54441c9c32fac1075f6c943beeac5182193daca1 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Wed, 17 Apr 2024 14:58:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E8=87=AA=E5=8A=A8=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0=E5=90=83=E7=A8=8D=E5=BE=AE=E6=8E=89=E7=82=B9=E5=81=A5?= =?UTF-8?q?=E5=BA=B7=E7=9A=84=E9=A3=9F=E7=89=A9=20#356?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/MainWindow.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index 4ef6698..43593ba 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -434,7 +434,7 @@ namespace VPet_Simulator.Windows if (Set.AutoBuy && Core.Save.Money >= 100) { var havemoney = Core.Save.Money * 0.8; - List food = Foods.FindAll(x => x.Price >= 2 && x.Health >= 0 && x.Exp >= 0 && x.Likability >= 0 && x.Price < havemoney //桌宠不吃负面的食物 + List food = Foods.FindAll(x => x.Price >= 2 && x.Health >= -5 && x.Exp >= -10 && x.Likability >= 0 && x.Price < havemoney //桌宠不吃负面的食物 && !x.IsOverLoad() // 不吃超模食物 ); @@ -620,7 +620,7 @@ namespace VPet_Simulator.Windows eattimes = (eattime - now).TotalHours; } //开始加点 - Core.Save.EatFood(item, Math.Max(0.5, 1 - Math.Pow(eattimes, 2) * 0.01)); + Core.Save.EatFood(item, Math.Max(0.5, 1 - eattimes * eattimes * 0.01)); //吃腻了 eattimes += 2; GameSavesData["buytime"].SetDateTime(item.Name, now.AddHours(eattimes));