Ticket #3507: attack_v2.patch

File attack_v2.patch, 2.1 KB (added by Palaxin, 8 years ago)

I have simplified it a bit. It didn't work when I used "Male" or "Male Unit" for "affects". Is there a possiblity to do that? However, this would not cause the intended changes. For example we have a slave template, and slaves should definitely not get bonus attack through this technology though they are males. I added "Heros", so basically all human fighting units should profit from this tech now.

  • data/mods/public/simulation/data/technologies/attack_soldiers_will.json

     
    1515    "researchTime": 40,
    1616    "tooltip": "Inspire your troops with higher pay. All soldiers +25% attack.",
    1717    "modifications": [
    18         {"value": "Attack/Melee/Hack", "multiply": 1.25, "affects": "CitizenSoldier Melee"},
    19         {"value": "Attack/Ranged/Pierce", "multiply": 1.25, "affects": "CitizenSoldier Ranged"},
    20         {"value": "Attack/Melee/Hack", "multiply": 1.25, "affects": "Champion Melee"},
    21         {"value": "Attack/Ranged/Pierce", "multiply": 1.25, "affects": "Champion Ranged"}
     18        {"value": "Attack/Melee/Hack", "multiply": 1.25},
     19        {"value": "Attack/Melee/Pierce", "multiply": 1.25},
     20        {"value": "Attack/Melee/Crush", "multiply": 1.25},
     21        {"value": "Attack/Ranged/Hack", "multiply": 1.25},
     22        {"value": "Attack/Ranged/Pierce", "multiply": 1.25},
     23        {"value": "Attack/Ranged/Crush", "multiply": 1.25}
    2224    ],
     25    "affects": ["CitizenSoldier", "Champion", "Hero"],
    2326    "soundComplete": "interface/alarm/alarm_upgradearmory.xml"
    2427}
  • data/mods/public/simulation/templates/units/spart_hero_leonidas.xml

     
    66      <Radius>30</Radius>
    77      <Affects>Spear</Affects>
    88      <Modifications>
    9         <Attack.Melee.Hack>   <Multiply>1.20</Multiply> </Attack.Melee.Hack>
     9        <Attack.Melee.Hack> <Multiply>1.20</Multiply> </Attack.Melee.Hack>
     10        <Attack.Melee.Pierce> <Multiply>1.20</Multiply> </Attack.Melee.Pierce>
     11        <Attack.Melee.Crush> <Multiply>1.20</Multiply> </Attack.Melee.Crush>
    1012        <Attack.Capture.Value> <Add>1</Add> </Attack.Capture.Value>
    1113      </Modifications>
    1214      <AuraName>Last Stand Aura</AuraName>