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

Method canBeShown

code/main/CandyMerchantItem.ts:58–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 public canBeShown(): boolean{
59 // If it's already bought, we return false
60 if(this.isBought())
61 return false;
62
63 return true;
64 }
65
66 public isBought(): boolean{
67 return Saving.loadBool(this.savingBool);

Callers 1

drawItemsMethod · 0.45

Calls 1

isBoughtMethod · 0.95

Tested by

no test coverage detected