Closet amount

From Kolmafia
Revision as of 18:08, 1 March 2010 by imported>Alhifar
Jump to navigation Jump to search



Function Syntax

int closet_amount(item it )

  • it is the item that will be checked for in the closet.

Returns the amount of a given item that is contained in your closet.

Sample Code

Checks if you have enough filthy lucre for Olfaction

void main(){
   if( item_amount($item[filthy lucre]) + display_amount($item[filthy lucre]) + closet_amount($item[filthy lucre]) > 200 ){ print( "Go get olfaction!" ) }
   else print( "Keep going, you need more lucre!" );
}

See Also

item_amount() | display_amount()

Special

Not logged in value: 0