MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / heal

Method heal

code/main/QuestEntity.ts:266–268  ·  view source on GitHub ↗
(hp: number)

Source from the content-addressed store, hash-verified

264 }
265
266 public heal(hp: number): void{
267 this.setHp(this.getHp() + hp);
268 }
269
270 public hit(questEntity: QuestEntity, damage: number, reason: QuestEntityDamageReason): void{
271 // BUGS

Callers 7

updateMethod · 0.80
castPlayerPPotionMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80

Calls 2

setHpMethod · 0.95
getHpMethod · 0.95

Tested by

no test coverage detected