From 07936570f53912158e5a9807609dea7370bb91c4 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Tue, 12 Sep 2023 13:15:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E6=A8=A1=E5=B7=A5=E4=BD=9C=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E6=94=AF=E6=8C=81=E8=B4=9F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows.Interface/ExtensionFunction.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VPet-Simulator.Windows.Interface/ExtensionFunction.cs b/VPet-Simulator.Windows.Interface/ExtensionFunction.cs index 7a44448..5804b69 100644 --- a/VPet-Simulator.Windows.Interface/ExtensionFunction.cs +++ b/VPet-Simulator.Windows.Interface/ExtensionFunction.cs @@ -23,15 +23,15 @@ namespace VPet_Simulator.Windows.Interface var spend = ((work.StrengthFood >= 0 ? 1 : -1) * Math.Pow(work.StrengthFood * 2 + 1, 2) / 6 + (work.StrengthDrink >= 0 ? 1 : -1) * Math.Pow(work.StrengthDrink * 2 + 1, 2) / 9 + (work.Feeling >= 0 ? 1 : -1) * Math.Pow((work.Type == Work.WorkType.Play ? -1 : 1) * work.Feeling * 2 + 1, 2) / 12) * - (Math.Pow(work.LevelLimit / 2 + 1, 0.5) / 4 + 1) - 0.5; - if (spend <= 0) - return true; + (Math.Pow(work.LevelLimit / 2 + 1, 0.5) / 4 + 1) - 0.5; var get = (work.MoneyBase + work.MoneyLevel * 10) * (work.MoneyLevel + 1) * (1 + work.FinishBonus / 2); if (work.Type != Work.WorkType.Work) { get /= 12;//经验值换算 } var rel = get / spend; + if (rel < 0) + return true; return rel > 2; // 推荐rel为1.0-1.4之间 超过2.0就是超模 } }