From 2ae8314154cd6cc0fdbb00d89d1fd83b601850a9 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Mon, 24 Jul 2023 11:53:55 +1000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=9A=90=E8=97=8F=E5=80=BC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Core/Display/ToolBar.xaml | 23 ++++++++++++++------- VPet-Simulator.Core/Display/ToolBar.xaml.cs | 4 ++++ VPet-Simulator.Core/Handle/GameSave.cs | 2 +- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/VPet-Simulator.Core/Display/ToolBar.xaml b/VPet-Simulator.Core/Display/ToolBar.xaml index e60192e..0c17820 100644 --- a/VPet-Simulator.Core/Display/ToolBar.xaml +++ b/VPet-Simulator.Core/Display/ToolBar.xaml @@ -15,9 +15,9 @@ + TextElement.FontSize="24" BorderBrush="{DynamicResource DARKPrimaryDarker}" BorderThickness="1" + Background="{DynamicResource DARKPrimaryText}" CornerRadius="5" MouseLeave="MenuPanel_MouseLeave" + x:FieldModifier="public" Visibility="Collapsed"> @@ -79,19 +79,28 @@ + + pu:ProgressBarHelper.GeneratingPercentText="PgbHunger_GeneratingPercentText" + Background="{x:Null}" /> + + + pu:ProgressBarHelper.GeneratingPercentText="PgbThirsty_GeneratingPercentText" + Background="{x:Null}" /> @@ -113,8 +122,8 @@ - + 1) tStrength.Text = $"{m.Core.Save.ChangeStrength:f1}/t"; else @@ -187,6 +190,7 @@ namespace VPet_Simulator.Core tStrengthFood.Text = $"{m.Core.Save.ChangeStrengthFood:f1}/t"; else tStrengthFood.Text = $"{m.Core.Save.ChangeStrengthFood:f2}/t"; + } } diff --git a/VPet-Simulator.Core/Handle/GameSave.cs b/VPet-Simulator.Core/Handle/GameSave.cs index e67d9b6..b0c0cbd 100644 --- a/VPet-Simulator.Core/Handle/GameSave.cs +++ b/VPet-Simulator.Core/Handle/GameSave.cs @@ -282,7 +282,7 @@ namespace VPet_Simulator.Core /// public ModeType CalMode() { - int realhel = 60 - (Feeling >= 80 ? 20 : 0) - (Likability >= 80 ? 20 : (Likability >= 40 ? 10 : 0)); + int realhel = 60 - (Feeling >= 80 ? 12 : 0) - (Likability >= 80 ? 12 : (Likability >= 40 ? 6 : 0)); //先从最次的开始 if (Health <= realhel) {