Put closet
Function Syntax
boolean put_closet(int qty ,item it )
- qty is the quantity to move
- it is the item to move
Attempts to move qty of it to your Colossal Closet from your main inventory. Returns true if the move succeeds and false if it does not.
The one parameter version without it will move meat instead of items.
Code Sample
Closets meat so that you only have 5,000 meat on hand.
if(my_meat() > 5000)
put_closet(my_meat() - 5000);
CLI Equivalent
The CLI command "closet" with the parameter "put" works similarly.