In expandEntry(): Consolidated some if checks to remove unnecessary nesting and make the function easier to read. Renamed the "trnr" variable to "trainer". Populate the file-local faction_strings table on first use and use that in subsequent calls rather than doing Babble lookups and color conversions every time.
In expandEntry(): Consolidated some if checks to remove unnecessary nesting and make the function easier to read. Renamed the "trnr" variable to "trainer". Populate the file-local faction_strings table on first use and use that in subsequent calls rather than doing Babble lookups and color conversions every time.