提供相关接口

This commit is contained in:
ZouJin 2024-04-07 01:55:38 +08:00
parent bd8e7c709a
commit 2713a0924a
2 changed files with 6 additions and 3 deletions

View File

@ -249,9 +249,7 @@ namespace VPet_Simulator.Core
Core.Save.FeelingChange(-NowWork.Feeling * TimePass);
}
else
Core.Save.FeelingChange(-freedrop * (0.5 + NowWork.Feeling / 2));
if (Core.Save.Mode == IGameSave.ModeType.Ill)//生病时候停止工作
WorkTimer.Stop();
Core.Save.FeelingChange(-freedrop * (0.5 + NowWork.Feeling / 2));
break;
default://默认
//饮食等乱七八糟的消耗

View File

@ -174,6 +174,11 @@ namespace VPet_Simulator.Windows.Interface
/// <param name="graphName">夹层动画名</param>
/// <param name="imageSource">被夹在中间的图片</param>
void DisplayFoodAnimation(string graphName, ImageSource imageSource);
/// <summary>
/// 使用/食用物品 (自动扣钱) (不包括显示动画)
/// </summary>
/// <param name="item">物品</param>
void TakeItem(Food item);
}
}