Feature: Set a custom number of industries in map generation window (#10340)

This commit is contained in:
Tyler Trahan
2023-01-14 05:12:29 -05:00
committed by GitHub
parent 5c64cdcb79
commit 2206c73156
5 changed files with 47 additions and 5 deletions

View File

@@ -58,6 +58,8 @@ enum IndustryDensity {
ID_NORMAL, ///< Normal amount of industries at game start.
ID_HIGH, ///< Many industries at game start.
ID_CUSTOM, ///< Custom number of industries.
ID_END, ///< Number of industry density settings.
};
@@ -326,6 +328,7 @@ struct GameCreationSettings {
byte landscape; ///< the landscape we're currently in
byte water_borders; ///< bitset of the borders that are water
uint16 custom_town_number; ///< manually entered number of towns
uint16 custom_industry_number; ///< manually entered number of industries
byte variety; ///< variety level applied to TGP
byte custom_terrain_type; ///< manually entered height for TGP to aim for
byte custom_sea_level; ///< manually entered percentage of water in the map