MaximizeOrEmpower(int, int, int, int)

Checks the appropriate metamagic to see how the damage should be scaled.

int MaximizeOrEmpower(
    int nDice,
    int nNumberOfDice,
    int nMeta,
    int nBonus = 0
);

Parameters

nDice

Number of sides on the dice.

nNumberOfDice

Number of dice to roll.

nMeta

Can be either METAMAGIC_EMPOWER or METAMAGIC_MAXIMIZE.

nBonus

Bonus damage (Default: 0)


Description

Checks the appropriate metamagic (empower and maximize) to see how the damage should be scaled.

After all the damage calculations have been done, nBonus (default: 0) is added onto the total.



Requirements

#include "x0_i0_spells"


Version

???

See Also

constants:  METAMAGIC_*
categories:  Spells Functions


author: Mistress, editor: Kolyana