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

Method buy

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

Source from the content-addressed store, hash-verified

35
36 // Public methods
37 public buy(): void{
38 // We tell the saving system that this item is bought
39 Saving.saveBool(this.savingBool, true);
40 }
41
42 public canBeBought(): boolean{ // Return true if we can buy the item, else return false
43 // If it's already bought, we return false

Callers 1

buySelectedItemMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected