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

Method foundCandies

code/main/Quest.ts:556–567  ·  view source on GitHub ↗
(howMany: number)

Source from the content-addressed store, hash-verified

554 }
555
556 public foundCandies(howMany: number): number{
557 // We check all eqItems in case they want to change how many candies were found
558 for(var savingName in this.getGame().getSelectedEqItems()){
559 howMany = this.getGame().getSelectedEqItems()[savingName].foundCandies(this.getGame().getPlayer(), this, howMany);
560 }
561
562 // We add the candies found
563 this.candiesFound.add(howMany);
564
565 // We return the number of candies found
566 return howMany;
567 }
568
569 public foundChocolateBars(howMany: number): number{
570 // We add the chocolate bars found

Callers

nothing calls this directly

Calls 4

getSelectedEqItemsMethod · 0.80
getPlayerMethod · 0.80
addMethod · 0.65
getGameMethod · 0.45

Tested by

no test coverage detected