修复 完成工作调用两次E_FinishWork

This commit is contained in:
ZouJin 2024-04-18 00:26:01 +08:00
parent 4b385415e7
commit f603bf3f53
2 changed files with 1 additions and 2 deletions

View File

@ -85,7 +85,6 @@ namespace VPet_Simulator.Core
//tleft = TimeSpan.Zero;
//PBLeft.Value = MaxTime;
FinishWorkInfo fwi = new FinishWorkInfo(m.NowWork, GetCount);
E_FinishWork?.Invoke(fwi);
if (m.NowWork.Type == Work.WorkType.Work)
{
m.Core.Save.Money += GetCount * m.NowWork.FinishBonus;

View File

@ -19,7 +19,7 @@ public partial class MainWindow
/// <summary>
/// 版本号
/// </summary>
public int version { get; } = 11010;
public int version { get; } = 11011;
/// <summary>
/// 版本号
/// </summary>