Split off properties of era's to another JSON file (#4336)

* Added Era.json and imported the data to the ruleset

* Units at start are now also determined by eras.json

* Research agreement costs now determined by json file

* Gold and Culture provided at the start are now awarded

* Can no longer build wonders that are more than two eras older than the starting era

* Default population and buildings for settlers can now be added

* Added checks for validity of eras.json file in mods

* Colors for the icons of technologies are no also saved in eras.json

* Removed constants for all era's as they have been generalized away by this PR

* Removed spurios println's

* Added compatibility for mods

* Updated the military unit you get from ruines to be the military unit you received at the start of the game
This commit is contained in:
Xander Lenstra
2021-07-02 14:45:18 +02:00
committed by GitHub
parent d94a1d1432
commit b8d79dc23d
14 changed files with 372 additions and 98 deletions

View File

@ -8,6 +8,7 @@ object Constants {
//
const val settler = "Settler"
const val settlerUnique = "Founds a new city"
const val eraSpecificUnit = "Era Starting Unit"
const val impassable = "Impassable"
const val ocean = "Ocean"
@ -71,14 +72,6 @@ object Constants {
const val disabled = "disabled"
const val enabled = "enabled"
const val ancientEra = "Ancient era"
const val classicalEra = "Classical era"
const val medievalEra = "Medieval era"
const val renaissanceEra = "Renaissance era"
const val industrialEra = "Industrial era"
const val modernEra = "Modern era"
const val informationEra = "Information era"
const val futureEra = "Future era"
const val barbarians = "Barbarians"
const val spectator = "Spectator"
const val custom = "Custom"