Skip to content

v0.4.0

Choose a tag to compare

@tapestria tapestria released this 25 Aug 02:18
· 44 commits to main since this release
493bf08

Lockstep release of dnd5e-engine, dnd5e-srd-data and nat20-bridge 0.4.0. Deprecates the legacy (Gen 1) rules surface — nothing removed, every deprecated import warns; removal is 0.5.0. Migration guide: docs/migration/v0.3-to-v0.4.md. PR #13.

dnd5e-engine

Lockstep release with dnd5e-srd-data 0.4.0 and nat20-bridge 0.4.0.

Deprecates the legacy (Gen 1) rules surface. Nothing is removed; every
deprecated import warns. Removal lands in 0.5.0 — see
docs/migration/v0.3-to-v0.4.md.

Deprecated

  • The legacy (Gen 1) rules surface — removed in 0.5.0. dispatch,
    event_dicts, types.dice, types.intent, and rules.{combat, combat_data, combat_helpers, equipment, gambits, resolution, spells} emit a
    DeprecationWarning on import. The top-level dnd5e_engine.ActionType and
    dnd5e_engine.types.{ActionType, CombatOutcome, DiceOutcome, CombatNPC}
    re-exports now resolve lazily and warn on access. Every symbol's supported
    route is in docs/migration/v0.3-to-v0.4.md. Rationale: two drifting
    implementations of the same SRD rules, a non-seedable legacy path, and host
    transport/persistence shapes inside a zero-I/O package.

Changed

  • DeathSaveState canonical home is now dnd5e_engine.death_saves;
    BehaviorProfile is now dnd5e_engine.types.combat. The old locations
    re-export until 0.5.0. The supported engine's import tree no longer reaches
    any legacy module (pinned by tests/test_gen2_has_no_gen1_imports.py).

Added

  • Cross-generation attack-roll parity test
    (tests/test_generation_parity_attack.py): rules/combat.attack_roll /
    resolve_player_attack and activities/attack.py are fed the same d20
    stream and must keep the same natural die and agree on hit / crit / miss
    under advantage, disadvantage and flat rolls. This is the guard that would
    have caught the drift fixed in 0.3.1 (#11). No runtime behavior change.

dnd5e-srd-data / nat20-bridge

Lockstep bump only — no changes.