From 72f5fd593fb6a7d61e0291a9467f9877f150c391 Mon Sep 17 00:00:00 2001 From: Andy <1780327+andythenorth@users.noreply.github.com> Date: Sat, 27 Dec 2014 20:54:59 +0000 Subject: [PATCH] Change: comment out lake logging, provide logging of industries accepting and producing each cargo --- main.nut | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/main.nut b/main.nut index a706879..8e7eb96 100644 --- a/main.nut +++ b/main.nut @@ -12,9 +12,11 @@ function FMainClass::Start() 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)); + foreach (industry,_ in prod_inds) { + GSLog.Info("Produces " + label + " @ " + GSIndustry.GetName(industry)); + } + foreach (industry,_ in accept_inds) { + GSLog.Info("Accepts " + label + " @ " + GSIndustry.GetName(industry)); } } else if (GSCargo.GetTownEffect(cid) != GSCargo.TE_NONE) { GSLog.Info(label + " affects town."); @@ -26,11 +28,11 @@ function FMainClass::Start() while (true) { local lake_news = GSText(GSText.STR_LAKE_NEWS); if (GSBase.Chance(1, 5)) { - GSLog.Info("We're at at the bottom of the lake."); - lake_news.AddParam(100); +// GSLog.Info("We're at at the bottom of the lake."); +// lake_news.AddParam(100); } else { - GSLog.Info("We're not at the bottom of the lake."); - lake_news.AddParam(200); +// GSLog.Info("We're not at the bottom of the lake."); +// 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);