Meat drop modifier: Difference between revisions
Jump to navigation
Jump to search
imported>Grotfang m moved Meat drop modifier() to Meat drop modifier: Conformity |
imported>Grotfang No edit summary |
||
Line 1: | Line 1: | ||
a | {{#vardefine:name|meat_drop_modifier}} | ||
{{#vardefine:return_type|float}} | |||
{{FunctionPage| | |||
name={{#var:name}}| | |||
function_category=Your Character| | |||
function1={{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}} | |||
}}| | |||
function_description=Returns the percentage that you currently increase or decrease your meat drops as a result of equipment, effects (including familiars) and area modifiers (such as on the sea floor).| | |||
code1={{CodeSample| | |||
title=Code Samples| | |||
description=Uses the baseline meat drop to determine how much you can expect to get, on average, from a given monster.| | |||
code= | |||
<syntaxhighlight> | |||
float monster_drop() { | |||
int monster_drop = meat_drop($monster[alphabet giant]); | |||
float adjust_drop = monster_drop * (meat_drop_modifier() / 100); | |||
float expected_drop = monster_drop + adjust_drop; | |||
return expected_drop; | |||
} | |||
</syntaxhighlight> | |||
}}| | |||
see_also={{SeeAlso|meat_drop}}| | |||
special=Returns 0 when not logged in. | |||
}} |
Revision as of 23:29, 28 February 2010
Function Syntax
float meat_drop_modifier()
Returns the percentage that you currently increase or decrease your meat drops as a result of equipment, effects (including familiars) and area modifiers (such as on the sea floor).
Code Samples
Uses the baseline meat drop to determine how much you can expect to get, on average, from a given monster.
float monster_drop() {
int monster_drop = meat_drop($monster[alphabet giant]);
float adjust_drop = monster_drop * (meat_drop_modifier() / 100);
float expected_drop = monster_drop + adjust_drop;
return expected_drop;
}
See Also
Special
Returns 0 when not logged in.