buy

fun buy(itemId: Int, buyAction: Int): Boolean

Attempts to buy items from the store using increments of 1,5,10,50 corresponding to the buy action

Return

True if successfully bought and appears in your inventory

Parameters

itemId

Id of item you wish to buy

buyAction

The increment you wish to buy in