Monster level adjustment: Difference between revisions
Jump to navigation
Jump to search
imported>Grotfang No edit summary |
imported>Professorjellybean mNo edit summary |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:name|monster_level_adjustment}} | {{ | ||
{{#vardefine:return_type|int}} | #vardefine:name|monster_level_adjustment}}{{ | ||
#vardefine:return_type|int}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 17: | Line 17: | ||
code1={{CodeSample| | code1={{CodeSample| | ||
title=Code Samples| | title=Code Samples| | ||
description=Checks to see if you should use a level 20 sombrero for a monster of level 60.| | description=Checks to see if you should use a level 20 sombrero over a volleyball for a monster of level 60.| | ||
code= | code= | ||
<syntaxhighlight> | <syntaxhighlight> | ||
boolean better_to_use_brero() { | boolean better_to_use_brero() { | ||
int test = 60 + monster_level_adjustment(); | int test = 60 + monster_level_adjustment(); | ||
return test >= 85; | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 33: | Line 30: | ||
special=Return 0 when not logged in.| | special=Return 0 when not logged in.| | ||
}} | }} | ||
[[Category:Your Character]] |
Latest revision as of 22:02, 4 April 2016
Function Syntax
int monster_level_adjustment()
Returns the cumulative total of all monster level adjustments from equipment, effects and area modifiers.
Code Samples
Checks to see if you should use a level 20 sombrero over a volleyball for a monster of level 60.
boolean better_to_use_brero() {
int test = 60 + monster_level_adjustment();
return test >= 85;
}
See Also
Special
Return 0 when not logged in.