mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
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:
150
android/assets/jsons/Civ V - Vanilla/Eras.json
Normal file
150
android/assets/jsons/Civ V - Vanilla/Eras.json
Normal file
@ -0,0 +1,150 @@
|
||||
[
|
||||
// Source: the fandom, so take these with a grain of salt
|
||||
// I also did some testing in the official version, but by far not all
|
||||
|
||||
{
|
||||
"name": "Ancient era",
|
||||
"researchAgreementCost": 150,
|
||||
"startingSettlerCount": 1, // These values should not include the values given in Difficulties.json
|
||||
"startingWorkerCount": 0,
|
||||
"startingMilitaryUnitCount": 1,
|
||||
"startingMilitaryUnit": "Warrior",
|
||||
"settlerPopulation": 1,
|
||||
"iconRGB": [255, 87, 35]
|
||||
},
|
||||
{
|
||||
"name": "Classical era",
|
||||
"researchAgreementCost": 150,
|
||||
"startingSettlerCount": 1,
|
||||
"startingWorkerCount": 0,
|
||||
"startingMilitaryUnitCount": 2,
|
||||
"startingMilitaryUnit": "Spearman",
|
||||
"startingGold": 10,
|
||||
"startingCulture": 100,
|
||||
"settlerPopulation": 1,
|
||||
"iconRGB": [233, 31, 99]
|
||||
},
|
||||
{
|
||||
"name": "Medieval era",
|
||||
"researchAgreementCost": 250,
|
||||
"startingSettlerCount": 2,
|
||||
"startingWorkerCount": 1,
|
||||
"startingMilitaryUnitCount": 3,
|
||||
"startingMilitaryUnit": "Spearman",
|
||||
"startingGold": 25,
|
||||
"startingCulture": 200,
|
||||
"settlerPopulation": 1,
|
||||
"settlerBuildings": ["Shrine","Monument"],
|
||||
"startingObsoleteWonders": ["Temple of Artemis", "Stonehenge", "The Great Library", "Mausoleum of Halicarnassus", "The Pyramids", "Statue of Zeus"],
|
||||
"iconRGB": [157, 39, 176]
|
||||
},
|
||||
{
|
||||
"name": "Renaissance era",
|
||||
"researchAgreementCost": 250,
|
||||
"startingSettlerCount": 2,
|
||||
"startingWorkerCount": 1,
|
||||
"startingMilitaryUnitCount": 3,
|
||||
"startingMilitaryUnit": "Pikeman",
|
||||
"startingGold": 50,
|
||||
"startingCulture": 300,
|
||||
"settlerPopulation": 2,
|
||||
"settlerBuildings": ["Shrine","Monument","Granary","Lighthouse"],
|
||||
"startingObsoleteWonders": ["Temple of Artemis", "Stonehenge", "The Great Library", "Mausoleum of Halicarnassus", "The Pyramids", "Statue of Zeus",
|
||||
"The Great Lighthouse", "Hanging Gardens", "Terracotta Army", "The Oracle", "Petra", "Great Wall", "Colossus"],
|
||||
"iconRGB": [104, 58, 183]
|
||||
},
|
||||
{
|
||||
"name": "Industrial era",
|
||||
"researchAgreementCost": 300,
|
||||
"startingSettlerCount": 3,
|
||||
"startingWorkerCount": 2,
|
||||
"startingMilitaryUnitCount": 5,
|
||||
"startingMilitaryUnit": "Musketman",
|
||||
"startingGold": 100,
|
||||
"startingCulture": 400,
|
||||
"settlerPopulation": 3,
|
||||
"settlerBuildings": ["Monument","Granary","Lighthouse","Market","Workshop","Amphitheater","Barracks","Library","Colosseum"],
|
||||
"startingObsoleteWonders": ["Temple of Artemis", "Stonehenge", "The Great Library", "Mausoleum of Halicarnassus", "The Pyramids", "Statue of Zeus",
|
||||
"The Great Lighthouse", "Hanging Gardens", "Terracotta Army", "The Oracle", "Petra", "Great Wall", "Colossus",
|
||||
"Hagia Sophia", "Chichen Itza", "Machu Picchu", "Angkor Wat", "Alhambra", "Notre Dame"],
|
||||
"iconRGB": [63, 81, 182]
|
||||
},
|
||||
{
|
||||
"name": "Modern era",
|
||||
"researchAgreementCost": 350,
|
||||
"startingSettlerCount": 3,
|
||||
"startingWorkerCount": 2,
|
||||
"startingMilitaryUnitCount": 5,
|
||||
"startingMilitaryUnit": "Rifleman",
|
||||
"startingGold": 200,
|
||||
"startingCulture": 500,
|
||||
"settlerPopulation": 3,
|
||||
"settlerBuildings": ["Monument","Granary","Lighthouse","Market","Workshop","Amphitheater","Barracks","Library","Colosseum"],
|
||||
"startingObsoleteWonders": ["Temple of Artemis", "Stonehenge", "The Great Library", "Mausoleum of Halicarnassus", "The Pyramids", "Statue of Zeus",
|
||||
"The Great Lighthouse", "Hanging Gardens", "Terracotta Army", "The Oracle", "Petra", "Great Wall", "Colossus",
|
||||
"Hagia Sophia", "Chichen Itza", "Machu Picchu", "Angkor Wat", "Alhambra", "Notre Dame",
|
||||
"Sistine Chapel", "Forbidden Palace", "Leaning Tower of Pisa", "Himeji Castle", "Taj Mahal", "Porcelain Tower", "Kremlin"],
|
||||
"iconRGB": [33, 150, 243]
|
||||
},
|
||||
{
|
||||
"name": "Atomic era",
|
||||
"researchAgreementCost": 400,
|
||||
"startingSettlerCount": 3,
|
||||
"startingWorkerCount": 2,
|
||||
"startingMilitaryUnitCount": 5,
|
||||
"startingMilitaryUnit": "Infantry",
|
||||
"startingGold": 200,
|
||||
"startingCulture": 500,
|
||||
"settlerPopulation": 4,
|
||||
"settlerBuildings": ["Monument","Granary","Lighthouse","Market","Workshop","Amphitheater","Barracks","Library","Colosseum"],
|
||||
"startingObsoleteWonders": ["Temple of Artemis", "Stonehenge", "The Great Library", "Mausoleum of Halicarnassus", "The Pyramids", "Statue of Zeus",
|
||||
"The Great Lighthouse", "Hanging Gardens", "Terracotta Army", "The Oracle", "Petra", "Great Wall", "Colossus",
|
||||
"Hagia Sophia", "Chichen Itza", "Machu Picchu", "Angkor Wat", "Alhambra", "Notre Dame",
|
||||
"Sistine Chapel", "Forbidden Palace", "Leaning Tower of Pisa", "Himeji Castle", "Taj Mahal", "Porcelain Tower", "Kremlin",
|
||||
"The Louvre", "Big Ben", "Brandenburg Gate"],
|
||||
"iconRGB": [0, 150, 136]
|
||||
},
|
||||
{
|
||||
"name": "Information era",
|
||||
"researchAgreementCost": 400,
|
||||
"startingSettlerCount": 3,
|
||||
"startingWorkerCount": 3,
|
||||
"startingMilitaryUnitCount": 5,
|
||||
"startingMilitaryUnit": "Marine",
|
||||
"startingGold": 400,
|
||||
"startingCulture": 600,
|
||||
"settlerPopulation": 5,
|
||||
"settlerBuildings": ["Monument","Granary","Lighthouse","Market","Workshop","Amphitheater","Barracks","Library","Colosseum","Theatre","Bank"],
|
||||
"startingObsoleteWonders": ["Temple of Artemis", "Stonehenge", "The Great Library", "Mausoleum of Halicarnassus", "The Pyramids", "Statue of Zeus",
|
||||
"The Great Lighthouse", "Hanging Gardens", "Terracotta Army", "The Oracle", "Petra", "Great Wall", "Colossus",
|
||||
"Hagia Sophia", "Chichen Itza", "Machu Picchu", "Angkor Wat", "Alhambra", "Notre Dame",
|
||||
"Sistine Chapel", "Forbidden Palace", "Leaning Tower of Pisa", "Himeji Castle", "Taj Mahal", "Porcelain Tower", "Kremlin",
|
||||
"The Louvre", "Big Ben", "Brandenburg Gate",
|
||||
"Eiffel Tower", "Statue of Liberty", "Neuschwanstein", "Cristo Redentor"],
|
||||
// So theoretically this is always just all the wonders at least 2 eras old. So we could just use that.
|
||||
// But where is the modularity? The excluding of very specific wonders? That is no fun.
|
||||
// So we just write down the entire long list (sorted by era!) instead.
|
||||
"iconRGB": [76, 176, 81]
|
||||
},
|
||||
{ // Technically, this Era doesn't exist in the original game.
|
||||
// But as it is _really_ usefull to have for testing, I'd like to keep it.
|
||||
// The stats are just copy-pasted from the information era.
|
||||
"name": "Future era",
|
||||
"researchAgreementCost": 400,
|
||||
"startingSettlerCount": 3,
|
||||
"startingWorkerCount": 3,
|
||||
"startingMilitaryUnitCount": 5,
|
||||
"startingMilitaryUnit": "Marine",
|
||||
"startingGold": 400,
|
||||
"startingCulture": 600,
|
||||
"settlerPopulation": 5,
|
||||
"settlerBuildings": ["Monument","Granary","Lighthouse","Market","Workshop","Amphitheater","Barracks","Library","Colosseum","Theatre","Bank"],
|
||||
"startingObsoleteWonders": ["Temple of Artemis", "Stonehenge", "The Great Library", "Mausoleum of Halicarnassus", "The Pyramids", "Statue of Zeus",
|
||||
"The Great Lighthouse", "Hanging Gardens", "Terracotta Army", "The Oracle", "Petra", "Great Wall", "Colossus",
|
||||
"Hagia Sophia", "Chichen Itza", "Machu Picchu", "Angkor Wat", "Alhambra", "Notre Dame",
|
||||
"Sistine Chapel", "Forbidden Palace", "Leaning Tower of Pisa", "Himeji Castle", "Taj Mahal", "Porcelain Tower", "Kremlin",
|
||||
"The Louvre", "Big Ben", "Brandenburg Gate",
|
||||
"Eiffel Tower", "Statue of Liberty", "Neuschwanstein", "Cristo Redentor"],
|
||||
"iconRGB": [76, 176, 81]
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user