Mana cost modifier: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
Created page with '{{#vardefine:name|mana_cost_modifier}} {{#vardefine:return_type|int}} {{FunctionPage| name={{#var:name}}| function_category=Skills and Effects| function1={{Function| name={{#va…'
 
imported>Bale
combat_mana_cost_modifier r8877
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#vardefine:name|mana_cost_modifier}}
{{
{{#vardefine:return_type|int}}
#vardefine:name|mana_cost_modifier}}{{
#vardefine:return_type|int}}{{
 
FunctionPage|


{{FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Skills and Effects|


function1={{Function|
function1={{Function|
Line 13: Line 14:
}}|
}}|


function_description=Returns the total amount of passive MP cost reduction available. Note that KoL limits this to -3 MP at most, so you should never see a number larger than 3 returned from this function.|
function_description=Returns the total amount of passive MP cost reduction available. This includes all modifiers such as Festival of Jarlsberg.|


needscode=yes|
needscode=yes|


see_also={{SeeAlso|}}|
see_also={{SeeAlso|combat_mana_cost_modifier}}|
cli_equiv=The CLI command "modref mana cost" can access the same information.|
 
cli_equiv=The CLI command "modtrace mana cost" provides a more detailed display.|
special=Most equipment and effects only allow up to -3 MP total, so the sum of your current effects may not match the actual amount of MP reduction (and therefore the value of this function).|
more_info=See {{kolwiki|Skill MP Cost Modifiers}} for further info on how MP reducers stack.|
}}
}}
{{RFI|Does this function check everything available, including the Festival of Jarlsberg?}}
 
[[Category:Skills and Effects]]

Latest revision as of 22:58, 5 January 2011

needs(code_samples);

Function Syntax

int mana_cost_modifier()

Returns the total amount of passive MP cost reduction available. This includes all modifiers such as Festival of Jarlsberg.

CLI Equivalent

The CLI command "modtrace mana cost" provides a more detailed display.

See Also

combat_mana_cost_modifier()

More Information

See Skill MP Cost Modifiers for further info on how MP reducers stack.

Special

Most equipment and effects only allow up to -3 MP total, so the sum of your current effects may not match the actual amount of MP reduction (and therefore the value of this function).