From ce9f3598cc809adffff55d853bbe8deed2892c49 Mon Sep 17 00:00:00 2001 From: Andy <1780327+andythenorth@users.noreply.github.com> Date: Sat, 27 Dec 2014 20:02:03 +0000 Subject: [PATCH] Change: log some stuff about industries accepting cargos (broken) --- main.nut | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.nut b/main.nut index c0c6e8a..b9db60a 100644 --- a/main.nut +++ b/main.nut @@ -10,6 +10,12 @@ function FMainClass::Start() local label = cid + " (" + GSCargo.GetCargoLabel(cid) + ")" if (GSCargo.IsFreight(cid)) { GSLog.Info(label + " is freight."); + local accept_inds = GSIndustryList_CargoAccepting(cid); + local prod_inds = GSIndustryList_CargoProducing(cid); + GSLog.Info(GSIndustryList_CargoAccepting(cid)) + foreach (accept_ind in accept_inds) { + GSLog.Info(GSIndustry.GetName(accept_ind)); + } } else if (GSCargo.GetTownEffect(cid) != GSCargo.TE_NONE) { GSLog.Info(label + " affects town."); } else { @@ -27,7 +33,7 @@ function FMainClass::Start() lake_news.AddParam(200); } GSNews.Create(GSNews.NT_GENERAL, lake_news, GSCompany.COMPANY_INVALID); - GSGoal.Question(1, GSCompany.COMPANY_INVALID, lake_news, GSGoal.QT_INFORMATION, GSGoal.BUTTON_GO); + GSGoal.Question(1, GSCompany.COMPANY_INVALID, lake_news, GSGoal.QT_INFORMATION, GSGoal.BUTTON_GO); // GSLog.Info("I am a very new AI with a ticker called MyNewAI and I am at tick " + this.GetTick()); this.Sleep(50); }