diff --git a/VPet-Simulator.Core/Graph/FoodAnimation.cs b/VPet-Simulator.Core/Graph/FoodAnimation.cs index 35c2685..e97af9b 100644 --- a/VPet-Simulator.Core/Graph/FoodAnimation.cs +++ b/VPet-Simulator.Core/Graph/FoodAnimation.cs @@ -284,10 +284,8 @@ namespace VPet_Simulator.Core var t1 = FL?.Run(FoodGrid.Front); var t2 = BL?.Run(FoodGrid.Back); FoodGrid.Food.Source = image; - if (t1 != null) - t1.Start(); - if (t2 != null) - t2.Start(); + t1?.Start(); + t2?.Start(); Task.Run(() => Animations[0].Run(FoodGrid.Food, EndAction)); }); } diff --git a/VPet-Simulator.Windows.Interface/Setting.cs b/VPet-Simulator.Windows.Interface/Setting.cs index 06fcf25..7b21382 100644 --- a/VPet-Simulator.Windows.Interface/Setting.cs +++ b/VPet-Simulator.Windows.Interface/Setting.cs @@ -135,7 +135,7 @@ namespace VPet_Simulator.Windows.Interface /// public int AutoSaveInterval { - get => Math.Max(GetInt("autosave", 20), 0); + get => Math.Max(GetInt("autosave", 10), -1); set => SetInt("autosave", value); } /// @@ -143,7 +143,7 @@ namespace VPet_Simulator.Windows.Interface /// public int BackupSaveMaxNum { - get => Math.Max(GetInt("bakupsave", 20), 1); + get => Math.Max(GetInt("bakupsave", 30), 1); set => SetInt("bakupsave", value); } /// diff --git a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml index 6f4fec0..015f0f3 100644 --- a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml +++ b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml @@ -239,6 +239,11 @@ -1 + + + 2 + + 5