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
|
@ -24,10 +24,11 @@ public class ASUModClient : ModSystem
|
|||
{
|
||||
// Time acceleration handler
|
||||
accel = packet.Sleeping;
|
||||
CAPI.Logger.Notification("Time acceleration: " + packet.Sleeping);
|
||||
|
||||
if (accel)
|
||||
{
|
||||
CAPI.World.Calendar.SetTimeSpeedModifier("asu_psp", 500);
|
||||
CAPI.World.Calendar.SetTimeSpeedModifier("asu_psp", 1000);
|
||||
}
|
||||
else CAPI.World.Calendar.RemoveTimeSpeedModifier("asu_psp");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue