0.1.2 • Published 3 years ago
@civ-clone/core-city-growth v0.1.2
core-city-growth
Methods relating to the changing size of Citys.
The main CityGrowth object stores the current state of Food for a City and has convenience methods for controlling
when a City's size changes. CityGrowths are retrieved via a CityGrowthRegistry instance. A growth key of
AdditionalData is provided for Citys automatically.
Includes the following Rules:
Costfor determining how muchFoodgrowth requires.FoodExhaustedwhenFoodStorageis depleted.FoodLowtriggered whenFoodStorageis "low".FoodStorageprocessed whenCityGrowth.checkis called.Growcontrols what happens whenCityGrowth.growis called.ShrinkwhenCityGrowth.shrinkis called.