An object for simulating a single RPG attack. More...
Public Member Functions | |
def | __init__ |
Constructor for the Attack object. | |
def | __eq__ |
overloaded equality operator for Attack object | |
def | highest |
The highest possible outcome of an attack roll. | |
def | lowest |
The lowest possible outcome of an attack roll. | |
def | roll_damage |
Rolls for damage and includes bonus. |
An object for simulating a single RPG attack.
The attack is composed of a Die object plus a bonus
def 0.1.5::wyckedsceptre::wyckedsceptre::Attack::__eq__ | ( | self, | ||
other | ||||
) |
overloaded equality operator for Attack object
def 0.1.5::wyckedsceptre::wyckedsceptre::Attack::__init__ | ( | self, | ||
description = '' , |
||||
die_roll = '1d6' , |
||||
attack_bonus = 0 | ||||
) |
def 0.1.5::wyckedsceptre::wyckedsceptre::Attack::highest | ( | self | ) |
The highest possible outcome of an attack roll.
def 0.1.5::wyckedsceptre::wyckedsceptre::Attack::lowest | ( | self | ) |
The lowest possible outcome of an attack roll.
def 0.1.5::wyckedsceptre::wyckedsceptre::Attack::roll_damage | ( | self | ) |
Rolls for damage and includes bonus.