吃完东西后重新计算下 fix#351

This commit is contained in:
ZouJin 2024-04-15 14:06:05 +08:00
parent 20d00d16ce
commit b4a8ab915e
2 changed files with 12 additions and 4 deletions

View File

@ -629,8 +629,8 @@ namespace VPet_Simulator.Windows
item.NotifyOfPropertyChange("Description");
Core.Save.Money -= item.Price;
//吃完东西记得计算下状态
Core.Save.Mode = Core.Save.CalMode();
////吃完东西记得计算下状态
//Core.Save.Mode = Core.Save.CalMode();
//统计
GameSavesData.Statistics[(gint)"stat_buytimes"]++;
GameSavesData.Statistics[(gint)("buy_" + item.Name)]++;
@ -2103,10 +2103,18 @@ namespace VPet_Simulator.Windows
Main.Display(graphName, imageSource, () =>
{
showeatanm = true;
Main.DisplayToNomal();
Main.EventTimer_Elapsed();
Main.DisplayToNomal();
});
}
else
{//如果不显示动画, 则看看是不是有覆盖
if (Main.DisplayType.Animat != AnimatType.Single && Main.DisplayType.Name != graphName)
{
showeatanm = true;
}
Main.EventTimer_Elapsed();
}
}

View File

@ -18,7 +18,7 @@ public partial class MainWindow
/// <summary>
/// 版本号
/// </summary>
public int version { get; } = 11005;
public int version { get; } = 11006;
/// <summary>
/// 版本号
/// </summary>