Changes between Version 14 and Version 15 of Technology_Templates


Ignore:
Timestamp:
Aug 2, 2016, 8:57:15 PM (8 years ago)
Author:
s0600204
Comment:

Add the "class"/"number" requirement that has existed for about four years now.

Legend:

Unmodified
Added
Removed
Modified
  • Technology_Templates

    v14 v15  
    3030        "genericName": "Athenian Town Phase",
    3131        "specificName": {
    32                 "generic": "Generic Specific Town Name",
    33                 "hele": "Greek Town"
     32                "athen": "Kōmópolis"
    3433        },
    3534        "cost": { "food": 100, "wood": 100, "stone": 0, "metal": 50 },
    36         "requirements": { "class": "Village", "numberOfTypes": 2 },
    37         "requirementsTooltip": "Requires two village structures",
     35        "requirements": { "class": "Village", "number": 5 },
     36        "requirementsTooltip": "Requires five village structures",
    3837        "supersedes": "village_phase",
    3938        "replaces": ["town_phase"],
     
    6059'''requirements''': This defines what is required for the tech to be available for research.  The available requirements are:
    6160
    62  * { "tech": "town_phase"} - This tech must be researched
     61 * `{ "tech": "town_phase"}` - This tech must be researched
    6362
    64  * {"civ": "rome"} - The player must be this civ
     63 * `{ "civ": "rome" }` - The player must be this civ
    6564
    66  * {"notciv": "pers"} - The player mustn't be this civ
     65 * `{ "notciv": "pers" }` - The player mustn't be this civ
    6766
    68  * { "class": "Village", "numberOfTypes": 2 } - this means that the player must own two different types of entity with the class Village, i.e. a house and a civil center meet the requirements but two houses does not.
     67 * `{ "class": "Village", "number": 3 }` - this means that the player must own three entities with the class `Village`, i.e. three houses, or a farmstead and two outposts, etc.
    6968
    70  * { "all": [{...}, {...}, ...]} - All of the requirements in the list must be met.
     69 * `{ "class": "Town", "numberOfTypes": 2 }` - this means that the player must own two different types of entity with the class `Town`, i.e. a blacksmith and a defense tower meet the requirement but two towers do not.
    7170
    72  * { "any": [{...}, {...}, ...]} - At least one of the requirements in the list must be met.
     71 * `{ "all": [{...}, {...}, ...]}` - All of the requirements in the list must be met.
     72
     73 * `{ "any": [{...}, {...}, ...]}` - At least one of the requirements in the list must be met.
    7374
    7475'''requirementsTooltip''': A human readable version of the requirements to be displayed in the tooltip.