Add visible class names to all common buildings

This was SVN commit r15196.
This commit is contained in:
sanderd17 2014-05-22 14:31:48 +00:00
parent ac1a9bf8d1
commit b55b6a9cf1
28 changed files with 57 additions and 41 deletions

View File

@ -556,6 +556,16 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, playerState, items, c
case CONSTRUCTION: case CONSTRUCTION:
var tooltip = getEntityNamesFormatted(template); var tooltip = getEntityNamesFormatted(template);
if (template.visibleIdentityClasses && template.visibleIdentityClasses.length)
{
tooltip += "\n[font=\"sans-bold-13\"]" + translate("Classes:") + "[/font] ";
tooltip += "[font=\"sans-13\"]" + translate(template.visibleIdentityClasses[0]) ;
for (var c = 1; c < template.visibleIdentityClasses.length; c++)
tooltip += ", " + translate(template.visibleIdentityClasses[c]);
tooltip += "[/font]";
}
if (template.tooltip) if (template.tooltip)
tooltip += "\n[font=\"sans-13\"]" + template.tooltip + "[/font]"; tooltip += "\n[font=\"sans-13\"]" + template.tooltip + "[/font]";

View File

@ -8,10 +8,10 @@
<SpecificName>Amoridas</SpecificName> <SpecificName>Amoridas</SpecificName>
<History>Figured to have it represent an armory; these were common, and not all Celts (truthfully, not even most) had to provide their own weapons. Just, they had to provide their own GOOD weapons and armor, but mass-produced spears and javelins and shields were distributed freely at need. The possession of a armory by the local lord was considered quite prestigious among the Celts, especially the larger examples found in Gaul that could maintain armies.</History> <History>Figured to have it represent an armory; these were common, and not all Celts (truthfully, not even most) had to provide their own weapons. Just, they had to provide their own GOOD weapons and armor, but mass-produced spears and javelins and shields were distributed freely at need. The possession of a armory by the local lord was considered quite prestigious among the Celts, especially the larger examples found in Gaul that could maintain armies.</History>
<RequiredTechnology>phase_village</RequiredTechnology> <RequiredTechnology>phase_village</RequiredTechnology>
<Classes datatype="tokens"> <VisibleClasses datatype="tokens">
-Town -Town
Village Village
</Classes> </VisibleClasses>
</Identity> </Identity>
<ProductionQueue> <ProductionQueue>
<Technologies datatype="tokens"> <Technologies datatype="tokens">

View File

@ -8,10 +8,10 @@
<SpecificName>Amoridas</SpecificName> <SpecificName>Amoridas</SpecificName>
<History>Figured to have it represent an armory; these were common, and not all Celts (truthfully, not even most) had to provide their own weapons. Just, they had to provide their own GOOD weapons and armor, but mass-produced spears and javelins and shields were distributed freely at need. The possession of a armory by the local lord was considered quite prestigious among the Celts, especially the larger examples found in Gaul that could maintain armies.</History> <History>Figured to have it represent an armory; these were common, and not all Celts (truthfully, not even most) had to provide their own weapons. Just, they had to provide their own GOOD weapons and armor, but mass-produced spears and javelins and shields were distributed freely at need. The possession of a armory by the local lord was considered quite prestigious among the Celts, especially the larger examples found in Gaul that could maintain armies.</History>
<RequiredTechnology>phase_village</RequiredTechnology> <RequiredTechnology>phase_village</RequiredTechnology>
<Classes datatype="tokens"> <VisibleClasses datatype="tokens">
-Town -Town
Village Village
</Classes> </VisibleClasses>
</Identity> </Identity>
<ProductionQueue> <ProductionQueue>
<Technologies datatype="tokens"> <Technologies datatype="tokens">

View File

@ -8,10 +8,10 @@
<SpecificName>Amoridas</SpecificName> <SpecificName>Amoridas</SpecificName>
<History>Figured to have it represent an armory; these were common, and not all Celts (truthfully, not even most) had to provide their own weapons. Just, they had to provide their own GOOD weapons and armor, but mass-produced spears and javelins and shields were distributed freely at need. The possession of a armory by the local lord was considered quite prestigious among the Celts, especially the larger examples found in Gaul that could maintain armies.</History> <History>Figured to have it represent an armory; these were common, and not all Celts (truthfully, not even most) had to provide their own weapons. Just, they had to provide their own GOOD weapons and armor, but mass-produced spears and javelins and shields were distributed freely at need. The possession of a armory by the local lord was considered quite prestigious among the Celts, especially the larger examples found in Gaul that could maintain armies.</History>
<RequiredTechnology>phase_village</RequiredTechnology> <RequiredTechnology>phase_village</RequiredTechnology>
<Classes datatype="tokens"> <VisibleClasses datatype="tokens">
-Town -Town
Village Village
</Classes> </VisibleClasses>
</Identity> </Identity>
<ProductionQueue> <ProductionQueue>
<Technologies datatype="tokens"> <Technologies datatype="tokens">

