Ticket #3639: fix_mauryan_pillar_v1.patch
File fix_mauryan_pillar_v1.patch, 3.9 KB (added by , 8 years ago) |
---|
-
binaries/data/mods/public/gui/session/input.js
function getEntityLimitAndCount(playerSt 1347 1347 entCategory = template.trainingRestrictions.category; 1348 1348 else if (template.buildRestrictions) 1349 1349 entCategory = template.buildRestrictions.category; 1350 1350 if (entCategory && playerState.entityLimits[entCategory] != null) 1351 1351 { 1352 r.entLimit = playerState.entityLimits[entCategory] || Infinity;1352 r.entLimit = playerState.entityLimits[entCategory] || 0; 1353 1353 r.entCount = playerState.entityCounts[entCategory] || 0; 1354 1354 r.entLimitChangers = playerState.entityLimitChangers[entCategory]; 1355 1355 r.canBeAddedCount = Math.max(r.entLimit - r.entCount, 0); 1356 1356 } 1357 1357 return r; -
binaries/data/mods/public/simulation/templates/structures/iber_monument.xml
7 7 <Affects>Unit</Affects> 8 8 <Modifications> 9 9 <Attack.Melee.Hack> <Add>2</Add> </Attack.Melee.Hack> 10 10 <Attack.Ranged.Pierce> <Add>3</Add> </Attack.Ranged.Pierce> 11 11 </Modifications> 12 <AuraDescription>+2 Melee Hack Attack, +3 Ranged Pierce Attack for all units.</AuraDescription> 12 13 <OverlayIcon>art/textures/ui/session/auras/attack_bonus.png</OverlayIcon> 13 14 </Aura1> 14 15 </Auras> 15 16 <BuildRestrictions> 16 17 <Category>Monument</Category> … … 36 37 <Identity> 37 38 <Civ>iber</Civ> 38 39 <GenericName>Revered Monument</GenericName> 39 40 <SpecificName>Gur Oroigarri</SpecificName> 40 41 <Icon>structures/iberian_bull.png</Icon> 41 <Tooltip>All units within vision of this monument will fight harder. Effect Range: 50 meters. </Tooltip>42 <Tooltip>All units within vision of this monument will fight harder. Effect Range: 50 meters. Buildings in the territory of the monument will not decay.</Tooltip> 42 43 <History>The Iberians were a religious people who built small monuments to their various gods. These monuments could also serve as family tombs.</History> 43 44 </Identity> 44 45 <Obstruction> 45 46 <Static width="10.0" depth="10.0"/> 46 47 </Obstruction> -
binaries/data/mods/public/simulation/templates/structures/maur_pillar_ashoka.xml
1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <Entity parent="template_structure_special"> 3 <Auras> 4 <Aura1> 5 <Type>range</Type> 6 <Radius>50</Radius> 7 <Affects>Unit</Affects> 8 <Modifications> 9 <Attack.Melee.Hack> <Add>2</Add> </Attack.Melee.Hack> 10 <Attack.Ranged.Pierce> <Add>3</Add> </Attack.Ranged.Pierce> 11 </Modifications> 12 <OverlayIcon>art/textures/ui/session/auras/attack_bonus.png</OverlayIcon> 13 </Aura1> 14 </Auras> 3 15 <BuildRestrictions> 4 16 <Category>Pillar</Category> 5 17 </BuildRestrictions> 6 18 <Cost> 7 19 <BuildTime>80</BuildTime> … … 24 36 <Identity> 25 37 <Civ>maur</Civ> 26 38 <GenericName>Edict Pillar of Ashoka</GenericName> 27 39 <SpecificName>Śāsana Stambha Aśokā</SpecificName> 28 40 <Icon>structures/monument.png</Icon> 29 <Tooltip>The famous pillar of Ashoka. Currently a useless structure.</Tooltip>41 <Tooltip>The famous pillar of Ashoka. All units within vision of this monument will fight harder. Effect Range: 50 meters. Buildings in the territory of the monument will not decay.</Tooltip> 30 42 <History>.</History> 31 43 </Identity> 32 44 <Obstruction> 33 45 <Static width="4" depth="4"/> 34 46 </Obstruction>