Changes between Version 13 and Version 14 of Technology_Templates


Ignore:
Timestamp:
May 20, 2016, 2:22:28 PM (8 years ago)
Author:
fatherbushido
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Technology_Templates

    v13 v14  
    5858'''replaces''': When a tech is meant to unlock the same features as a different tech, it can use the "replaces" key. In this case, town-phase buildings are unlocked by researching the phase_town, but as the Athenian faction has a separate town phase, it needs to tell this is a replacement for the regular town phase.
    5959
    60 '''requirements''': This defines what is required for the tech to be available for research.  Currently (20/04/2012) the available requirements are:
     60'''requirements''': This defines what is required for the tech to be available for research.  The available requirements are:
    6161
    6262 * { "tech": "town_phase"} - This tech must be researched
     
    7878'''autoResearch''': If this is true then the technology will be instantly researched with no cost when the requirements are met.  This could be useful for complicated technology setups or for civ specific bonuses.  This is an optional field and if set then cost, researchTime etc. are not needed because it is not user visible.
    7979
    80 '''modifications''': This is an array of [wiki:TechModifications modifications] that the technology makes.  A modification specific affects attribute is pecific to this modification.  The values to modify will be added on request.  The available modifications are:[[BR]]
    81  * ''multiply'' - adds (multiply-1)*originalValue to the property.  Note this is not cumulative.[[BR]]
    82  * ''add'' - adds this number to the property.  Can be negative.[[BR]]
     80'''modifications''': This is an array of [wiki:TechModifications modifications] that the technology makes.  A modification specific affects attribute is specific to this modification.  The values to modify will be added on request.  The available modifications are:[[BR]]
     81 * ''multiply'' - multiplies the original property value by this number.[[BR]]
     82 * ''add'' - adds this number to the property value.  Can be negative.[[BR]]
    8383 * ''replace'' - this replaces the existing value (useful if no original value exists).  The ordering of multiple replaces is not defined.[[BR]]
    8484Note that the code does no validity checking for the modification, the technology writer is responsible.