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

Method castPlayerHealthPotion

code/main/Quest.ts:278–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276 }
277
278 public castPlayerHealthPotion(): void{
279 this.getGame().getPlayer().heal((this.getGame().isEquipped("hat", "eqItemHatSorceressHat")? 200 : 100));
280 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You drink a health potion!"));
281 }
282
283 public castPlayerJump(): void{
284 // If we don't have the feather

Callers

nothing calls this directly

Calls 6

healMethod · 0.80
getPlayerMethod · 0.80
isEquippedMethod · 0.80
addMessageMethod · 0.80
getQuestLogMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected