More cleanup and refactoring. Adjust update frequency of scripts where possible.
This commit is contained in:
@ -65,7 +65,7 @@ namespace IngameScript
|
||||
if (updateSource == UpdateType.Trigger || updateSource == UpdateType.Terminal)
|
||||
{
|
||||
_cli.TryParse(argument);
|
||||
if (_cli.ArgumentCount == 0) { Console.Print("You must provide an airlock ID."); }
|
||||
if (_cli.ArgumentCount == 0) Console.Print("Airlock ID not provided.");
|
||||
else
|
||||
{
|
||||
string airlockName = _cli.Argument(0);
|
||||
@ -74,7 +74,7 @@ namespace IngameScript
|
||||
else
|
||||
{
|
||||
_jobs.Add(_airlocks[airlockName].CycleAirlock());
|
||||
Runtime.UpdateFrequency |= UpdateFrequency.Update1;
|
||||
Runtime.UpdateFrequency |= UpdateFrequency.Update10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user