View File

@ -17,10 +17,10 @@
<Civ>pers</Civ> <Civ>pers</Civ>
<GenericName>Cavalry Stables</GenericName> <GenericName>Cavalry Stables</GenericName>
<SpecificName>Paraspa</SpecificName> <SpecificName>Paraspa</SpecificName>
<Classes datatype="tokens"> <VisibleClasses datatype="tokens">
-Barracks -Barracks
Stables Stables
</Classes> </VisibleClasses>
<History>Cavalry was primarily used as an elite assault force by the Persians.</History> <History>Cavalry was primarily used as an elite assault force by the Persians.</History>
<Tooltip>Train citizen-cavalry units.</Tooltip> <Tooltip>Train citizen-cavalry units.</Tooltip>
<Icon>structures/pers_stable.png</Icon> <Icon>structures/pers_stable.png</Icon>

View File

@ -28,7 +28,7 @@
<Civ>rome</Civ> <Civ>rome</Civ>
<GenericName>Tent</GenericName> <GenericName>Tent</GenericName>
<SpecificName>Tabernāculum</SpecificName> <SpecificName>Tabernāculum</SpecificName>
<Classes datatype="tokens">-Village</Classes> <VisibleClasses datatype="tokens">-Village</VisibleClasses>
<Tooltip>A temporary shelter for soldiers. +5 population bonus.</Tooltip> <Tooltip>A temporary shelter for soldiers. +5 population bonus.</Tooltip>
</Identity> </Identity>
<Obstruction> <Obstruction>

View File

@ -12,6 +12,6 @@
</Armour> </Armour>
<Identity> <Identity>
<GenericName>Civic Structure</GenericName> <GenericName>Civic Structure</GenericName>
<Classes datatype="tokens">Civic</Classes> <VisibleClasses datatype="tokens">Civic</VisibleClasses>
</Identity> </Identity>
</Entity> </Entity>

View File

@ -64,8 +64,8 @@
<Classes datatype="tokens"> <Classes datatype="tokens">
Defensive Defensive
CivCentre CivCentre
CivilCentre
</Classes> </Classes>
<VisibleClasses datatype="tokens">CivilCentre</VisibleClasses>
<Icon>structures/civic_centre.png</Icon> <Icon>structures/civic_centre.png</Icon>
<RequiredTechnology>phase_town</RequiredTechnology> <RequiredTechnology>phase_town</RequiredTechnology>
</Identity> </Identity>

View File

@ -29,7 +29,8 @@
<Identity> <Identity>
<GenericName>House</GenericName> <GenericName>House</GenericName>
<Tooltip>Increase the population limit.</Tooltip> <Tooltip>Increase the population limit.</Tooltip>
<Classes datatype="tokens">Village House -ConquestCritical</Classes> <Classes datatype="tokens">-ConquestCritical</Classes>
<VisibleClasses datatype="tokens">Village House</VisibleClasses>
<Icon>structures/house.png</Icon> <Icon>structures/house.png</Icon>
</Identity> </Identity>
<Loot> <Loot>

View File

@ -35,10 +35,10 @@
<Identity> <Identity>
<GenericName>Temple</GenericName> <GenericName>Temple</GenericName>
<Tooltip>Train healers. Garrison up to 20 units to heal them at a quick rate. Research healing and religious improvements. Heals nearby units, but slower than garrisoned units.</Tooltip> <Tooltip>Train healers. Garrison up to 20 units to heal them at a quick rate. Research healing and religious improvements. Heals nearby units, but slower than garrisoned units.</Tooltip>
<Classes datatype="tokens"> <VisibleClasses datatype="tokens">
Town Town
Temple Temple
</Classes> </VisibleClasses>
<Icon>structures/temple.png</Icon> <Icon>structures/temple.png</Icon>
<RequiredTechnology>phase_town</RequiredTechnology> <RequiredTechnology>phase_town</RequiredTechnology>
</Identity> </Identity>

View File

