More cleanup and refactoring. Adjust update frequency of scripts where possible.

This commit is contained in:
2025-02-11 12:44:01 -05:00
parent af97dbf6e8
commit 97eb659378
5 changed files with 30 additions and 29 deletions

View File

@ -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;
}
}
}