Ticket #3059: woodenTower.diff

File woodenTower.diff, 12.6 KB (added by mimo, 9 years ago)
  • binaries/data/mods/public/simulation/ai/petra/headquarters.js

     
    14501450        }
    14511451    }
    14521452
    1453     if (this.Config.Military.numWoodenTowers && gameState.currentPhase() < 2 && this.canBuild(gameState, "other/palisades_rocks_fort"))
     1453    if (this.Config.Military.numWoodenTowers && gameState.currentPhase() < 2 && this.canBuild(gameState, "structures/{civ}_wooden_tower"))
    14541454    {
    14551455        let numTowers = gameState.getOwnEntitiesByClass("Tower", true).length;  // we count all towers, including wall towers
    14561456        if (numTowers < this.Config.Military.numWoodenTowers && gameState.ai.elapsedTime > this.towerLapseTime + this.fortStartTime)
    14571457        {
    14581458            this.fortStartTime = gameState.ai.elapsedTime;
    1459             queues.defenseBuilding.addItem(new m.ConstructionPlan(gameState, "other/palisades_rocks_fort"));
     1459            queues.defenseBuilding.addItem(new m.ConstructionPlan(gameState, "structures/{civ}_wooden_tower"));
    14601460        }
    14611461        return;
    14621462    }
  • binaries/data/mods/public/simulation/data/technologies/attack_tower_watch.json

     
    1010    },
    1111    "description": "A night's watch increases vigilance.",
    1212    "cost": {"food": 500, "wood": 0, "stone": 0, "metal": 0},
    13     "requirements": {"tech": "phase_town"},
    14     "requirementsTooltip": "Unlocked in Town Phase.",
     13    "requirements": {"tech": "phase_village"},
     14    "requirementsTooltip": "Unlocked in Village Phase.",
    1515    "icon": "helmet_corinthian_bronze.png",
    1616    "researchTime": 40,
    1717    "tooltip": "Post sentries to add one arrow to towers.",
  • binaries/data/mods/public/simulation/templates/other/palisades_rocks_fort.xml

     
    2121      <stone>0</stone>
    2222    </Resources>
    2323  </Cost>
     24  <Capturable>
     25    <CapturePoints>800</CapturePoints>
     26  </Capturable>
    2427  <Footprint>
    2528    <Square width="9.5" depth="8.5"/>
    2629    <Height>9.0</Height>
     
    2831  <Health>
    2932    <Max>250</Max>
    3033  </Health>
     34  <GarrisonHolder>
     35    <Max>3</Max>
     36  </GarrisonHolder>
    3137  <Identity>
    32     <Civ>gaia</Civ>
    33     <SpecificName>Palisade Fort</SpecificName>
     38    <SpecificName>Wooden Tower</SpecificName>
    3439    <GenericName>Wooden Tower</GenericName>
    35     <Classes datatype="tokens">Palisade</Classes>
    3640    <History>A cheap, quick defensive structure constructed with sharpened tree trunks</History>
    3741    <Icon>structures/palisade_fort.png</Icon>
    38     <VisibleClasses datatype="tokens">Village -Town DefenseTower</VisibleClasses>
     42    <Classes datatype="tokens">WoodenTower</Classes>
     43    <VisibleClasses datatype="tokens">Village -Town</VisibleClasses>
    3944    <RequiredTechnology>phase_village</RequiredTechnology>
    4045  </Identity>
    41   <Obstruction>
    42     <Static width="9.0" depth="7.5"/>
    43   </Obstruction>
     46  <ProductionQueue>
     47    <Technologies datatype="tokens">
     48      -attack_tower_crenellations
     49      -attack_tower_range
     50      -attack_tower_defense
     51    </Technologies>
     52  </ProductionQueue>
    4453  <TerritoryInfluence disable=""/>
     54  <StatusBars>
     55    <HeightOffset>18.0</HeightOffset>
     56  </StatusBars>
    4557  <VisualActor>
    4658    <Actor>props/special/palisade_rocks_fort.xml</Actor>
    4759  </VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/athen_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>athen</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/brit_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>brit</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/cart_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>cart</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/gaul_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>gaul</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/iber_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>iber</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/mace_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>mace</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/maur_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>maur</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/pers_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>pers</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/ptol_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>ptol</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/rome_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>rome</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/sele_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>sele</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/structures/spart_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="template_structure_defense_wooden_tower">
     3  <Identity>
     4    <Civ>spart</Civ>
     5  </Identity>
     6</Entity>
  • binaries/data/mods/public/simulation/templates/template_structure_defense_wooden_tower.xml

     
     1<?xml version="1.0" encoding="utf-8"?>
     2<Entity parent="other/palisades_rocks_fort">
     3</Entity>
  • binaries/data/mods/public/simulation/templates/template_unit_infantry.xml

     
    2828      structures/{civ}_corral
    2929      structures/{civ}_outpost
    3030      other/wallset_palisade
    31       other/palisades_rocks_fort
     31      structures/{civ}_wooden_tower
    3232      structures/{civ}_dock
    3333      structures/{civ}_barracks
    3434      structures/{civ}_blacksmith
  • binaries/data/mods/public/simulation/templates/units/rome_infantry_swordsman_b.xml

     
    22<Entity parent="template_unit_infantry_melee_swordsman">
    33  <Builder>
    44    <Entities datatype="tokens">
    5        -other/wallset_palisade
    6      -other/palisades_rocks_fort
     5     -other/wallset_palisade
     6     -structures/{civ}_wooden_tower
    77      structures/rome_army_camp
    88      structures/rome_wallset_siege
    99      structures/{civ}_wonder
     
    1212  <Identity>
    1313    <Civ>rome</Civ>
    1414    <Lang>latin</Lang>
    15     <SelectionGroupName>units/rome_infantry_swordsman_b</SelectionGroupName>
    16     <GenericName>Roman Swordsman</GenericName>
     15    <SelectionGroupName>units/rome_infantry_swordsman_b</SelectionGroupName>
     16    <GenericName>Roman Swordsman</GenericName>
    1717    <SpecificName>Hastatus</SpecificName>
    1818    <Icon>units/rome_infantry_swordsman.png</Icon>
    1919    <History>The hastati were the first line of heavy infantry in the early Republican Roman army. They used pila and gladii as their main weapons, throwing the former into the enemy formation and then closing with the sword. For defense they used a large shield called a scutum and wore the best armor they could afford. Hastati were recruited from the young men of Rome, a small part of the 700,000 troops Rome could bring to bear against its opponents.</History>