Difference between revisions of "My closet meat"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
imported>Darzil
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine:name|my_closet_meat}}
+
{{
{{#vardefine:return_type|int}}
+
#vardefine:name|my_closet_meat}}{{
 +
#vardefine:return_type|int}}{{
  
{{FunctionPage|
+
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Item Management|
 
  
 
function1={{Function|
 
function1={{Function|
Line 25: Line 25:
 
</syntaxhighlight>}}|
 
</syntaxhighlight>}}|
  
see_also={{SeeAlso|my_meat|print}}|
+
see_also={{SeeAlso|my_meat|my_storage_meat|print}}|
 
}}
 
}}
 +
 +
[[Category:Item Management]]

Latest revision as of 00:14, 4 December 2013

Function Syntax

int my_closet_meat()

Returns the amount of meat stored in your Colossal Closet.

Code Sample

The following example shows how much meat you have between on-hand & in your closet.

print("You have " + my_meat() + " meat on hand.");
print("You have " + my_closet_meat() + " meat in your closet.");
print("Between the two, you have " + (my_meat() + my_closet_meat()) + " meat altogether.");

See Also

my_meat() | my_storage_meat() | print()