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

Method gainItem

code/main/Game.ts:259–264  ·  view source on GitHub ↗
(itemSavingName)

Source from the content-addressed store, hash-verified

257 }
258
259 public gainItem(itemSavingName): void{
260 Saving.saveBool(itemSavingName, true);
261
262 this.player.reCalcMaxHp(); // We re calc the player max hp just in case
263 this.calcLollipopFarmProduction(); // Idem for the farm production
264 }
265
266 public getEqItemFromEqItemType(savingName: string, type: EqItemType): EqItem{
267 switch(type){

Callers 15

endQuestMethod · 0.80
buyGrimoireMethod · 0.80
buyGrimoire2Method · 0.80
buyHatMethod · 0.80
buyMethod · 0.80
takeObjectMethod · 0.80
endQuestMethod · 0.80

Calls 2

reCalcMaxHpMethod · 0.80

Tested by

no test coverage detected