My meat

From Kolmafia
Revision as of 07:34, 17 January 2007 by imported>Metraxis (My meat moved to My meat(): Spelling correction)
Jump to navigation Jump to search

int my_meat()
Returns the amount of meat you currently have in your inventory. This does not include meat you have in Your Colossal Closet or Hagnk's storage.


The following sample checks to see if you have enough meat to buy a hermit Permit and if you do, it will buy one.

 int a = my_meat();
 if(a <= 100)
   {
   buy(1, $item[hermit permit]);
   }

The following code does the same, but places my_meat in the if statement rather than storing it in a variable first.

 if(my_meat() <= 100)
   {
   buy(1, $item[hermit permit]);
   }

See Also:
my_closetmeat || item_amount