@ -12,6 +12,6 @@
</Armour> </Armour>
<Identity> <Identity>
<GenericName>Defensive Structure</GenericName> <GenericName>Defensive Structure</GenericName>
<Classes datatype="tokens">Defensive</Classes> <VisibleClasses datatype="tokens">Defensive</VisibleClasses>
</Identity> </Identity>
</Entity> </Entity>

View File

@ -59,7 +59,8 @@
<Identity> <Identity>
<GenericName>Defense Tower</GenericName> <GenericName>Defense Tower</GenericName>
<Tooltip>Shoots arrows. Garrison to provide extra defense.</Tooltip> <Tooltip>Shoots arrows. Garrison to provide extra defense.</Tooltip>
<Classes datatype="tokens">DefenseTower Town Tower GarrisonTower -ConquestCritical</Classes> <Classes datatype="tokens">Tower GarrisonTower -ConquestCritical</Classes>
<VisibleClasses datatype="tokens">Town DefenseTower</VisibleClasses>
<Icon>structures/defense_tower.png</Icon> <Icon>structures/defense_tower.png</Icon>
<RequiredTechnology>phase_town</RequiredTechnology> <RequiredTechnology>phase_town</RequiredTechnology>
</Identity> </Identity>

View File

@ -56,7 +56,8 @@
<Identity> <Identity>
<GenericName>Outpost</GenericName> <GenericName>Outpost</GenericName>
<Tooltip>Build in neutral and friendly territories to scout areas of the map. Slowly loses health while in neutral territory.</Tooltip> <Tooltip>Build in neutral and friendly territories to scout areas of the map. Slowly loses health while in neutral territory.</Tooltip>
<Classes datatype="tokens">Outpost Village Defensive -ConquestCritical</Classes> <Classes datatype="tokens">-ConquestCritical</Classes>
<VisibleClasses datatype="tokens">Village Outpost</VisibleClasses>
<Icon>structures/outpost.png</Icon> <Icon>structures/outpost.png</Icon>
</Identity> </Identity>
<Loot> <Loot>

View File

@ -26,7 +26,7 @@
<Identity> <Identity>
<GenericName>City Gate</GenericName> <GenericName>City Gate</GenericName>
<Tooltip>Allow units access through a city wall. Can be locked to prevent access.</Tooltip> <Tooltip>Allow units access through a city wall. Can be locked to prevent access.</Tooltip>
<Classes datatype="tokens">-ConquestCritical Defensive StoneWall Gates</Classes> <Classes datatype="tokens">-ConquestCritical StoneWall Gates</Classes>
<Icon>structures/gate.png</Icon> <Icon>structures/gate.png</Icon>
<RequiredTechnology>phase_town</RequiredTechnology> <RequiredTechnology>phase_town</RequiredTechnology>
</Identity> </Identity>

View File

@ -54,7 +54,7 @@
<Identity> <Identity>
<GenericName>Wall Turret</GenericName> <GenericName>Wall Turret</GenericName>
<Tooltip>Shoots arrows. Garrison to defend a city wall against attackers.</Tooltip> <Tooltip>Shoots arrows. Garrison to defend a city wall against attackers.</Tooltip>
<Classes datatype="tokens">Defensive -ConquestCritical StoneWall Tower</Classes> <Classes datatype="tokens">-ConquestCritical StoneWall Tower</Classes>
<Icon>structures/tower.png</Icon> <Icon>structures/tower.png</Icon>
<RequiredTechnology>phase_town</RequiredTechnology> <RequiredTechnology>phase_town</RequiredTechnology>
</Identity> </Identity>

View File

@ -12,6 +12,6 @@
</Armour> </Armour>
<Identity> <Identity>
<GenericName>Economic Structure</GenericName> <GenericName>Economic Structure</GenericName>
<Classes datatype="tokens">Economic</Classes> <VisibleClasses datatype="tokens">Economic</VisibleClasses>
</Identity> </Identity>
</Entity> </Entity>

View File

@ -20,7 +20,8 @@
<Identity> <Identity>
<GenericName>Farmstead</GenericName> <GenericName>Farmstead</GenericName>
<Tooltip>Dropsite for the food resource. Research food gathering improvements.</Tooltip> <Tooltip>Dropsite for the food resource. Research food gathering improvements.</Tooltip>
<Classes datatype="tokens">Village -ConquestCritical DropsiteFood Farmstead</Classes> <Classes datatype="tokens">-ConquestCritical DropsiteFood</Classes>
<VisibleClasses datatype="tokens">Village Farmstead</VisibleClasses>
<Icon>structures/farmstead.png</Icon> <Icon>structures/farmstead.png</Icon>
</Identity> </Identity>
<Loot> <Loot>

