Ticket #3904: tooltip.3.diff

File tooltip.3.diff, 27.6 KB (added by fatherbushido, 8 years ago)

thx for 2nd batch of remarks

  • binaries/data/mods/public/globalscripts/Templates.js

    function GetTemplateDataHelper(template,  
    130130                    "description": aura.auraDescription || null
    131131                };
    132132        }
    133133    }
    134134
     135    if (template.BuildingAI)
     136    {
     137        ret.buildingAI = {};
     138        if (template.BuildingAI.DefaultArrowCount)
     139            ret.buildingAI.defaultArrowCount = func("BuildingAI/DefaultArrowCount", +template.BuildingAI.DefaultArrowCount, player, template);
     140        if (template.BuildingAI.GarrisonArrowMultiplier)
     141            ret.buildingAI.garrisonArrowMultiplier = func("BuildingAI/GarrisonArrowMultiplier", +template.BuildingAI.GarrisonArrowMultiplier, player, template);
     142        if (template.BuildingAI.MaxArrowCount)
     143            ret.buildingAI.maxArrowCount = func("BuildingAI/MaxArrowCount", +template.BuildingAI.MaxArrowCount, player, template);
     144    }
     145
    135146    if (template.BuildRestrictions)
    136147    {
    137148        // required properties
    138149        ret.buildRestrictions = {
    139150            "placementType": template.BuildRestrictions.PlacementType,
    function GetTemplateDataHelper(template,  
    181192            ret.footprint.circle = {"radius": +template.Footprint.Circle["@radius"]};
    182193        else
    183194            warn("GetTemplateDataHelper(): Unrecognized Footprint type");
    184195    }
    185196
     197    if (template.GarrisonHolder)
     198    {
     199        ret.garrisonHolder = {};
     200        if (template.GarrisonHolder.Max)
     201            ret.garrisonHolder.max = func("GarrisonHolder/Max", +template.GarrisonHolder.Max, player, template);
     202    }
     203
    186204    if (template.Obstruction)
    187205    {
    188206        ret.obstruction = {
    189207            "active": ("" + template.Obstruction.Active == "true"),
    190208            "blockMovement": ("" + template.Obstruction.BlockMovement == "true"),
  • binaries/data/mods/public/gui/common/tooltips.js

    function attackRateDetails(entState, typ  
    5757        "time": time,
    5858        "second": g_TooltipTextFormats.unit[0] + translatePlural("second", "seconds", time) + g_TooltipTextFormats.unit[1]
    5959    });
    6060
    6161    // or multiple arrows shot by BuildingAI
    62     if (!entState.buildingAI)
     62    if (!entState.buildingAI || type != "Ranged")
    6363        return timeString;
    6464
    65     let arrows = entState.buildingAI.arrowCount;
     65    let arrows = entState.buildingAI.arrowCount || entState.buildingAI.defaultArrowCount;
    6666    let arrowString = sprintf(translatePlural("%(arrowcount)s %(arrow)s", "%(arrowcount)s %(arrow)s", arrows), {
    6767        "arrowcount": arrows,
    6868        "arrow": g_TooltipTextFormats.unit[0] + translatePlural("arrow", "arrows", arrows) + g_TooltipTextFormats.unit[1]
    6969    });
    7070
    function getAttackTooltip(template)  
    160160{
    161161    let attacks = [];
    162162    if (!template.attack)
    163163        return "";
    164164
    165     let rateLabel = g_TooltipTextFormats.header[0] + (template.buildingAI ? translate("Interval:") : translate("Rate:")) + g_TooltipTextFormats.header[1];
    166 
    167165    for (let type in template.attack)
    168166    {
    169167        if (type == "Slaughter")
    170168            continue; // Slaughter is not a real attack, so do not show it.
    171169        if (type == "Charge")
    172170            continue; // Charging isn't implemented yet and shouldn't be displayed.
    173171
     172        let rateLabel = template.buildingAI && type == "Ranged" ? translate("Interval:") : translate("Rate:");
     173
    174174        let rate = sprintf(translate("%(label)s %(details)s"), {
    175             "label": rateLabel,
     175            "label": g_TooltipTextFormats.header[0] + rateLabel + g_TooltipTextFormats.header[1],
    176176            "details": attackRateDetails(template, type)
    177177        });
    178178
    179179        let attackLabel = g_TooltipTextFormats.header[0] + getAttackTypeLabel(type) + g_TooltipTextFormats.header[1];
    180180        if (type == "Capture")
    function getEntityCostTooltip(template,  
    392392
    393393    return "";
    394394}
    395395
    396396/**
     397 * Returns the garrison information to display in the specified entity's construction and training button tooltip.
     398 */
     399function getGarrisonTooltip(template)
     400{
     401    let garrison = "";
     402    if (template.garrisonHolder && template.garrisonHolder.max)
     403        garrison = "\n" + sprintf(translate("%(label)s %(max)s"), {
     404            "label": translate("Garrison Limit:"),
     405            "max": template.garrisonHolder.max
     406        });
     407    return garrison;
     408}
     409
     410/**
     411 * Returns the information about building arrows to display in the specified entity's construction and training button tooltip.
     412 */
     413function getGarrisonedArrowsTooltip(template)
     414{
     415    let arrow = "";
     416    if (!template.buildingAI)
     417        return arrow;
     418    if (template.buildingAI.maxArrowCount)
     419        arrow += "\n" + sprintf(translate("%(label)s %(arrowLimit)s"), {
     420            "label": translate("Projectiles limit:"),
     421            "arrowLimit": template.buildingAI.maxArrowCount
     422        });
     423    if (template.buildingAI.garrisonArrowMultiplier)
     424        arrow += "\n" + sprintf(translate("%(label)s %(arrowMultiplier)s"), {
     425            "label": translate("Projectiles per garrisoned unit:"),
     426            "arrowMultiplier": template.buildingAI.garrisonArrowMultiplier
     427        });
     428    return arrow;
     429}
     430
     431/**
    397432 * Returns the population bonus information to display in the specified entity's construction button tooltip.
    398433 */
    399434function getPopulationBonusTooltip(template)
    400435{
    401436    let popBonus = "";
  • binaries/data/mods/public/gui/session/selection_panels.js

    g_SelectionPanels.Construction = {  
    309309
    310310        let tooltip = getEntityNamesFormatted(template);
    311311        tooltip += getVisibleEntityClassesFormatted(template);
    312312        tooltip += getAurasTooltip(template);
    313313
     314        tooltip += "[font=\"sans-13\"]"
    314315        if (template.tooltip)
    315             tooltip += "\n[font=\"sans-13\"]" + template.tooltip + "[/font]";
    316 
     316            tooltip += "\n" + template.tooltip;
     317        tooltip += getGarrisonTooltip(template) + getGarrisonedArrowsTooltip(template) + "[/font]";
    317318        tooltip += "\n" + getEntityCostTooltip(template);
    318319        tooltip += getPopulationBonusTooltip(template);
    319320
    320321        tooltip += formatLimitString(limits.entLimit, limits.entCount, limits.entLimitChangers);
    321322
    g_SelectionPanels.Training = {  
    993994
    994995        tooltip += getEntityNamesFormatted(template);
    995996        tooltip += getVisibleEntityClassesFormatted(template);
    996997        tooltip += getAurasTooltip(template);
    997998
     999        tooltip += "[font=\"sans-13\"]"
    9981000        if (template.tooltip)
    999             tooltip += "\n[font=\"sans-13\"]" + template.tooltip + "[/font]";
    1000 
     1001            tooltip += "\n" + template.tooltip;
     1002        tooltip += getGarrisonTooltip(template) + getGarrisonedArrowsTooltip(template) + "[/font]";
    10011003        tooltip += "\n" + getEntityCostTooltip(template, trainNum, data.unitEntState.id);
    10021004
    10031005        let limits = getEntityLimitAndCount(data.playerState, data.item);
    10041006
    10051007        tooltip += formatLimitString(limits.entLimit, limits.entCount, limits.entLimitChangers);
  • binaries/data/mods/public/simulation/templates/other/hellenic_epic_temple.xml

     
    2727  <Identity>
    2828    <Civ>gaia</Civ>
    2929    <GenericName>Epic Temple</GenericName>
    3030    <SpecificName>Naos Parthenos</SpecificName>
    3131    <History>The Hellenes built marvelous temples in order to honour their polytheistic pantheon. While all gods were venerated, a specific patron deity was supposed to watch over each polis.</History>
    32     <Tooltip>Garrison up to 30 units to heal them at a quick rate.</Tooltip>
     32    <Tooltip>Garrison units to heal them at a quick rate.</Tooltip>
    3333  </Identity>
    3434  <Loot>
    3535    <xp>50</xp>
    3636    <food>0</food>
    3737    <wood>0</wood>
  • binaries/data/mods/public/simulation/templates/structures/athen_fortress.xml

     
    55    <Height>8.0</Height>
    66  </Footprint>
    77  <Identity>
    88    <Civ>athen</Civ>
    99    <SpecificName>Epiteíkhisma</SpecificName>
    10     <Tooltip>Build siege engines. Garrison up to 20 soldiers inside for stout defense.</Tooltip>
     10    <Tooltip>Build siege engines. Garrison soldiers inside for stout defense.</Tooltip>
    1111    <History>Fortresses (also called "Phroúria") were built to guard passes and atop hills in order to command plains and valleys below. One such Athenian fortress, Gyphtokastro, guarded the pass from Attica into Boeotia.</History>
    1212  </Identity>
    1313  <Obstruction>
    1414    <Static width="24.0" depth="26.0"/>
    1515  </Obstruction>
  • binaries/data/mods/public/simulation/templates/structures/athen_wonder.xml

     
    1212  </GarrisonHolder>
    1313  <Identity>
    1414    <Civ>athen</Civ>
    1515    <SpecificName>Naós Parthenṓn</SpecificName>
    1616    <History>The Hellenes built marvelous temples in order to honour their polytheistic pantheon. While all gods were venerated, a specific patron deity was supposed to watch over each polis.</History>
    17     <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison up to 30 units to heal them at an extremely quick rate.</Tooltip>
     17    <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison units to heal them at an extremely quick rate.</Tooltip>
    1818  </Identity>
    1919  <Obstruction>
    2020    <Static width="27.0" depth="57.0"/>
    2121  </Obstruction>
    2222  <VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/cart_temple.xml

     
    1111  </Footprint>
    1212  <Identity>
    1313    <Civ>cart</Civ>
    1414    <SpecificName>Maqdaš</SpecificName>
    1515    <History>What little we know of the Carthaginian religion has be pieced together from scattered sources. Tanit, a fertility goddess, was one of two principle gods in the Carthaginian pantheon, the other being her consort Ba'al, a deity of Phoenician origin.</History>
    16     <Tooltip>Train priestesses to heal your troops. Train Sacred Band pikemen. Garrison up to 20 units to heal them at a quick rate.</Tooltip>
     16    <Tooltip>Train priestesses to heal your troops. Train Sacred Band pikemen. Garrison units to heal them at a quick rate.</Tooltip>
    1717  </Identity>
    1818  <Obstruction>
    1919    <Static width="17.0" depth="30.0"/>
    2020  </Obstruction>
    2121  <ProductionQueue>
  • binaries/data/mods/public/simulation/templates/structures/cart_wonder.xml

     
    1212  </GarrisonHolder>
    1313  <Identity>
    1414   <Civ>cart</Civ>
    1515    <SpecificName>Temple of Ba'al Hammon</SpecificName>
    1616    <History>Dating from the 2nd Century BC, the Mausoleum of Atban in northern Tunisia is over twenty metres high and was built by the inhabitants of Dougga for a Numidian prince.</History>
    17     <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison up to 30 units to heal them at an extremely quick rate.</Tooltip>
     17    <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison units to heal them at an extremely quick rate.</Tooltip>
    1818  </Identity>
    1919  <Obstruction>
    2020    <Static width="27.0" depth="57.0"/>
    2121  </Obstruction>
    2222  <VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/mace_fortress.xml

     
    1111    <Height>8.0</Height>
    1212  </Footprint>
    1313  <Identity>
    1414    <Civ>mace</Civ>
    1515    <SpecificName>Teíchisma</SpecificName>
    16     <Tooltip>Train Champions and Heroes. Garrison up to 20 soldiers inside for stout defense.</Tooltip>
     16    <Tooltip>Train Champions and Heroes. Garrison soldiers inside for stout defense.</Tooltip>
    1717    <History>The Akropolis was usually a fortified citadel in the upper part of the city. The Athenian Akropolis was renowned for its marvelous temples, among which was the Parthenon, while the Acro-Corinthus was highly prized by the Macedonians for its strategic location and good defenses. Fortresses (also called a "phrourion") were also built to guard passes and atop hills in order to command plains and valleys below.</History>
    1818  </Identity>
    1919  <Obstruction>
    2020    <Static width="24.0" depth="26.0"/>
    2121  </Obstruction>
  • binaries/data/mods/public/simulation/templates/structures/mace_wonder.xml

     
    1212  </GarrisonHolder>
    1313  <Identity>
    1414    <Civ>mace</Civ>
    1515    <SpecificName>Naós Parthenṓn</SpecificName>
    1616    <History>The Hellenes built marvelous temples in order to honour their polytheistic pantheon. While all gods were venerated, a specific patron deity was supposed to watch over each polis.</History>
    17     <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison up to 30 units to heal them at an extremely quick rate.</Tooltip>
     17    <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison units to heal them at an extremely quick rate.</Tooltip>
    1818  </Identity>
    1919  <Obstruction>
    2020    <Static width="27.0" depth="57.0"/>
    2121  </Obstruction>
    2222  <VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/ptol_barracks.xml

     
    1313    <SpawnEntityOnDeath>rubble/rubble_stone_5x5</SpawnEntityOnDeath>
    1414  </Health>
    1515  <Identity>
    1616    <Civ>ptol</Civ>
    1717    <SpecificName>ḥwt-n-mš'</SpecificName>
    18     <Tooltip>Train Egyptian and Middle-Eastern citizen-soldiers. Research training improvements. Garrison: 10.</Tooltip>
     18    <Tooltip>Train Egyptian and Middle-Eastern citizen-soldiers. Research training improvements.</Tooltip>
    1919  </Identity>
    2020  <Obstruction>
    2121    <Static width="20.0" depth="20.0"/>
    2222  </Obstruction>
    2323  <VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/ptol_wonder.xml

     
    1212  </GarrisonHolder>
    1313  <Identity>
    1414    <Civ>ptol</Civ>
    1515    <SpecificName>Temple of Edfu</SpecificName>
    1616    <History>The Temple of Edfu is an ancient Egyptian temple located on the west bank of the Nile in the city of Edfu which was known in Greco-Roman times as Apollonopolis Magna, after the chief god Horus-Apollo.The temple, dedicated to the falcon god Horus, was built in the Ptolemaic period between 237 and 57 BCE. In modern times, it is one of the best preserved temples of Egypt.</History>
    17     <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison up to 30 units to heal them at an extremely quick rate.</Tooltip>
     17    <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison units to heal them at an extremely quick rate.</Tooltip>
    1818  </Identity>
    1919  <Obstruction>
    2020    <Static width="44.0" depth="60.0"/>
    2121  </Obstruction>
    2222  <VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/rome_temple_mars.xml

     
    1010  <Identity>
    1111    <Civ>rome</Civ>
    1212    <GenericName>Temple of Mars</GenericName>
    1313    <SpecificName>Aedes Martis</SpecificName>
    1414    <History>Roman temples in general were not meant for congregational worship. Instead the temple housed a statue of whatever deity the temple was dedicated to and what was needed to carry out the ceremonial and cultic practice necessary for worship. Any actual worship activity was performed outside.</History>
    15     <Tooltip>Train healers. Garrison up to 30 units to heal them at a quick rate.</Tooltip>
     15    <Tooltip>Train healers. Garrison units to heal them at a quick rate.</Tooltip>
    1616  </Identity>
    1717  <Obstruction>
    1818    <Static width="20.0" depth="40.0"/>
    1919  </Obstruction>
    2020  <TerritoryInfluence>
  • binaries/data/mods/public/simulation/templates/structures/rome_wonder.xml

     
    1111    <BuffHeal>8</BuffHeal>
    1212  </GarrisonHolder>
    1313  <Identity>
    1414    <Civ>rome</Civ>
    1515    <SpecificName>Aedes Iovis Optimi Maximi</SpecificName>
    16     <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison up to 30 units to heal them at an extremely quick rate.</Tooltip>
     16    <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison units to heal them at an extremely quick rate.</Tooltip>
    1717  </Identity>
    1818  <Obstruction>
    1919    <Static width="20.0" depth="40.0"/>
    2020  </Obstruction>
    2121  <VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/sele_fortress.xml

     
    55    <Height>8.0</Height>
    66  </Footprint>
    77  <Identity>
    88    <Civ>sele</Civ>
    99    <SpecificName>Phrourion</SpecificName>
    10     <Tooltip>Build siege engines and train Champions. Garrison up to 20 soldiers inside for stout defense.</Tooltip>
     10    <Tooltip>Build siege engines and train Champions. Garrison soldiers inside for stout defense.</Tooltip>
    1111    <History>Fortresses were built to guard passes and atop hills in order to command plains and valleys below.</History>
    1212  </Identity>
    1313  <Obstruction>
    1414    <Static width="24.0" depth="26.0"/>
    1515  </Obstruction>
  • binaries/data/mods/public/simulation/templates/structures/spart_wonder.xml

     
    1212  </GarrisonHolder>
    1313  <Identity>
    1414    <Civ>spart</Civ>
    1515    <SpecificName>Naós Parthenṓn</SpecificName>
    1616    <History>The Hellenes built marvelous temples in order to honour their polytheistic pantheon. While all gods were venerated, a specific patron deity was supposed to watch over each polis.</History>
    17     <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison up to 30 units to heal them at a quick rate.</Tooltip>
     17    <Tooltip>Bring glory to your civilization and add large tracts of land to your empire. Garrison units to heal them at a quick rate.</Tooltip>
    1818  </Identity>
    1919  <Obstruction>
    2020    <Static width="27.0" depth="57.0"/>
    2121  </Obstruction>
    2222  <VisualActor>
  • binaries/data/mods/public/simulation/templates/template_structure_civic_civil_centre.xml

     
    6464    <Max>3000</Max>
    6565    <SpawnEntityOnDeath>rubble/rubble_stone_6x6</SpawnEntityOnDeath>
    6666  </Health>
    6767  <Identity>
    6868    <GenericName>Civic Center</GenericName>
    69     <Tooltip>Build to acquire large tracts of territory. Train citizens. Garrison: 20.</Tooltip>
     69    <Tooltip>Build to acquire large tracts of territory. Train citizens.</Tooltip>
    7070    <Classes datatype="tokens">Defensive CivCentre</Classes>
    7171    <VisibleClasses datatype="tokens">CivilCentre</VisibleClasses>
    7272    <Icon>structures/civic_centre.png</Icon>
    7373  </Identity>
    7474  <Loot>
  • binaries/data/mods/public/simulation/templates/template_structure_civic_temple.xml

     
    2727    <Max>2000</Max>
    2828    <SpawnEntityOnDeath>rubble/rubble_stone_4x6</SpawnEntityOnDeath>
    2929  </Health>
    3030  <Identity>
    3131    <GenericName>Temple</GenericName>
    32     <Tooltip>Train healers. Garrison up to 20 units to heal them at a quick rate (3 HP per second). Research healing and religious improvements.</Tooltip>
     32    <Tooltip>Train healers. Garrison units to heal them at a quick rate (3 HP per second). Research healing and religious improvements.</Tooltip>
    3333    <VisibleClasses datatype="tokens">Town Temple</VisibleClasses>
    3434    <Icon>structures/temple.png</Icon>
    3535    <RequiredTechnology>phase_town</RequiredTechnology>
    3636  </Identity>
    3737  <Loot>
  • binaries/data/mods/public/simulation/templates/template_structure_military_barracks.xml

     
    2525    <Max>2000</Max>
    2626    <SpawnEntityOnDeath>rubble/rubble_stone_4x4</SpawnEntityOnDeath>
    2727  </Health>
    2828  <Identity>
    2929    <GenericName>Barracks</GenericName>
    30     <Tooltip>Train citizen-soldiers. Research training improvements. Garrison: 10.</Tooltip>
     30    <Tooltip>Train citizen-soldiers. Research training improvements.</Tooltip>
    3131    <VisibleClasses datatype="tokens">Village Barracks</VisibleClasses>
    3232    <Icon>structures/barracks.png</Icon>
    3333    <RequiredTechnology>phase_village</RequiredTechnology>
    3434  </Identity>
    3535  <Loot>
  • binaries/data/mods/public/simulation/templates/template_structure_military_fortress.xml

     
    5959    <Max>4200</Max>
    6060    <SpawnEntityOnDeath>rubble/rubble_stone_6x6</SpawnEntityOnDeath>
    6161  </Health>
    6262  <Identity>
    6363    <GenericName>Fortress</GenericName>
    64     <Tooltip>Train heroes, champions, and siege weapons. Research siege weapon improvements. Garrison: 20.</Tooltip>
     64    <Tooltip>Train heroes, champions, and siege weapons. Research siege weapon improvements.</Tooltip>
    6565    <Classes datatype="tokens">GarrisonFortress</Classes>
    6666    <VisibleClasses datatype="tokens">Defensive City Fortress</VisibleClasses>
    6767    <Icon>structures/fortress.png</Icon>
    6868    <RequiredTechnology>phase_city</RequiredTechnology>
    6969  </Identity>
  • binaries/data/mods/public/simulation/templates/template_unit_mechanical_ship_bireme.xml

     
    4545  </Health>
    4646  <Identity>
    4747    <GenericName>Light Warship</GenericName>
    4848    <Classes datatype="tokens">Warship Light Bow Ranged</Classes>
    4949    <RequiredTechnology>phase_town</RequiredTechnology>
    50     <Tooltip>Garrison up to 20 units for transport. Garrison increases the firepower up to 10 arrows.</Tooltip>
     50    <Tooltip>Garrison units for transport and to increase firepower.</Tooltip>
    5151  </Identity>
    5252  <ResourceGatherer disable=""/>
    5353  <Sound>
    5454    <SoundGroups>
    5555      <attack>attack/weapon/arrowfly.xml</attack>
  • binaries/data/mods/public/simulation/templates/template_unit_mechanical_ship_quinquereme.xml

     
    5151  <Health>
    5252    <Max>2000</Max>
    5353  </Health>
    5454  <Identity>
    5555    <GenericName>Heavy Warship</GenericName>
    56     <Tooltip>Garrison up to 10 catapults to increase fire power.</Tooltip>
     56    <Tooltip>Garrison units for transport and to increase firepower.</Tooltip>
    5757    <Classes datatype="tokens">Warship Heavy Ranged</Classes>
    5858    <RequiredTechnology>phase_city</RequiredTechnology>
    5959  </Identity>
    6060  <Sound>
    6161    <SoundGroups>
  • binaries/data/mods/public/simulation/templates/template_unit_mechanical_ship_trireme.xml

     
    4545  </Health>
    4646  <Identity>
    4747    <GenericName>Medium Warship</GenericName>
    4848    <VisibleClasses datatype="tokens">Warship Medium Ranged</VisibleClasses>
    4949    <RequiredTechnology>phase_town</RequiredTechnology>
    50     <Tooltip>Garrison up to 30 units for transport. Garrison increases the firepower up to 13 arrows.</Tooltip>
     50    <Tooltip>Garrison units for transport and to increase firepower.</Tooltip>
    5151  </Identity>
    5252  <ResourceGatherer disable=""/>
    5353  <Sound>
    5454    <SoundGroups>
    5555      <attack>attack/weapon/arrowfly.xml</attack>
  • binaries/data/mods/public/simulation/templates/template_unit_mechanical_siege_tower.xml

     
    5353    <Max>500</Max>
    5454  </Health>
    5555  <Identity>
    5656    <GenericName>Siege Tower</GenericName>
    5757    <Classes datatype="tokens">Ranged SiegeTower</Classes>
    58     <Tooltip>Garrison up to 20 infantry inside to increase arrow count from 0 to 10.</Tooltip>
     58    <Tooltip>Garrison units to increase firepower.</Tooltip>
    5959  </Identity>
    6060  <Selectable>
    6161    <Overlay>
    6262      <Texture>
    6363        <MainTexture>circle/256x256.png</MainTexture>