Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/Heal.js
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | Heal.prototype.GetRangeOverlays = function() | ||||
if (!this.template.RangeOverlay) | if (!this.template.RangeOverlay) | ||||
return []; | return []; | ||||
return [{ | return [{ | ||||
"radius": this.GetRange().max, | "radius": this.GetRange().max, | ||||
"texture": this.template.RangeOverlay.LineTexture, | "texture": this.template.RangeOverlay.LineTexture, | ||||
"textureMask": this.template.RangeOverlay.LineTextureMask, | "textureMask": this.template.RangeOverlay.LineTextureMask, | ||||
"thickness": +this.template.RangeOverlay.LineThickness | "thickness": +this.template.RangeOverlay.LineThickness | ||||
}] | }]; | ||||
}; | }; | ||||
/** | /** | ||||
* Heal the target entity. This should only be called after a successful range | * Heal the target entity. This should only be called after a successful range | ||||
* check, and should only be called after GetTimers().repeat msec has passed | * check, and should only be called after GetTimers().repeat msec has passed | ||||
* since the last call to PerformHeal. | * since the last call to PerformHeal. | ||||
*/ | */ | ||||
Heal.prototype.PerformHeal = function(target) | Heal.prototype.PerformHeal = function(target) | ||||
Show All 32 Lines |
Wildfire Games · Phabricator