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

Method makePotions

code/main/Cauldron.ts:284–293  ·  view source on GitHub ↗
(boolSavingName: string, numberSavingName: string, howMany: number, singularPotionName: string, pluralPotionName: string)

Source from the content-addressed store, hash-verified

282 }
283
284 private makePotions(boolSavingName: string, numberSavingName: string, howMany: number, singularPotionName: string, pluralPotionName: string): void{
285 // We can now use this kind of potion
286 Saving.saveBool(boolSavingName, true);
287
288 // We increase the quantity
289 Saving.saveNumber(numberSavingName, Saving.loadNumber(numberSavingName) + howMany);
290
291 // We set the comment
292 this.potionsComment = "You made " + Algo.pluralFormat(howMany, " " + singularPotionName, " " + pluralPotionName) + ".";
293 }
294
295 private nextPage(): void{
296 // If we can go to the next page

Callers 1

putIntoBottlesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected