Ability for colonists to gain experience indoors

* Adds the ability for Free Colonists to gain experience when producing goods indoors and become experts.
* Percentage (probability) is based upon the skill level of the position.
  * Carpenter is skill level 1, so has up to a 4% chance
  * Statesmen and Preacher are skill level 3, so have up to a 2% chance
  * All other occupations are skill level 2 and thus carry up to a 3% chance
* The current default behavior of FreeCol is that outdoor activities all carry up to a 4% chance, regardless of skill level.
This commit is contained in:
David lewis 2022-10-27 16:04:40 -07:00
parent 888d34532e
commit 80c315cc97
No known key found for this signature in database
GPG Key ID: DD51818A856E61CB
1 changed files with 29 additions and 0 deletions

View File

@ -121,6 +121,35 @@
<scope ability-id="model.ability.upgradeConvert" ability-value="true"/>
</unit-type-change>
</unit-change-type>
<unit-change-type id="model.unitChange.experience" preserve="true">
<unit-type-change id="model.unitChange.experience.masterCarpenter"
from="model.unit.freeColonist"
to="model.unit.masterCarpenter" probability="4"/>
<unit-type-change id="model.unitChange.experience.firebrandPreacher"
from="model.unit.freeColonist"
to="model.unit.firebrandPreacher" probability="2"/>
<unit-type-change id="model.unitChange.experience.elderStatesman"
from="model.unit.freeColonist"
to="model.unit.elderStatesman" probability="2"/>
<unit-type-change id="model.unitChange.experience.masterDistiller"
from="model.unit.freeColonist"
to="model.unit.masterDistiller" probability="3"/>
<unit-type-change id="model.unitChange.experience.masterWeaver"
from="model.unit.freeColonist"
to="model.unit.masterWeaver" probability="3"/>
<unit-type-change id="model.unitChange.experience.masterTobacconist"
from="model.unit.freeColonist"
to="model.unit.masterTobacconist" probability="3"/>
<unit-type-change id="model.unitChange.experience.masterFurTrader"
from="model.unit.freeColonist"
to="model.unit.masterFurTrader" probability="3"/>
<unit-type-change id="model.unitChange.experience.masterBlacksmith"
from="model.unit.freeColonist"
to="model.unit.masterBlacksmith" probability="3"/>
<unit-type-change id="model.unitChange.experience.masterGunsmith"
from="model.unit.freeColonist"
to="model.unit.masterGunsmith" probability="3"/>
</unit-change-type>
</unit-change-types>
<founding-fathers>