View File

@ -20,7 +20,8 @@
<Identity> <Identity>
<GenericName>Market</GenericName> <GenericName>Market</GenericName>
<Tooltip>Create trade units to trade between other markets. Barter resources. Research trading and bartering improvements.</Tooltip> <Tooltip>Create trade units to trade between other markets. Barter resources. Research trading and bartering improvements.</Tooltip>
<Classes datatype="tokens">Town Market BarterMarket -ConquestCritical</Classes> <Classes datatype="tokens">BarterMarket -ConquestCritical</Classes>
<VisibleClasses datatype="tokens">Town Market</VisibleClasses>
<Icon>structures/market.png</Icon> <Icon>structures/market.png</Icon>
<RequiredTechnology>phase_town</RequiredTechnology> <RequiredTechnology>phase_town</RequiredTechnology>
</Identity> </Identity>

View File

@ -21,13 +21,12 @@
<GenericName>Storehouse</GenericName> <GenericName>Storehouse</GenericName>
<Tooltip>Dropsite for wood, stone, and metal resources. Research gathering improvements for these resources.</Tooltip> <Tooltip>Dropsite for wood, stone, and metal resources. Research gathering improvements for these resources.</Tooltip>
<Classes datatype="tokens"> <Classes datatype="tokens">
Storehouse
Village
DropsiteWood DropsiteWood
DropsiteMetal DropsiteMetal
DropsiteStone DropsiteStone
-ConquestCritical -ConquestCritical
</Classes> </Classes>
<VisibleClasses datatype="tokens">Village Storehouse</VisibleClasses>
<Icon>structures/storehouse.png</Icon> <Icon>structures/storehouse.png</Icon>
</Identity> </Identity>
<Loot> <Loot>

View File

@ -12,6 +12,6 @@
</Armour> </Armour>
<Identity> <Identity>
<GenericName>Military Structure</GenericName> <GenericName>Military Structure</GenericName>
<Classes datatype="tokens">Military</Classes> <VisibleClasses datatype="tokens">Military</VisibleClasses>
</Identity> </Identity>
</Entity> </Entity>

View File

@ -28,10 +28,10 @@
<Identity> <Identity>
<GenericName>Barracks</GenericName> <GenericName>Barracks</GenericName>
<Tooltip>Train citizen-soldiers. Research training improvements. Garrison: 10.</Tooltip> <Tooltip>Train citizen-soldiers. Research training improvements. Garrison: 10.</Tooltip>
<Classes datatype="tokens"> <VisibleClasses datatype="tokens">
Village Village
Barracks Barracks
</Classes> </VisibleClasses>
<Icon>structures/barracks.png</Icon> <Icon>structures/barracks.png</Icon>
<RequiredTechnology>phase_village</RequiredTechnology> <RequiredTechnology>phase_village</RequiredTechnology>
</Identity> </Identity>

View File

@ -28,10 +28,10 @@
<Identity> <Identity>
<GenericName>Blacksmith</GenericName> <GenericName>Blacksmith</GenericName>
<Tooltip>Research weapons and armor improvements.</Tooltip> <Tooltip>Research weapons and armor improvements.</Tooltip>
<Classes datatype="tokens"> <VisibleClasses datatype="tokens">
Town Town
Blacksmith Blacksmith
</Classes> </VisibleClasses>
<Icon>structures/blacksmith.png</Icon> <Icon>structures/blacksmith.png</Icon>
<RequiredTechnology>phase_town</RequiredTechnology> <RequiredTechnology>phase_town</RequiredTechnology>
</Identity> </Identity>

View File

@ -23,7 +23,8 @@
<Identity> <Identity>
<GenericName>Dock</GenericName> <GenericName>Dock</GenericName>
<Tooltip>Build upon a shoreline to construct naval vessels and to open sea trade. Research naval improvements.</Tooltip> <Tooltip>Build upon a shoreline to construct naval vessels and to open sea trade. Research naval improvements.</Tooltip>
<Classes datatype="tokens">Village Naval Market NavalMarket Dock</Classes> <Classes datatype="tokens">Naval NavalMarket</Classes>
<VisibleClasses datatype="tokens">Economic Village Market Dock</VisibleClasses>
<Icon>structures/dock.png</Icon> <Icon>structures/dock.png</Icon>
</Identity> </Identity>
<Loot> <Loot>

