Skip to content

dndwright 0.27.0

Choose a tag to compare

@sligara7 sligara7 released this 29 Jul 02:18
· 10 commits to main since this release

[0.27.0] — 2026-07-29

Added

  • clean_damage_types() and combatant_defenses() now accept an optional keyword-only
    allowed: frozenset[str] = DAMAGE_TYPES. By default they intersect with the SRD-13
    DAMAGE_TYPES exactly as before (fully backward-compatible); a caller that governs its own
    damage-type vocabulary can pass a wider set (e.g. SRD-13 ∪ custom) so caller-registered
    types survive the filter — at component assembly, the computed-stats read, and live combat
    damage application — instead of being silently dropped. dndwright stays domain-agnostic: it does
    not know where allowed comes from; members must be lower-cased (the caller owns canonicalisation).
    Enables host applications to support per-campaign/per-universe custom damage types without a
    split-brain between the character sheet and combat. Public API names (__all__) unchanged.