Repository navigation
v0.4.0
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, andrules.{combat, combat_data, combat_helpers, equipment, gambits, resolution, spells}emit a
DeprecationWarningon import. The top-leveldnd5e_engine.ActionTypeand
dnd5e_engine.types.{ActionType, CombatOutcome, DiceOutcome, CombatNPC}
re-exports now resolve lazily and warn on access. Every symbol's supported
route is indocs/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
DeathSaveStatecanonical home is nowdnd5e_engine.death_saves;
BehaviorProfileis nowdnd5e_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 bytests/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_attackandactivities/attack.pyare 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.