DnD_5e.character_classes.monk module

class DnD_5e.character_classes.monk.Monk(**kwargs)[source]

Bases: Character

Monk character class

current_eq(other) bool[source]

Compare self and other to determine if they are identical based on the attributes checked in equals and also these attributes: ki points

Parameters:

other (Monk) – the Monk to compare

Returns:

True if self is identical to other, False otherwise

Return type:

bool

get_martial_arts_dice() Tuple[int, int][source]
Returns:

martial arts dice

Return type:

TYPE_DICE_TUPLE

get_ki_points() int[source]
Returns:

ki points

Return type:

non-negative integer

get_ki_save_dc() int[source]
Returns:

ki save dc

Return type:

positive integer

spend_ki_points(num: int) int[source]

Spend num number of ki points

Parameters:

num – the number of ki points to spend

Returns:

None

Raise:

ValueError if self doesn’t have enough ki points or num is invalid

add_attack(attack)[source]

Add the given attack. If the attack is related to a monk weapon and dexterity mod is less than strength mod, change strength mod for attack and damage to dexterity mod.

Parameters:

attack (Attack) – the Attack to add

Returns:

None