diff --git a/main.nut b/main.nut index ba00f5d..8c460d4 100644 --- a/main.nut +++ b/main.nut @@ -70,6 +70,8 @@ function FMainClass::FindChallenge(cargo, distance) function FMainClass::Start() { + // Wait for the game to start + this.Sleep(1); this.ExamineCargoes(); // foreach(idx, val in cargoes) { @@ -81,6 +83,12 @@ function FMainClass::Start() GSLog.Info("Use " + GSIndustry.GetName(accept_ind)); } + // this is proof of concept only + for (local cid = GSCompany.COMPANY_FIRST; cid < GSCompany.COMPANY_LAST; cid++) { + GSLog.Info(cid); + GSGoal.New(cid, "Foo", GSGoal.GT_NONE, 0); + } + // for (local cid = 0; cid < 32; cid += 1) { // if (!GSCargo.IsValidCargo(cid)) continue; // local label = cid + " (" + GSCargo.GetCargoLabel(cid) + ")"