OpenTTD / nml

NewGRF Meta Language
GNU General Public License v2.0
42 stars 36 forks source link

Add: Support town_production_effect and town_production_multiplier. #318

Closed PeterN closed 7 months ago

PeterN commented 7 months ago

Provides support for town production effect and multiplier properties of OpenTTD#11947

        town_production_effect:     TOWNPRODUCTION_PASSENGERS;
        town_production_multiplier: 1.0;
        town_production_effect:     TOWNPRODUCTION_MAIL;
        town_production_multiplier: 0.75;
PeterN commented 7 months ago

This has been tested with improved town industries, which replaces mail with waste.

2TallTyler commented 7 months ago

This PR adds the new properties to ITI: https://github.com/2TallTyler/improved_town_industries/pull/104. I have not tested this NML PR.

A question: Do I need to bump the minimum required OpenTTD version for the GRF (using a custom error), or will the properties be ignored in older versions of OpenTTD?

PeterN commented 7 months ago

You'll need a version check. NewGRF is not self-descriptive so older versions don't know how to skip properties they don't know.

You can do this Bananas side to make life easier, then only 14.x players will be offered a new version, though of course that doesn't stop someone manually downloading and trying to load it in an older version.