diff --git a/.idea/.idea.Bureaucracy/.idea/workspace.xml b/.idea/.idea.Bureaucracy/.idea/workspace.xml index 81d4ad0..ca3a0b9 100644 --- a/.idea/.idea.Bureaucracy/.idea/workspace.xml +++ b/.idea/.idea.Bureaucracy/.idea/workspace.xml @@ -23,7 +23,7 @@ - + @@ -71,10 +71,10 @@ @@ -220,6 +220,7 @@ + @@ -1608,13 +1609,13 @@ - - - + + + diff --git a/Bureaucracy/Crew/CrewMember.cs b/Bureaucracy/Crew/CrewMember.cs index 98bb15e..492a530 100644 --- a/Bureaucracy/Crew/CrewMember.cs +++ b/Bureaucracy/Crew/CrewMember.cs @@ -92,7 +92,7 @@ public void Train() KerbalRoster.SetExperienceLevel(CrewReference(), newLevel); double trainingTime = newLevel * Utilities.Instance.GetMonthLength(); CrewReference().SetInactive(trainingTime); - Utilities.Instance.NewStockAlarm(Name+" - Training", Name+" has completed their training", trainingTime); + Utilities.Instance.NewStockAlarm(Name+" - Training", Name+" has completed their training",Planetarium.GetUniversalTime()+trainingTime); Debug.Log("[Bureaucracy]: "+Name+" entered training for "+trainingTime+", new Level: "+newLevel); } diff --git a/Bureaucracy/Utilities.cs b/Bureaucracy/Utilities.cs index 99451bc..4cfe643 100644 --- a/Bureaucracy/Utilities.cs +++ b/Bureaucracy/Utilities.cs @@ -27,7 +27,7 @@ public void NewStockAlarm(string alarmName, string alarmDescription, double alar warp = AlarmActions.WarpEnum.KillWarp, message = AlarmActions.MessageEnum.Yes }, - ut = Planetarium.GetUniversalTime() + alarmTime + ut = alarmTime }; AlarmClockScenario.AddAlarm(alarmToSet); }