Changes between Version 4 and Version 5 of PortA24ToA25


Ignore:
Timestamp:
Mar 3, 2021, 9:06:20 AM (3 years ago)
Author:
Freagarach
Comment:

D3303

Legend:

Unmodified
Added
Removed
Modified
  • PortA24ToA25

    v4 v5  
    1111In ResourceSupply, there is now an option for timers, hence `Amount` is changed to `Max` (with a possibility for `Initial`).
    1212One can use `find . -type f | xargs sed -i 's/Amount>/Max>/g'` to fix their templates.
     13
     14=== r24989 ===
     15Treasures now have their rewards in a seperate component. So instead of:
     16{{{
     17  <ResourceSupply>
     18    <Max>300</Max>
     19    <Type>treasure.stone</Type>
     20  </ResourceSupply>
     21}}}
     22one should now write:
     23{{{
     24  <Treasure>
     25    <Resources>
     26      <stone>300</stone>
     27    </Resources>
     28    <CollectTime>1000</CollectTime>
     29  </Treasure>
     30}}}
     31(yes, this means one can reward multiple resources with one treasure).
     32Also the people gathering those treasures don't need a rate in their `ResourceGatherer` component anymore, but they have a seperate component as well :)
     33{{{
     34    <Rates>
     35      <treasure>1</treasure>
     36    </Rates>
     37}}}
     38{{{
     39  <TreasureCollecter>
     40    <MaxDistance>2</MaxDistance>
     41  </TreasureCollecter>
     42}}}
     43Notice here that `rate` was previously unused for treasures and there is no such entry now.