Changeset View
Standalone View
binaries/data/mods/public/simulation/templates/template_unit_cavalry.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<Entity parent="template_unit"> | <Entity parent="template_unit"> | ||||
<Armour> | <Armour> | ||||
<Hack>3</Hack> | <Hack>3</Hack> | ||||
<Pierce>1</Pierce> | <Pierce>1</Pierce> | ||||
<Crush>15</Crush> | <Crush>15</Crush> | ||||
</Armour> | </Armour> | ||||
<Attack> | <Attack> | ||||
<Capture> | <Capture> | ||||
<Value>2</Value> | <Value>2</Value> | ||||
<MaxRange>4</MaxRange> | <MaxRange>4</MaxRange> | ||||
<RepeatTime>1000</RepeatTime> | <RepeatTime>1000</RepeatTime> | ||||
<RestrictedClasses datatype="tokens">Field Palisade SiegeWall StoneWall</RestrictedClasses> | <RestrictedClasses datatype="tokens">Field Palisade SiegeWall StoneWall</RestrictedClasses> | ||||
</Capture> | </Capture> | ||||
<Slaughter> | <Slaughter> | ||||
<Hack>100.0</Hack> | <InstantKill/> | ||||
Nescio: Shouldn't it have a
` <RestrictedClasses datatype="tokens">!Domestic</RestrictedClasses>`… | |||||
Done Inline ActionsProbably, but out of scope? Freagarach: Probably, but out of scope? | |||||
Done Inline ActionsActually I'm not sure, cause you can use the cavalry to gather from sheeps as well. Stan: Actually I'm not sure, cause you can use the cavalry to gather from sheeps as well. | |||||
Done Inline ActionsNow it is defined in "Attack.js" at "GetBestAttackAgainst" that, if the target has class domestic the entity wil always use Slaughter. Freagarach: Now it is defined in "Attack.js" at "GetBestAttackAgainst" that, if the target has class… | |||||
Done Inline ActionsUp to you I guess :) Stan: Up to you I guess :) | |||||
Done Inline ActionsI would say "no" given that this is more about "add instant-kill option to attacks" nowadays. wraitii: I would say "no" given that this is more about "add instant-kill option to attacks" nowadays. | |||||
Done Inline ActionsBy the way, the farm field has <Amount>Infinity</Amount>, not "infinite"; shouldn't the same form be used here for consistency? Nescio: By the way, the farm field has `<Amount>Infinity</Amount>`, not "infinite"; shouldn't the same… | |||||
<Pierce>0.0</Pierce> | |||||
<Crush>0.0</Crush> | |||||
<MaxRange>2</MaxRange> | <MaxRange>2</MaxRange> | ||||
</Slaughter> | </Slaughter> | ||||
</Attack> | </Attack> | ||||
<Cost> | <Cost> | ||||
<Population>1</Population> | <Population>1</Population> | ||||
<BuildTime>15</BuildTime> | <BuildTime>15</BuildTime> | ||||
<Resources> | <Resources> | ||||
<food>100</food> | <food>100</food> | ||||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |
Shouldn't it have a
<RestrictedClasses datatype="tokens">!Domestic</RestrictedClasses>
? Cf. template_unit_ship_fishing.xml