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

Method canBeBought

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

Source from the content-addressed store, hash-verified

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
44 if(this.isBought())
45 return false;
46
47 return true;
48 }
49
50 public canBeClicked(): boolean{ // Return true if you can click on the item, else return false
51 // If it's already bought, we return false

Callers 1

drawSelectedItemStuffMethod · 0.80

Calls 1

isBoughtMethod · 0.95

Tested by

no test coverage detected