#5: Add debug to player sleeping percentage

This commit is contained in:
zontreck 2025-05-03 12:53:44 -07:00
parent 4c585f647e
commit e56a123cb8
4 changed files with 26 additions and 10 deletions

View file

@ -7,6 +7,7 @@ using Vintagestory.API.Config;
using Vintagestory.API.MathTools;
using Vintagestory.API.Server;
using Vintagestory.API.Util;
using Vintagestory.GameContent;
namespace AriasServerUtils
{
@ -577,5 +578,15 @@ namespace AriasServerUtils
}
return TextCommandResult.Success(sReturn);
}
internal static TextCommandResult HandleSleepyDebug(TextCommandCallingArgs args)
{
EntityBehaviorTiredness sleepy = args.Caller.Entity.GetBehavior<EntityBehaviorTiredness>();
if (sleepy != null)
{
sleepy.Tiredness = 100;
}
return TextCommandResult.Success();
}
}
}