File size: 1,144 Bytes
b6a38d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
-- ========== GENERATED BY CharacterEffectCompositeDef Editor DO NOT EDIT MANUALLY! ==========
UndefineClass('Caretaker')
DefineClass.Caretaker = {
__parents = { "Perk" },
__generated_by_class = "CharacterEffectCompositeDef",
object_class = "Perk",
unit_reactions = {
PlaceObj('UnitReaction', {
Event = "OnUnitBandaged",
Handler = function (self, target, healer, patient, hp_restored)
if target == healer then
local tempHp = MulDivRound(healer.Medical, self:ResolveValue("medicalPercent"), 100)
if patient.command == "DownedRally" then
patient:AddStatusEffect("GritAfterRally", tempHp)
else
patient:ApplyTempHitPoints(tempHp)
end
end
end,
}),
},
DisplayName = T(416037614632, --[[CharacterEffectCompositeDef Caretaker DisplayName]] "Painkiller"),
Description = T(527875226325, --[[CharacterEffectCompositeDef Caretaker Description]] "When you end you turn bandaging an ally, you grant <em><StatPercent('Medical', medicalPercent)></em> <GameTerm('Grit')> to this ally (based on Medical)."),
Icon = "UI/Icons/Perks/Caretaker",
Tier = "Gold",
Stat = "Wisdom",
StatValue = 90,
}
|