More cargo based questions for you. How are people handling cargos like Gasoline in ECS Vectors?
I can find whether a cargo is produced in towns with AITown.GetMaxProduction() and I can find a sub-set of cargos accepted in towns with AICargo.GetTownEffect().
Something like the following...
Code: Select all
foreach(c, _ in AICargoList()) {
local lbl = AICargo.GetCargoLabel(c);
if(AICargo.GetTownEffect(c) != AICargo.TE_NONE) AILog.Info(lbl + " accepted in towns");
local townprod = 0;
foreach(t, _ in AITownList()) {
townprod += AITown.GetMaxProduction(t, c);
}
if(townprod > 0) AILog.Info(lbl + " produced in towns");
}
Also may I ask what is meant by freight in the context of AICargo.IsFreight()? What does true from this function imply in practical terms?
Thanks
