<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision: 9588 $ -->
<!--
    *  Copyright (C) 2002-2012  The FreeCol Team
    *
    *  This file is part of FreeCol.
    *
    *  FreeCol is free software: you can redistribute it and/or modify
    *  it under the terms of the GNU General Public License as published by
    *  the Free Software Foundation, either version 2 of the License, or
    *  (at your option) any later version.
    *
    *  FreeCol is distributed in the hope that it will be useful,
    *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    *  GNU General Public License for more details.
    *
    *  You should have received a copy of the GNU General Public License
    *  along with FreeCol.  If not, see <http://www.gnu.org/licenses/>.
    *
  -->
<!-- specification version 0.54 -->
<!-- in case of incompatible changes, please update version number and
     XSD schema for validation. -->
<freecol-specification id="testing" extends="classic">

  <goods-types>
    <goods-type id="model.goods.coffee" is-farmed="true" new-world-goods="true">
      <market initial-amount="1500"  initial-price="2"  price-difference="4"/>
    </goods-type>
    <goods-type id="model.goods.hemp" is-farmed="true">
      <market initial-amount="2000"  initial-price="4"  price-difference="3"/>
    </goods-type>
    <goods-type id="model.goods.cordage" is-farmed="false" made-from="model.goods.hemp">
      <market initial-amount="1000"   initial-price="10"  price-difference="2"/>
    </goods-type>
  </goods-types>

  <resource-types>
    <resource-type id="model.resource.coffee">
      <modifier id="model.goods.coffee" type="multiplicative" value="2"/>
    </resource-type>
    <resource-type id="model.resource.hemp">
      <modifier id="model.goods.hemp" type="multiplicative" value="2"/>
    </resource-type>
  </resource-types>

  <tile-types>
    <tile-type id="model.tile.grassland" basic-move-cost="3" basic-work-turns="3">
      <gen humidityMin="25" humidityMax="70" temperatureMin="10" temperatureMax="25" altitudeMin="1" altitudeMax="1"/>
      <primary-production goods-type="model.goods.grain" value="3"/>
      <secondary-production goods-type="model.goods.tobacco" value="3"/>
      <production goods-type="model.goods.grain"       value="3"/>
      <production goods-type="model.goods.tobacco"    value="3"/>
      <production goods-type="model.goods.hemp"    value="3"/>
      <resource   type="model.resource.tobacco"       probability="60"/>
      <resource   type="model.resource.hemp"       probability="40"/>
    </tile-type>
    <tile-type id="model.tile.hills" basic-move-cost="6" basic-work-turns="4">
      <gen humidityMin="0" humidityMax="100" temperatureMin="-20" temperatureMax="40" altitudeMin="2" altitudeMax="3"/>
      <modifier id="model.modifier.defence" type="percentage" value="100"/>
      <primary-production goods-type="model.goods.grain" value="2"/>
      <secondary-production goods-type="model.goods.ore" value="4"/>
      <production goods-type="model.goods.grain"       value="2"/>
      <production goods-type="model.goods.coffee"       value="2"/>
      <production goods-type="model.goods.ore"        value="4"/>
      <resource   type="model.resource.ore"           probability="80"/>
      <resource   type="model.resource.coffee"           probability="20"/>
    </tile-type>
  </tile-types>

  <!-- TODO: add specialists for hemp and coffee.
  <unit-types>
  </unit-types>
  -->

  <building-types>
    <building-type id="model.building.townHall" basicProduction="3" workplaces="3"
                   produces="model.goods.bells">
      <modifier id="model.goods.bells" type="additive" value="1"/>
    </building-type>
    <building-type id="model.building.CityHall" basicProduction="6" workplaces="3"
                   produces="model.goods.bells" upgradesFrom="model.building.townHall"
                   required-population="6" >
      <modifier id="model.goods.bells" type="additive" value="1"/>
      <modifier id="model.goods.bells" type="percentage" value="25"/>
      <required-goods id="model.goods.hammers" value="120"/>
      <required-goods id="model.goods.tools" value="48"/>
    </building-type>
    <building-type id="model.building.Capitol" basicProduction="6" workplaces="3"
                   produces="model.goods.bells" upgradesFrom="model.building.CityHall"
                   required-population="9">
      <modifier id="model.goods.bells" type="additive" value="1"/>
      <modifier id="model.goods.bells" type="percentage" value="50"/>
      <required-goods id="model.goods.hammers" value="240"/>
      <required-goods id="model.goods.tools" value="72"/>
    </building-type>
    <building-type id="model.building.CordageMakerHouse" basicProduction="3" workplaces="3" consumes="model.goods.tobacco" produces="model.goods.cordage">
    </building-type>
    <building-type id="model.building.CordageMakerShop"  basicProduction="6" workplaces="3" consumes="model.goods.tobacco" produces="model.goods.cordage" upgradesFrom="model.building.CordageMakerHouse">
      <required-goods id="model.goods.hammers" value="64"/>
      <required-goods id="model.goods.tools" value="20"/>
    </building-type>
    <building-type id="model.building.CordageFactory"     basicProduction="6" workplaces="3" consumes="model.goods.tobacco" produces="model.goods.cordage" upgradesFrom="model.building.CordageMakerShop"
                   required-population="8">
      <required-goods id="model.goods.hammers" value="160"/>
      <required-goods id="model.goods.tools" value="100"/>
      <required-ability id="model.ability.buildFactory"/>
      <modifier id="model.goods.cordage" type="percentage" value="50"/>
      <ability id="model.ability.expertsUseConnections" value="true"/>
    </building-type>
  </building-types>

  <founding-fathers>
    <founding-father id="model.foundingFather.johnnyAppleseed" type="trade"
                     weight1="2" weight2="8" weight3="6">
      <modifier id="model.ability.grain" type="additive" value="2"/>
    </founding-father>
  </founding-fathers>

</freecol-specification>
