mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
吃完东西后重新计算下 fix#351
This commit is contained in:
parent
20d00d16ce
commit
b4a8ab915e
@ -629,8 +629,8 @@ namespace VPet_Simulator.Windows
|
|||||||
item.NotifyOfPropertyChange("Description");
|
item.NotifyOfPropertyChange("Description");
|
||||||
|
|
||||||
Core.Save.Money -= item.Price;
|
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)"stat_buytimes"]++;
|
||||||
GameSavesData.Statistics[(gint)("buy_" + item.Name)]++;
|
GameSavesData.Statistics[(gint)("buy_" + item.Name)]++;
|
||||||
@ -2103,10 +2103,18 @@ namespace VPet_Simulator.Windows
|
|||||||
Main.Display(graphName, imageSource, () =>
|
Main.Display(graphName, imageSource, () =>
|
||||||
{
|
{
|
||||||
showeatanm = true;
|
showeatanm = true;
|
||||||
Main.DisplayToNomal();
|
|
||||||
Main.EventTimer_Elapsed();
|
Main.EventTimer_Elapsed();
|
||||||
|
Main.DisplayToNomal();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{//如果不显示动画, 则看看是不是有覆盖
|
||||||
|
if (Main.DisplayType.Animat != AnimatType.Single && Main.DisplayType.Name != graphName)
|
||||||
|
{
|
||||||
|
showeatanm = true;
|
||||||
|
}
|
||||||
|
Main.EventTimer_Elapsed();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ public partial class MainWindow
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 版本号
|
/// 版本号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int version { get; } = 11005;
|
public int version { get; } = 11006;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 版本号
|
/// 版本号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user