(svn r15695) -Feature [FS#2672]: Allow the number of towns that will be generated in the generate world window to be customized.
Some warnings: -the maximum number of towns to be accepted is set to 5000 -the minimum number of towns to be accepted is set to 1 -the number that is specified is NOT guaranteed to be the exact number of towns generated. The normal mechanism of town creation has not been modified. So town placement can still fail. -setting a custom number of town will change your difficulty settings to custom as well
This commit is contained in:
@@ -95,6 +95,9 @@ struct BuildingCounts {
|
||||
uint8 class_count[HOUSE_CLASS_MAX];
|
||||
};
|
||||
|
||||
static const int CUSTOM_TOWN_NUMBER_DIFFICULTY = 4; ///< value for custom town number in difficulty settings
|
||||
static const int CUSTOM_TOWN_MAX_NUMBER = 5000; ///< this is the maximum number of towns a user can specify in customisation
|
||||
|
||||
DECLARE_OLD_POOL(Town, Town, 3, 8000)
|
||||
|
||||
struct Town : PoolItem<Town, TownID, &_Town_pool> {
|
||||
|
Reference in New Issue
Block a user