DnD_5e.character_classes.warlock module

class DnD_5e.character_classes.warlock.Warlock(**kwargs)[source]

Bases: SpellCaster, Character

Warlock character class

get_pact_boon() str | None[source]
Returns:

pact boon

Return type:

str (or None)

get_eldritch_invocations() set | None[source]
Returns:

eldritch invocations

Return type:

set of strings (or None)

has_eldritch_invocation(invocation: str) bool[source]

Determine if self has a given eldritch invocation

Parameters:

invocation (str) – the eldritch invocation to look for

Returns:

True if self has the eldritch invocation invocation, False otherwise

Return type:

bool