generated from AriasCreations/vsmodtemplate
#5: Add debug to player sleeping percentage
This commit is contained in:
parent
4c585f647e
commit
e56a123cb8
4 changed files with 26 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue