Ticket #3747: spart_changes.diff

File spart_changes.diff, 3.7 KB (added by sanderd17, 8 years ago)

My proposed changes to the template (it's somewhere between basic infantry and champion now, which fits the design)

  • binaries/data/mods/public/simulation/components/Cost.js

     
    2424    "</element>" +
    2525    "<element name='Resources' a:help='Resource costs to construct/train this unit'>" +
    2626        "<interleave>" +
    27             "<element name='food'><data type='nonNegativeInteger'/></element>" +
    28             "<element name='wood'><data type='nonNegativeInteger'/></element>" +
    29             "<element name='stone'><data type='nonNegativeInteger'/></element>" +
    30             "<element name='metal'><data type='nonNegativeInteger'/></element>" +
     27            "<element name='food'><ref name='nonNegativeDecimal'/></element>" +
     28            "<element name='wood'><ref name='nonNegativeDecimal'/></element>" +
     29            "<element name='stone'><ref name='nonNegativeDecimal'/></element>" +
     30            "<element name='metal'><ref name='nonNegativeDecimal'/></element>" +
    3131        "</interleave>" +
    3232    "</element>";
    3333
  • binaries/data/mods/public/simulation/templates/units/spart_champion_infantry_sword.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    2 <Entity parent="template_unit_infantry_melee_swordsman">
    3   <Builder>
    4     <Entities datatype="tokens">
    5       structures/spart_syssiton
    6       structures/spart_theatron
    7       -structures/{civ}_wallset_stone
    8     </Entities>
    9   </Builder>
     2<Entity parent="template_unit_champion_infantry_swordsman">
     3  <Armour>
     4    <Hack op="mul">0.75</Hack>
     5    <Pierce op="mul">0.75</Pierce>
     6    <Crush op="mul">0.75</Crush>
     7  </Armour>
     8  <Attack>
     9    <Capture>
     10      <Value op="mul">0.75</Value>
     11    </Capture>
     12    <Melee>
     13      <Hack op="mul">0.75</Hack>
     14      <Pierce op="mul">0.75</Pierce>
     15      <Crush op="mul">0.75</Crush>
     16      <MaxRange op="mul">0.75</MaxRange>
     17    </Melee>
     18  </Attack>
     19  <Cost>
     20    <BuildTime op="mul">0.75</BuildTime>
     21    <Resources>
     22      <food op="mul">0.75</food>
     23      <wood op="mul">0.75</wood>
     24      <stone op="mul">0.75</stone>
     25      <metal op="mul">0.75</metal>
     26    </Resources>
     27  </Cost>
     28  <Health>
     29    <Max op="mul">0.75</Max>
     30  </Health>
    1031  <Identity>
    1132    <Civ>spart</Civ>
    1233    <Lang>greek</Lang>
    1334    <GenericName>Skiritai Commando</GenericName>
    1435    <SpecificName>Ékdromos Skirítēs</SpecificName>
    15     <Rank>Elite</Rank>
    16     <History>Skiritae were some of the most reliable allied soldiers serving in the Spartan military.  They always had the honor of remaining on the left flank of a Spartan phalanx and (Thucydides 5.67) were deployed to face the any problem which could come to bear the army.  (Xenophon 4.2.1-4)</History>
     36    <History>Skiritae were some of the most reliable allied soldiers serving in the Spartan military.  They always had the honor of remaining on the left flank of a Spartan phalanx and (Thucydides 5.67) were deployed to face any problem which could come to bear the army.  (Xenophon 4.2.1-4)</History>
    1737    <Icon>units/spart_champion_infantry_sword.png</Icon>
    1838    <RequiredTechnology>phase_town</RequiredTechnology>
    1939  </Identity>
    20   <Promotion disable=""/>
    21   <ResourceGatherer>
    22     <BaseSpeed>0.5</BaseSpeed>
    23   </ResourceGatherer>
     40  <Loot>
     41    <xp op="mul">0.75</xp>
     42    <food op="mul">0.75</food>
     43    <wood op="mul">0.75</wood>
     44    <stone op="mul">0.75</stone>
     45    <metal op="mul">0.75</metal>
     46  </Loot>
    2447  <VisualActor>
    2548    <Actor>units/spartans/champion_infantry_sword.xml</Actor>
    2649  </VisualActor>