#include <Saves.h>
Collaboration diagram for ogs::core::Saves:
Public Member Functions | |
Saves () | |
Create a new set of saves. | |
bool | rollFortSave (Die::Value dc) const |
Roll a Fortitude saving throw. | |
bool | rollRefSave (Die::Value dc) const |
Roll a Reflex saving throw. | |
bool | rollWillSave (Die::Value dc) const |
Roll a Will saving throw. | |
Static Public Member Functions | |
Modifier::Value | getStrongBonus (XP::Level xpLevel) |
Determine value of stronger (higher) base save bonus. | |
Modifier::Value | getWeakBonus (XP::Level xpLevel) |
Determine value of weaker (lower) base save bonus. | |
Public Attributes | |
Modifiers | fort |
Modifiers added to a Fortitude saving throw. | |
Modifiers | ref |
Modifiers added to a Reflex saving throw. | |
Modifiers | will |
Modifiers added to a Will saving throw. |
Saves
class encapsulates these modifiers and also contains helper functions for determining base saving throw bonuses at a given experience level and actually checking the roll of a saving throw.
|
A new set of saving throws does not contain any modifiers when initially created. |
|
|
|
|
|
The Fortitude modifiers are added to the roll of 1d20 and compared to a difficulty class. If the result is greater than or equal to the DC, the saving throw is successful.
|
|
The Reflex modifiers are added to the roll of 1d20 and compared to a difficulty class. If the result is greater than or equal to the DC, the saving throw is successful.
|
|
The Will modifiers are added to the roll of 1d20 and compared to a difficulty class. If the result is greater than or equal to the DC, the saving throw is successful.
|