Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/data/civs/kush.json
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | [ | ||||
"Description": "Allied Elephants −20% resource costs and training time." | "Description": "Allied Elephants −20% resource costs and training time." | ||||
} | } | ||||
], | ], | ||||
"Structures": | "Structures": | ||||
[ | [ | ||||
{ | { | ||||
"Name": "Temple of Amun", | "Name": "Temple of Amun", | ||||
"Class": "", | "Class": "", | ||||
"Emblem": "emblem.png", | "Emblem": "", | ||||
"History": "History.", | "History": "", | ||||
"Requirements": ".", | "Requirements": "", | ||||
"Phase": "City", | "Phase": "City", | ||||
"Special": "The Kushites can upgrade individual Temples to Temples of Amun, which can train Napatan Temple Guard champions and heal units faster." | "Special": "The Kushites can upgrade individual Temples to Temples of Amun, which can train Napatan Temple Guard champions and heal units faster." | ||||
}, | }, | ||||
{ | { | ||||
"Name": "Temple of Apedemak", | "Name": "Temple of Apedemak", | ||||
"Class": "", | "Class": "", | ||||
"Emblem": "emblem.png", | "Emblem": "", | ||||
"History": "History.", | "History": "", | ||||
"Requirements": ".", | "Requirements": "", | ||||
"Phase": "City", | "Phase": "City", | ||||
"Special": "The Kushites can upgrade individual Temples to Temples of Apedemak, which can train Meroe Temple Guard champions and heal units faster." | "Special": "The Kushites can upgrade individual Temples to Temples of Apedemak, which can train Meroe Temple Guard champions and heal units faster." | ||||
}, | }, | ||||
{ | { | ||||
"Name": "Kushite Pyramids", | "Name": "Kushite Pyramids", | ||||
"Class": "", | "Class": "", | ||||
"Emblem": "emblem.png", | "Emblem": "", | ||||
"History": "The Kushites built over 200 pyramids in Nubia.", | "History": "The Kushites built over 200 pyramids in Nubia.", | ||||
"Requirements": ".", | "Requirements": "", | ||||
"Phase": "Village", | "Phase": "Village", | ||||
"Special": "Building a Small Kushite Pyramid unlocks the Town Phase. Building a Large Kushite Pyramid unlocks the City Phase. And each pyramid built adds +10% territory effect to Civic Centers." | "Special": "Building a Small Kushite Pyramid unlocks the Town Phase. Building a Large Kushite Pyramid unlocks the City Phase. And each pyramid built adds +10% territory effect to Civic Centers." | ||||
} | } | ||||
], | ], | ||||
"StartEntities": | "StartEntities": | ||||
[ | [ | ||||
{ | { "Template": "structures/kush_civil_centre" }, | ||||
"Template": "structures/kush_civil_centre" | { "Template": "units/kush_support_female_citizen", "Count": 4 }, | ||||
}, | { "Template": "units/kush_infantry_spearman_b", "Count": 2 }, | ||||
{ | { "Template": "units/kush_infantry_archer_b", "Count": 2 }, | ||||
"Template": "units/kush_support_female_citizen", | { "Template": "units/kush_cavalry_javelinist_b" } | ||||
elexis: Keeping each property on a separate line has the advantage that one can add additional… | |||||
Done Inline ActionsWith “property” you mean what's inside the braces and separated by commas? Nescio: With “property” you mean what's inside the braces and separated by commas?
I agree for n>=3… | |||||
"Count": 4 | |||||
}, | |||||
{ | |||||
"Template": "units/kush_infantry_spearman_b", | |||||
"Count": 2 | |||||
}, | |||||
{ | |||||
"Template": "units/kush_infantry_archer_b", | |||||
"Count": 2 | |||||
}, | |||||
{ | |||||
"Template": "units/kush_cavalry_javelinist_b" | |||||
} | |||||
], | ], | ||||
"WallSets": | "WallSets": | ||||
[ | [ | ||||
"structures/wallset_palisade", | "structures/wallset_palisade", | ||||
"structures/kush_wallset_stone" | "structures/kush_wallset_stone" | ||||
], | ], | ||||
"Formations": | "Formations": | ||||
[ | [ | ||||
Show All 36 Lines |
Wildfire Games · Phabricator
Keeping each property on a separate line has the advantage that one can add additional properties easily and the data layout resembles a table, (i.e. it allows the reader to read one column at a time, i.e. only the property names, then find the property name interested in, and only then lookup the value of that property, as opposed to having to pass all keys and all values until the pair in one wanted to find is located).
This becomes more relevant with greater amounts of properties, but it's true for n=2 already and doing it so for n=2 means that it will be consistent with the n>=3 cases and allows to insert the 3rd property without changing the other lines.