I think the AITown.GetTownRating returns the wrong town rating. It seems that when I check for:
Code: Select all
local companyID = AICompany.ResolveCompanyID(AICompany.COMPANY_SELF);
if (AITown.GetTownRating(town, companyID) == AITown.TOWN_RATING_GOOD) {
...
}
Code: Select all
return max(TOWN_RATING_APPALLING, (TownRating)((t->ratings[company] / 200) + 4));
Cheers,
Bram