mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复 完成工作调用两次E_FinishWork
This commit is contained in:
parent
4b385415e7
commit
f603bf3f53
@ -85,7 +85,6 @@ namespace VPet_Simulator.Core
|
|||||||
//tleft = TimeSpan.Zero;
|
//tleft = TimeSpan.Zero;
|
||||||
//PBLeft.Value = MaxTime;
|
//PBLeft.Value = MaxTime;
|
||||||
FinishWorkInfo fwi = new FinishWorkInfo(m.NowWork, GetCount);
|
FinishWorkInfo fwi = new FinishWorkInfo(m.NowWork, GetCount);
|
||||||
E_FinishWork?.Invoke(fwi);
|
|
||||||
if (m.NowWork.Type == Work.WorkType.Work)
|
if (m.NowWork.Type == Work.WorkType.Work)
|
||||||
{
|
{
|
||||||
m.Core.Save.Money += GetCount * m.NowWork.FinishBonus;
|
m.Core.Save.Money += GetCount * m.NowWork.FinishBonus;
|
||||||
|
@ -19,7 +19,7 @@ public partial class MainWindow
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 版本号
|
/// 版本号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int version { get; } = 11010;
|
public int version { get; } = 11011;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 版本号
|
/// 版本号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user