deposit

fun deposit(id: Int, amount: DepositBox.Amount): Boolean
fun deposit(id: Int, amount: Int): Boolean

Attempts to deposit the specified item into the deposit box.

Return

true if the item of the specified amount was successfully deposited, false otherwise.

Parameters

id

The Item ID.

amount

The amount to deposit.