修复 桌宠工作时生病仍然结算收益 fix #346

是线程调用的问题, 我就说我代码没啥问题的说
一般这种线程问题应该会直接报错的, 但是这个没有,怪
This commit is contained in:
ZouJin 2024-04-07 14:19:05 +08:00
parent 2713a0924a
commit 1f4da5e14a

View File

@ -249,7 +249,7 @@ namespace VPet_Simulator.Core
Core.Save.FeelingChange(-NowWork.Feeling * TimePass);
}
else
Core.Save.FeelingChange(-freedrop * (0.5 + NowWork.Feeling / 2));
Core.Save.FeelingChange(-freedrop * (0.5 + NowWork.Feeling / 2));
break;
default://默认
//饮食等乱七八糟的消耗
@ -326,7 +326,7 @@ namespace VPet_Simulator.Core
//看情况播放停止工作动画
if (Core.Save.Mode == IGameSave.ModeType.Ill && State == WorkingState.Work)
{
WorkTimer.Stop();
Dispatcher.Invoke(() => WorkTimer.Stop());
}
}
private void playSwitchAnimat(IGameSave.ModeType before, IGameSave.ModeType after)