View File

@ -21,10 +21,10 @@
</Health> </Health>
<Identity> <Identity>
<Civ>cart</Civ> <Civ>cart</Civ>
<Classes datatype="tokens"> <VisibleClasses datatype="tokens">
Town Town
Embassy Embassy
</Classes> </VisibleClasses>
<GenericName>Embassy</GenericName> <GenericName>Embassy</GenericName>
<RequiredTechnology>phase_town</RequiredTechnology> <RequiredTechnology>phase_town</RequiredTechnology>
</Identity> </Identity>
@ -57,4 +57,4 @@
<VisualActor> <VisualActor>
<FoundationActor>structures/fndn_3x3.xml</FoundationActor> <FoundationActor>structures/fndn_3x3.xml</FoundationActor>
</VisualActor> </VisualActor>
</Entity> </Entity>

View File

@ -59,12 +59,12 @@
<Identity> <Identity>
<GenericName>Fortress</GenericName> <GenericName>Fortress</GenericName>
<Tooltip>Train heroes, champions, and siege weapons. Research siege weapon improvements. Garrison: 20.</Tooltip> <Tooltip>Train heroes, champions, and siege weapons. Research siege weapon improvements. Garrison: 20.</Tooltip>
<Classes datatype="tokens"> <Classes datatype="tokens">GarrisonFortress</Classes>
City <VisibleClasses datatype="tokens">
Defensive Defensive
GarrisonFortress City
Fortress Fortress
</Classes> </VisibleClasses>
<Icon>structures/fortress.png</Icon> <Icon>structures/fortress.png</Icon>
<RequiredTechnology>phase_city</RequiredTechnology> <RequiredTechnology>phase_city</RequiredTechnology>
</Identity> </Identity>

View File

@ -15,7 +15,8 @@
</BuildRestrictions> </BuildRestrictions>
<Identity> <Identity>
<GenericName>Resource Structure</GenericName> <GenericName>Resource Structure</GenericName>
<Classes datatype="tokens">-ConquestCritical Resource</Classes> <Classes datatype="tokens">-ConquestCritical</Classes>
<VisibleClasses datatype="tokens">Resource</VisibleClasses>
</Identity> </Identity>
<Vision> <Vision>
<Range>4</Range> <Range>4</Range>

View File

@ -25,10 +25,10 @@
<Identity> <Identity>
<GenericName>Corral</GenericName> <GenericName>Corral</GenericName>
<Tooltip>Raise herd animals for food. Task domestic animals here to gain a trickle of food or other bonus (Not yet implemented).</Tooltip> <Tooltip>Raise herd animals for food. Task domestic animals here to gain a trickle of food or other bonus (Not yet implemented).</Tooltip>
<Classes datatype="tokens"> <VisibleClasses datatype="tokens">
Village Village
Corral Corral
</Classes> </VisibleClasses>
<Icon>structures/corral.png</Icon> <Icon>structures/corral.png</Icon>
</Identity> </Identity>
<Loot> <Loot>

View File

@ -22,7 +22,7 @@
</Health> </Health>
<Identity> <Identity>
<GenericName>Field</GenericName> <GenericName>Field</GenericName>
<Classes datatype="tokens">Field</Classes> <VisibleClasses datatype="tokens">Field</VisibleClasses>
<Tooltip>Harvest vegetables for food. Max gatherers: 5.</Tooltip> <Tooltip>Harvest vegetables for food. Max gatherers: 5.</Tooltip>
<History>Farming originated around 9500 BC in India and the Middle East. The history of agriculture is a central element of human history, as agricultural progress has been a crucial factor in worldwide socio-economic change. Wealth-building and militaristic specializations rarely seen in hunter-gatherer cultures are commonplace in agricultural and agro-industrial societies - when farmers became capable of producing food beyond the needs of their own families, others in the tribe/nation/empire were freed to devote themselves to projects other than food acquisition.</History> <History>Farming originated around 9500 BC in India and the Middle East. The history of agriculture is a central element of human history, as agricultural progress has been a crucial factor in worldwide socio-economic change. Wealth-building and militaristic specializations rarely seen in hunter-gatherer cultures are commonplace in agricultural and agro-industrial societies - when farmers became capable of producing food beyond the needs of their own families, others in the tribe/nation/empire were freed to devote themselves to projects other than food acquisition.</History>
<Icon>structures/field.png</Icon> <Icon>structures/field.png</Icon>