Ticket #3932: healerAI.diff

File healerAI.diff, 4.4 KB (added by causative, 8 years ago)
  • binaries/data/mods/public/simulation/components/UnitAI.js

     
    54595459        this.PushOrderFront("Attack", { "target": targ, "force": true, "allowCapture": true });
    54605460        return true;
    54615461    }
     5462
     5463    // healers on a walk-and-fight order should heal injured units
     5464    if (this.IsHealer())
     5465        return this.FindNewHealTargets();
     5466   
    54625467    return false;
    54635468};
    54645469
  • binaries/data/mods/public/simulation/data/technologies/advanced_unit_bonus.json

     
    1313        {"value": "Attack/Melee/Hack",      "multiply":    1.2,  "affects": "Melee"  },
    1414        {"value": "Attack/Melee/Pierce",    "multiply":    1.2,  "affects": "Melee"  },
    1515        {"value": "Heal/Range",             "add":         4,   "affects": "Healer"  },
     16        {"value": "Vision/Range",           "add":         8,   "affects": "Healer"  },
    1617        {"value": "Heal/HP",                "add":         5,   "affects": "Healer"  }
    1718    ],
    1819    "affects": ["Advanced Unit", "Elite Unit"]
  • binaries/data/mods/public/simulation/data/technologies/elite_unit_bonus.json

     
    1313        {"value": "Attack/Melee/Hack",      "multiply":    1.2,  "affects": "Melee"  },
    1414        {"value": "Attack/Melee/Pierce",    "multiply":    1.2,  "affects": "Melee"  },
    1515        {"value": "Heal/Range",             "add":         4,   "affects": "Healer"  },
     16        {"value": "Vision/Range",           "add":         8,   "affects": "Healer"  },
    1617        {"value": "Heal/HP",                "add":         5,   "affects": "Healer"  }
    1718    ],
    1819    "affects": ["Elite Unit"]
  • binaries/data/mods/public/simulation/data/technologies/heal_range.json

     
    55        "spart": "Olympic Pantheon",
    66        "athen": "Olympic Pantheon"
    77    },
    8     "description": "Increases the healing range of all healers.",
     8    "description": "Increases the healing and vision range of all healers.",
    99    "cost": {"food": 500, "wood": 0, "stone": 0, "metal": 250},
    1010    "requirements": {"tech": "phase_town"},
    1111    "requirementsTooltip": "Unlocked in Town Phase.",
    1212    "icon": "healing_range.png",
    1313    "researchTime": 40,
    14     "tooltip": "Healers +8 Healing Range.",
    15     "modifications": [{"value": "Heal/Range", "add": 8.0}],
     14    "tooltip": "Healers +8 Healing Range, +15 vision range.",
     15    "modifications": [{"value": "Heal/Range", "add": 8.0}, {"value": "Vision/Range", "add": 15.0}],
    1616    "affects": ["Healer"],
    1717    "soundComplete": "interface/alarm/alarm_upgradearmory.xml"
    1818}
  • binaries/data/mods/public/simulation/data/technologies/heal_range_2.json

     
    55        "spart": "Akadḗmeia",
    66        "athen": "Akadḗmeia"
    77    },
    8     "description": "Increases the healing range of all healers.",
     8    "description": "Increases the healing and vision range of all healers.",
    99    "cost": {"food": 1000, "wood": 0, "stone": 0, "metal": 500},
    1010    "supersedes": "heal_range",
    1111    "requirements": {"tech": "phase_city"},
     
    1212    "requirementsTooltip": "Unlocked in City Phase.",
    1313    "icon": "healing_range.png",
    1414    "researchTime": 40,
    15     "tooltip": "Healers +8 Healing Range.",
    16     "modifications": [{"value": "Heal/Range", "add": 8.0}],
     15    "tooltip": "Healers +8 Healing Range, +15 Vision Range.",
     16    "modifications": [{"value": "Heal/Range", "add": 8.0}, {"value": "Vision/Range", "add": 15.0}],
    1717    "affects": ["Healer"],
    1818    "soundComplete": "interface/alarm/alarm_upgradearmory.xml"
    1919}