Skip to content

Researcher

Examples

Example

<Researcher>
  <TechCostMultiplier>
    <food>
      0.5
    </food>
    <wood>
      0.1
    </wood>
    <stone>
      0
    </stone>
    <metal>
      2
    </metal>
    <time>
      0.9
    </time>
  </TechCostMultiplier>
  <Technologies datatype="tokens">
    phase_town_{civ}
    phase_metropolis_ptol
    unlock_shared_los
    wonder_population_cap
  </Technologies>
</Researcher>

XML Elements

The following elements can be used within this component:

Researcher

Technologies

Space-separated list of technology names that this building can research. When present, the special string "{civ}" will be automatically replaced either by the civ code of the building's owner if such a tech exists, or by "generic".

Type: text

Path: Researcher/Technologies

TechCostMultiplier

Multiplier to modify resources cost and research time of technologies researched in this building.

Path: Researcher/TechCostMultiplier

food

Type: non-negative decimal

Path: Researcher/TechCostMultiplier/food

wood

Type: non-negative decimal

Path: Researcher/TechCostMultiplier/wood

stone

Type: non-negative decimal

Path: Researcher/TechCostMultiplier/stone

metal

Type: non-negative decimal

Path: Researcher/TechCostMultiplier/metal

time

Type: non-negative decimal

Path: Researcher/TechCostMultiplier/time

RELAX NG Grammar

<define name="component.Researcher">
  <element name="Researcher">
    <interleave>
      <optional>
        <element name="Technologies">
          <attribute name="datatype">
            <value>
            </value>
          </attribute>
          <text/>
        </element>
      </optional>
      <optional>
        <element name="TechCostMultiplier">
          <interleave>
            <optional>
              <element name="food">
                <ref name="nonNegativeDecimal"/>
              </element>
            </optional>
            <optional>
              <element name="wood">
                <ref name="nonNegativeDecimal"/>
              </element>
            </optional>
            <optional>
              <element name="stone">
                <ref name="nonNegativeDecimal"/>
              </element>
            </optional>
            <optional>
              <element name="metal">
                <ref name="nonNegativeDecimal"/>
              </element>
            </optional>
            <optional>
              <element name="time">
                <ref name="nonNegativeDecimal"/>
              </element>
            </optional>
          </interleave>
        </element>
      </optional>
    </interleave>
  </element>
</define>