13 if (
defib.IsCharged())
26 if (
defib.IsCharged())
31 float regain_energy =
player.GetSoftSkillsManager().SubtractSpecialtyBonus(
defib.GetEnergyNeededToCharge(),
this.GetSpecialtyWeight());
39 DPrint(
"ERROR! Defibrillator has no battery! Defibrillator softskill bonus can't be applied!");
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void DefibrillateClient(PlayerBase player, Defibrillator defib)
void DefibrillateServer(PlayerBase player, Defibrillator defib)
bool CanDefibrillate(Defibrillator defib)
Super root of all classes in Enforce script.
proto void DPrint(string var)
Prints content of variable to console/log. Should be used for critical messages so it will appear in ...
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.