DnD_5e.character_classes.paladin module

class DnD_5e.character_classes.paladin.Paladin(**kwargs)[source]

Bases: SpellCaster, Character

Paladin 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: divine sense slots, lay on hands pool, cleansing touch slots

Parameters:

other (Paladin) – the Paladin to compare

Returns:

True if self is identical to other, False otherwise

Return type:

bool

get_divine_sense_slots() int[source]
Returns:

divine sense slots

Return type:

non-negative integer

get_lay_on_hands_pool() int[source]
Returns:

the hit points in the lay on hands pool

Return type:

non-negative integer

get_aura() int[source]
Returns:

the number of feet for the aura features

Return type:

non-negative integer

get_cleansing_touch_slots() int[source]
Returns:

cleansing touch slots

Return type:

non-negative integer

spend_divine_sense_slot()[source]

Spend a divine sense slot

Returns:

None

Raise:

ValueError if self has no divine sense slots left

spend_cleansing_touch_slot()[source]

Spend a cleansing touch slot

Returns:

None

Raise:

ValueError if self has no cleansing touch slots left

send_lay_on_hands(hp: int, target=None, use='healing')[source]

Use the Lay on Hands feature

Parameters:
  • hp (non-negative integer) – the number of hit points to take from the Lay on Hands pool

  • target (Combatant) – the Combatant to use Lay on Hands on

  • use (str) – what to use Lay on Hands for

Returns:

the hit points healed for, if use is “healing”

Raise:

ValueError if self doesn’t have enough Lay on Hands points

send_divine_smite(target: Combatant, level=1) int[source]

Use Divine Smite on a specified target

Parameters:
  • target (Combatant) – the Combatant to use Divine Smite on

  • level (integer between 1 and 9 (inclusive)) – the level to cast Divine Smite at

Returns:

the damage taken

Return type:

non-negative integer

Raise:

ValueError if self doesn’t have the Divine Smite feature