<?xml version="1.0" encoding="UTF-8"?>
<!--
    *  Copyright (C) 2002-2015  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/>.
    *
  -->
<freecol-specification id="rolesCompat" version="0.85">
<!--
    A copy of the latest roles section of classic/specification.xml
    to be loaded into the specification of games lacking a roles
    section (0.10.0-5), or missing key abilities (0.10.6,7).
-->
  <roles>
    <role id="model.role.default"/>

    <role id="model.role.scout"
          expert-unit="model.unit.seasonedScout">
      <required-ability id="model.ability.canBeEquipped" value="true"/>
      <required-ability id="model.ability.native" value="false"/>
      <required-ability id="model.ability.refUnit" value="false"/>
      <required-goods id="model.goods.horses" value="50"/>

      <ability id="model.ability.armed" value="true"/>
      <ability id="model.ability.canBeCaptured" value="false"/>
      <ability id="model.ability.captureUnits" value="true"/>
      <ability id="model.ability.demandTribute" value="true"/>
      <ability id="model.ability.disposeOnCombatLoss" value="true"/>
      <ability id="model.ability.mounted" value="true"/>
      <ability id="model.ability.negotiate" value="true"/>
      <ability id="model.ability.speakWithChief" value="true"/>
      <ability id="model.ability.spyOnColony" value="true"/>
      <modifier id="model.modifier.defence" type="additive" value="1"/>
      <modifier id="model.modifier.offence" type="additive" value="1"/>
      <modifier id="model.modifier.lineOfSightBonus" type="additive" value="1"/>
      <modifier id="model.modifier.movementBonus" type="additive" value="9"/>
    </role>

    <role id="model.role.soldier"
          expert-unit="model.unit.veteranSoldier">
      <required-ability id="model.ability.canBeEquipped" value="true"/>
      <required-ability id="model.ability.native" value="false"/>
      <required-ability id="model.ability.refUnit" value="false"/>
      <required-goods id="model.goods.muskets" value="50"/>

      <ability id="model.ability.armed" value="true"/>
      <ability id="model.ability.canBeCaptured" value="false"/>
      <ability id="model.ability.captureUnits" value="true"/>
      <ability id="model.ability.demandTribute" value="true"/>
      <modifier id="model.modifier.defence" type="additive" value="1"/>
      <modifier id="model.modifier.offence" type="additive" value="2"/>
    </role>

    <role id="model.role.dragoon" downgrade="model.role.soldier"
          expert-unit="model.unit.veteranSoldier">
      <required-ability id="model.ability.canBeEquipped" value="true"/>
      <required-ability id="model.ability.native" value="false"/>
      <required-ability id="model.ability.refUnit" value="false"/>
      <required-goods id="model.goods.muskets" value="50"/>
      <required-goods id="model.goods.horses" value="50"/>

      <ability id="model.ability.armed" value="true"/>
      <ability id="model.ability.canBeCaptured" value="false"/>
      <ability id="model.ability.captureUnits" value="true"/>
      <ability id="model.ability.demandTribue" value="true"/>
      <ability id="model.ability.mounted" value="true"/>
      <modifier id="model.modifier.defence" type="additive" value="2"/>
      <modifier id="model.modifier.offence" type="additive" value="3"/>
      <modifier id="model.modifier.movementBonus" type="additive" value="9"/>
    </role>

    <role id="model.role.pioneer"
          expert-unit="model.unit.hardyPioneer" maximum-count="5">
      <required-ability id="model.ability.canBeEquipped" value="true"/>
      <required-ability id="model.ability.native" value="false"/>
      <required-ability id="model.ability.refUnit" value="false"/>
      <required-goods id="model.goods.tools" value="20"/>

      <ability id="model.ability.disposeOnCombatLoss" value="true"/>
      <ability id="model.ability.improveTerrain" value="true"/>
    </role>

    <role id="model.role.missionary"
          expert-unit="model.unit.jesuitMissionary">
      <required-ability id="model.ability.canBeEquipped" value="true"/>
      <required-ability id="model.ability.dressMissionary" value="true"/>
      <required-ability id="model.ability.native" value="false"/>
      <required-ability id="model.ability.refUnit" value="false"/>

      <ability id="model.ability.denounceHeresy" value="true"/>
      <ability id="model.ability.establishMission" value="true"/>
      <ability id="model.ability.inciteNatives" value="true"/>
      <modifier id="model.modifier.missionaryTradeBonus" type="percentage" value="10"/>
      <modifier id="model.modifier.movementBonus" type="additive" value="3"/>
    </role>

    <role id="model.role.infantry"
          expert-unit="model.unit.kingsRegular">
      <required-ability id="model.ability.canBeEquipped" value="true"/>
      <required-ability id="model.ability.native" value="false"/>
      <required-ability id="model.ability.refUnit" value="true"/>
      <required-ability id="model.ability.royalExpeditionaryForce" value="true"/>
      <required-goods id="model.goods.muskets" value="50"/>

      <ability id="model.ability.armed" value="true"/>
      <ability id="model.ability.captureUnits" value="true"/>
      <ability id="model.ability.demandTribute" value="true"/>
      <ability id="model.ability.disposeOnCombatLoss" value="true"/>
      <modifier id="model.modifier.defence" type="additive" value="1"/>
      <modifier id="model.modifier.offence" type="additive" value="2"/>
    </role>

    <role id="model.role.cavalry" downgrade="model.role.infantry"
          expert-unit="model.unit.kingsRegular">
      <required-ability id="model.ability.canBeEquipped" value="true"/>
      <required-ability id="model.ability.native" value="false"/>
      <required-ability id="model.ability.refUnit" value="true"/>
      <required-ability id="model.ability.royalExpeditionaryForce" value="true"/>
      <required-goods id="model.goods.muskets" value="50"/>
      <required-goods id="model.goods.horses" value="50"/>

      <ability id="model.ability.armed" value="true"/>
      <ability id="model.ability.captureUnits" value="true"/>
      <ability id="model.ability.demandTribute" value="true"/>
      <ability id="model.ability.mounted" value="true"/>
      <modifier id="model.modifier.defence" type="additive" value="2"/>
      <modifier id="model.modifier.offence" type="additive" value="3"/>
      <modifier id="model.modifier.movementBonus" type="additive" value="9"/>
    </role>

    <role id="model.role.mountedBrave">
      <required-ability id="model.ability.canBeEquipped" value="true"/>
      <required-ability id="model.ability.native" value="true"/>
      <required-ability id="model.ability.refUnit" value="false"/>
      <required-goods id="model.goods.horses" value="25"/>

      <ability id="model.ability.disposeOnCombatLoss" value="true"/>
      <ability id="model.ability.mounted" value="true"/>
      <modifier id="model.modifier.defence" type="additive" value="1"/>
      <modifier id="model.modifier.offence" type="additive" value="1"/>
      <modifier id="model.modifier.movementBonus" type="additive" value="9"/>
      <role-change from="model.role.default" capture="model.role.scout"/>
      <role-change from="model.role.default" capture="model.role.dragoon"/>
      <role-change from="model.role.default" capture="model.role.cavalry"/>
    </role>

    <role id="model.role.armedBrave">
      <required-ability id="model.ability.canBeEquipped" value="true"/>
      <required-ability id="model.ability.native" value="true"/>
      <required-ability id="model.ability.refUnit" value="false"/>
      <required-goods id="model.goods.muskets" value="25"/>

      <ability id="model.ability.armed" value="true"/>
      <ability id="model.ability.disposeOnCombatLoss" value="true"/>
      <modifier id="model.modifier.defence" type="additive" value="1"/>
      <modifier id="model.modifier.offence" type="additive" value="2"/>
      <role-change from="model.role.default" capture="model.role.soldier"/>
      <role-change from="model.role.default" capture="model.role.infantry"/>
    </role>

    <role id="model.role.nativeDragoon" downgrade="model.role.armedBrave">
      <required-ability id="model.ability.canBeEquipped" value="true"/>
      <required-ability id="model.ability.native" value="true"/>
      <required-ability id="model.ability.refUnit" value="false"/>
      <required-goods id="model.goods.muskets" value="25"/>
      <required-goods id="model.goods.horses" value="25"/>

      <ability id="model.ability.armed" value="true"/>
      <ability id="model.ability.mounted" value="true"/>
      <modifier id="model.modifier.defence" type="additive" value="2"/>
      <modifier id="model.modifier.offence" type="additive" value="3"/>
      <modifier id="model.modifier.movementBonus" type="additive" value="9"/>
      <role-change from="model.role.mountedBrave" capture="model.role.soldier"/>
      <role-change from="model.role.mountedBrave" capture="model.role.infantry"/>
      <role-change from="model.role.armedBrave" capture="model.role.scout"/>
      <role-change from="model.role.armedBrave" capture="model.role.dragoon"/>
      <role-change from="model.role.armedBrave" capture="model.role.cavalry"/>
    </role>
  </roles>
</freecol-specification>
