Ticket #3639: fix_mauryan_pillar_v1.patch

File fix_mauryan_pillar_v1.patch, 3.9 KB (added by elexis, 8 years ago)
  • binaries/data/mods/public/gui/session/input.js

    function getEntityLimitAndCount(playerSt  
    13471347        entCategory = template.trainingRestrictions.category;
    13481348    else if (template.buildRestrictions)
    13491349        entCategory = template.buildRestrictions.category;
    13501350    if (entCategory && playerState.entityLimits[entCategory] != null)
    13511351    {
    1352         r.entLimit = playerState.entityLimits[entCategory] || Infinity;
     1352        r.entLimit = playerState.entityLimits[entCategory] || 0;
    13531353        r.entCount = playerState.entityCounts[entCategory] || 0;
    13541354        r.entLimitChangers = playerState.entityLimitChangers[entCategory];
    13551355        r.canBeAddedCount = Math.max(r.entLimit - r.entCount, 0);
    13561356    }
    13571357    return r;
  • binaries/data/mods/public/simulation/templates/structures/iber_monument.xml

     
    77      <Affects>Unit</Affects>
    88      <Modifications>
    99        <Attack.Melee.Hack> <Add>2</Add> </Attack.Melee.Hack>
    1010        <Attack.Ranged.Pierce> <Add>3</Add> </Attack.Ranged.Pierce>
    1111      </Modifications>
     12      <AuraDescription>+2 Melee Hack Attack, +3 Ranged Pierce Attack for all units.</AuraDescription>
    1213      <OverlayIcon>art/textures/ui/session/auras/attack_bonus.png</OverlayIcon>
    1314    </Aura1>
    1415  </Auras>
    1516  <BuildRestrictions>
    1617    <Category>Monument</Category>
     
    3637  <Identity>
    3738    <Civ>iber</Civ>
    3839    <GenericName>Revered Monument</GenericName>
    3940    <SpecificName>Gur Oroigarri</SpecificName>
    4041    <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>
    4243    <History>The Iberians were a religious people who built small monuments to their various gods. These monuments could also serve as family tombs.</History>
    4344  </Identity>
    4445  <Obstruction>
    4546    <Static width="10.0" depth="10.0"/>
    4647  </Obstruction>
  • binaries/data/mods/public/simulation/templates/structures/maur_pillar_ashoka.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    22<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>
    315  <BuildRestrictions>
    416    <Category>Pillar</Category>
    517  </BuildRestrictions>
    618  <Cost>
    719    <BuildTime>80</BuildTime>
     
    2436  <Identity>
    2537    <Civ>maur</Civ>
    2638    <GenericName>Edict Pillar of Ashoka</GenericName>
    2739    <SpecificName>Śāsana Stambha Aśokā</SpecificName>
    2840    <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>
    3042    <History>.</History>
    3143  </Identity>
    3244  <Obstruction>
    3345    <Static width="4" depth="4"/>
    3446  </Obstruction>