DnD_5e.character_classes.fighter module

class DnD_5e.character_classes.fighter.Fighter(**kwargs)[source]

Bases: Character

Fighter 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: action surge slots, indomitable

Parameters:

other (Fighter) – the Fighter to compare

Returns:

True if self is identical to other, False otherwise

Return type:

bool

get_second_wind_slots() int[source]
Returns:

second wind slots

Return type:

non-negative integer

get_action_surge_slots() int[source]
Returns:

action surge slots

Return type:

non-negative integer

get_extra_attack_num() int[source]
Returns:

the number of extra attacks (additional attacks allowed when using the attack action)

Return type:

non-negative integer

get_indomitable_slots() int[source]
Returns:

indomitable slots

Return type:

non-negative integer

take_action_surge()[source]

Do an action surge. NOT IMPLEMENTED YET.

Returns:

None

Raise:

ValueError if self has no action surge slots left

take_extra_attack()[source]

Make an extra attack. NOT IMPLEMENTED YET.

Returns:

None

Raise:

ValueError if self has no extra attack slots left

take_indomitable()[source]

Use the indomitable feature. NOT IMPLEMENTED YET.

Returns:

None

Raise:

ValueError if self doesn’t have indomitable slots

take_second_wind()[source]

Use the second wind feature. NOT IMPLEMENTED YET (i.e., this isn’t called anywhere).

Returns:

None

Raise:

ValueError if self doesn’t have second wind slots