From d3a72367bcac1f803c653e12efd4e929b30dc4e6 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Mon, 22 Apr 2024 16:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=B4=E8=AF=9D=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=86=99=E9=94=99=E4=BD=8D=E7=BD=AE=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=BF=83=E6=83=85=E6=89=A3=E5=81=A5=E5=BA=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/MainWindow.cs | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index 4119d28..2b06f36 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -1481,44 +1481,24 @@ namespace VPet_Simulator.Windows foreach (var selet in SelectTexts) { selet.Exp = Math.Max(Math.Min(selet.Exp, 1000), -1000); - //food.Exp += selet.Exp; - selet.Feeling = Math.Max(Math.Min(selet.Feeling, 1000), -1000); - //food.Feeling += selet.Feeling; - selet.Health = Math.Max(Math.Min(selet.Feeling, 100), -100); - //food.Health += selet.Health; + selet.Feeling = Math.Max(Math.Min(selet.Feeling, 100), -100); + selet.Health = Math.Max(Math.Min(selet.Health, 100), -100); selet.Likability = Math.Max(Math.Min(selet.Likability, 50), -50); - //food.Likability += selet.Likability; selet.Money = Math.Max(Math.Min(selet.Money, 1000), -1000); - //food.Price -= selet.Money; selet.Strength = Math.Max(Math.Min(selet.Strength, 1000), -1000); - //food.Strength += selet.Strength; selet.StrengthDrink = Math.Max(Math.Min(selet.StrengthDrink, 1000), -1000); - //food.StrengthDrink += selet.StrengthDrink; selet.StrengthFood = Math.Max(Math.Min(selet.StrengthFood, 1000), -1000); - //food.StrengthFood += selet.StrengthFood; } - //if (food.IsOverLoad()) - //{ - // MessageBox.Show(food.RealPrice.ToString()); - //} foreach (var selet in ClickTexts) { selet.Exp = Math.Max(Math.Min(selet.Exp, 1000), -1000); - //food.Exp += selet.Exp; selet.Feeling = Math.Max(Math.Min(selet.Feeling, 1000), -1000); - //food.Feeling += selet.Feeling; - selet.Health = Math.Max(Math.Min(selet.Feeling, 100), -100); - //food.Health += selet.Health; + selet.Health = Math.Max(Math.Min(selet.Health, 100), -100); selet.Likability = Math.Max(Math.Min(selet.Likability, 50), -50); - //food.Likability += selet.Likability; selet.Money = Math.Max(Math.Min(selet.Money, 1000), -1000); - //food.Price -= selet.Money; selet.Strength = Math.Max(Math.Min(selet.Strength, 1000), -1000); - //food.Strength += selet.Strength; selet.StrengthDrink = Math.Max(Math.Min(selet.StrengthDrink, 1000), -1000); - //food.StrengthDrink += selet.StrengthDrink; selet.StrengthFood = Math.Max(Math.Min(selet.StrengthFood, 1000), -1000); - //food.StrengthFood += selet.StrengthFood; } }