DnD_5e.combatant.character module
- class DnD_5e.combatant.character.Character(**kwargs)[source]
Bases:
CombatantThis is for characters (PC, NPC, whatever)
- take_damage(damage: int, damage_type: str | None = None, is_critical: bool = False) int[source]
Take damage, applying vulnerabilities, resistances, and immunities as necessary
- should_die_from_damage(damage_taken: int, damage_type: str | None = None)[source]
Return whether taking the specified amount of damage should result in self dying :param damage_taken: the total amount of damage taken :param damage_type: the damage type :return:
- become_conscious()[source]
Become conscious (removing unconcsious, unstable, and stable conditions)
- Returns:
None
- fail_death_save()[source]
Record that self failed a death save, die if this is the third failed death save
- Returns:
None
- succeed_death_save()[source]
Record that self succeeded a death save, stabilize if this is the third successful death save
- Returns:
None