Ticket #4116: 4116_v1.patch

File 4116_v1.patch, 5.8 KB (added by Palaxin, 8 years ago)

first draft of an elite elephant tech (since war elephants are a separate unit class I also prefer a new tech instead of extending the cav techs)

  • binaries/data/mods/public/simulation/data/technologies/upgrade_rank_elite_elephant.json

     
     1{
     2    "genericName": "Elite Elephants",
     3    "description": "Make all your war elephants stronger.",
     4    "cost": {"food": 1500, "wood": 0, "stone": 0, "metal": 500},
     5    "requirements": {"all": [{"any": [{"civ": "cart"},{"civ": "maur"},{"civ": "pers"},{"civ": "ptol"},{"civ": "sele"}]}, {"tech": "phase_city"}]},
     6    "requirementsTooltip": "Unlocked in City Phase.",
     7    "icon": "upgrade_elite.png",
     8    "researchTime": 60,
     9    "tooltip": "+25% health and damage for all war elephants.",
     10    "modifications": [
     11        {"value": "Health/Max",           "multiply": 1.25},
     12        {"value": "Attack/Melee/Hack",    "multiply": 1.25},
     13        {"value": "Attack/Melee/Pierce",  "multiply": 1.25},
     14        {"value": "Attack/Melee/Crush",   "multiply": 1.25},
     15        {"value": "Attack/Charge/Hack",   "multiply": 1.25},
     16        {"value": "Attack/Charge/Pierce", "multiply": 1.25},
     17        {"value": "Attack/Charge/Crush",  "multiply": 1.25}
     18    ],
     19    "affects": ["Elephant Melee"]
     20}
  • binaries/data/mods/public/simulation/templates/structures/cart_fortress.xml

     
    2626      siege_cost_metal
    2727      siege_cost_wood
    2828      siege_bolt_accuracy
     29      upgrade_rank_elite_elephant
    2930    </Technologies>
    3031  </ProductionQueue>
    3132  <VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/maur_elephant_stables.xml

     
    4141      units/{civ}_elephant_archer_b
    4242      units/{civ}_champion_elephant
    4343    </Entities>
     44    <Technologies datatype="tokens">
     45      upgrade_rank_elite_elephant
     46    </Technologies>
    4447  </ProductionQueue>
    4548  <Sound>
    4649    <SoundGroups>
  • binaries/data/mods/public/simulation/templates/structures/pers_hall.xml

     
    5050      units/{civ}_kardakes_skirmisher
    5151      units/{civ}_champion_elephant
    5252    </Entities>
     53    <Technologies datatype="tokens">
     54      upgrade_rank_elite_elephant
     55    </Technologies>
    5356  </ProductionQueue>
    5457  <VisualActor>
    5558    <Actor>structures/persians/hall.xml</Actor>
  • binaries/data/mods/public/simulation/templates/structures/ptol_fortress.xml

     
    2525      siege_cost_metal
    2626      siege_cost_wood
    2727      siege_bolt_accuracy
     28      upgrade_rank_elite_elephant
    2829    </Technologies>
    2930  </ProductionQueue>
    3031  <VisualActor>
  • binaries/data/mods/public/simulation/templates/structures/sele_fortress.xml

     
    2929      siege_cost_wood
    3030      successors/special_war_horses
    3131      successors/special_parade_of_daphne
     32      upgrade_rank_elite_elephant
    3233    </Technologies>
    3334  </ProductionQueue>
    3435  <VisualActor>
  • binaries/data/mods/public/simulation/templates/template_unit_champion_elephant.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    22<Entity parent="template_unit_champion">
    33  <Armour>
    4     <Hack>10</Hack>
     4    <Hack>5</Hack>
    55    <Pierce>10</Pierce>
    66    <Crush>25</Crush>
    77  </Armour>
     
    2020    <Height>6.0</Height>
    2121  </Footprint>
    2222  <Health>
    23     <Max>750</Max>
     23    <Max>640</Max>
    2424  </Health>
    2525  <Identity>
    2626    <VisibleClasses datatype="tokens">Elephant</VisibleClasses>
  • binaries/data/mods/public/simulation/templates/template_unit_champion_elephant_melee.xml

     
    22<Entity parent="template_unit_champion_elephant">
    33  <Attack replace="">
    44    <Melee>
    5       <Hack>20</Hack>
     5      <Hack>16</Hack>
    66      <Pierce>0</Pierce>
    7       <Crush>150.0</Crush>
     7      <Crush>120.0</Crush>
    88      <MaxRange>8.0</MaxRange>
    99      <RepeatTime>1500</RepeatTime>
    1010    </Melee>
    1111    <Charge>
    12       <Hack>40.0</Hack>
     12      <Hack>32.0</Hack>
    1313      <Pierce>0.0</Pierce>
    14       <Crush>300.0</Crush>
     14      <Crush>240.0</Crush>
    1515      <MaxRange>8.0</MaxRange>
    1616      <MinRange>0.0</MinRange>
    1717    </Charge>