Meat drop: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>Heeheehee
m Format-fixing.
Line 1: Line 1:
{{#vardefine:name|meat_drop}}
{{
{{#vardefine:return_type|int}}
#vardefine:name|meat_drop}}{{
#vardefine:return_type|int}}{{


{{FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Your Character|
function_category=Your Character|
function1={{Function|
function1={{Function|
name={{#var:name}}|
name={{#var:name}}|
Line 10: Line 12:
parameter1={{Param|monster|m}}|
parameter1={{Param|monster|m}}|
return_type={{#var:return_type}}|
return_type={{#var:return_type}}|
return_also={{#var:return_also}}
return_also={{#var:return_also}}|
}}|
}}|



Revision as of 23:29, 27 March 2010

Function Syntax

int meat_drop(monster m )

Returns the base meat drop of the monster specified by m.

Code Samples

Uses your current meat drop modifier to determine how much you can expect to get, on average, from a monster.

float monster_drop(monster mob) {
   int monster_drop = meat_drop(mob);
   float adjust_drop = monster_drop * (meat_drop_modifier() / 100.0 + 1);
   return adjust_drop;
}

See Also

meat_drop_modifier() | item_drops()