Change: log some stuff about industries accepting cargos (broken)
This commit is contained in:
6
main.nut
6
main.nut
@@ -10,6 +10,12 @@ function FMainClass::Start()
|
|||||||
local label = cid + " (" + GSCargo.GetCargoLabel(cid) + ")"
|
local label = cid + " (" + GSCargo.GetCargoLabel(cid) + ")"
|
||||||
if (GSCargo.IsFreight(cid)) {
|
if (GSCargo.IsFreight(cid)) {
|
||||||
GSLog.Info(label + " is freight.");
|
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) {
|
} else if (GSCargo.GetTownEffect(cid) != GSCargo.TE_NONE) {
|
||||||
GSLog.Info(label + " affects town.");
|
GSLog.Info(label + " affects town.");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user