dnd5e-engine 0.6.0__tar.gz → 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/.gitignore +3 -0
  2. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/CHANGELOG.md +217 -5
  3. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/PKG-INFO +9 -13
  4. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/README.md +7 -11
  5. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/pyproject.toml +5 -8
  6. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/__init__.py +2 -4
  7. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/apply.py +2 -2
  8. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/attack.py +76 -23
  9. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/build_context.py +25 -15
  10. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/conjuration.py +2 -2
  11. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/context.py +47 -26
  12. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/d20.py +1 -1
  13. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/damage.py +1 -1
  14. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/effects.py +33 -15
  15. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/forced_movement.py +2 -2
  16. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/formula.py +2 -2
  17. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/mastery.py +13 -13
  18. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/monster_actions.py +127 -24
  19. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/passive_stats.py +3 -4
  20. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/save.py +3 -3
  21. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/save_primitive.py +3 -4
  22. dnd5e_engine-0.7.0/src/dnd5e_engine/areas.py +319 -0
  23. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/build_party.py +12 -3
  24. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/build_spec.py +97 -13
  25. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/death_saves.py +2 -3
  26. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/events.py +67 -40
  27. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/orchestrator.py +1831 -1765
  28. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/outcome.py +18 -23
  29. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/rest.py +25 -0
  30. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/results.py +8 -8
  31. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/rules/choices.py +80 -3
  32. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/rules/conditions.py +55 -24
  33. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/spatial.py +50 -14
  34. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/specs.py +64 -70
  35. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/spellcasting.py +10 -11
  36. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/testing.py +1 -6
  37. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/types/combat.py +60 -37
  38. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/views.py +3 -3
  39. dnd5e_engine-0.7.0/tests/activities/test_attack_opportunity_flag.py +82 -0
  40. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_build_context.py +2 -4
  41. dnd5e_engine-0.7.0/tests/activities/test_condition_immunity.py +52 -0
  42. dnd5e_engine-0.7.0/tests/activities/test_feat_riders.py +184 -0
  43. dnd5e_engine-0.7.0/tests/activities/test_multiattack_fidelity.py +266 -0
  44. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_resolve_check_activity.py +6 -6
  45. dnd5e_engine-0.7.0/tests/conftest.py +25 -0
  46. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/harness.py +15 -13
  47. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c00_harness_sanity.py +5 -5
  48. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c01_dataset_fixes.py +13 -18
  49. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c02_small_mechanics.py +14 -18
  50. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c03_effect_modes.py +1 -4
  51. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c04_caster_plumbing.py +9 -12
  52. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c05_spatial.py +1 -8
  53. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c06_reactions.py +39 -56
  54. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c07_sneak_and_repertoire.py +17 -16
  55. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c08_passive_projection.py +14 -23
  56. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c09_rest.py +6 -15
  57. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c10_monster_behavior.py +14 -24
  58. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c11_item_charges.py +10 -10
  59. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c12_conditions.py +3 -12
  60. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c13_concentration.py +2 -9
  61. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c14_action_economy.py +2 -11
  62. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c15_attack_rules.py +4 -14
  63. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c16_spatial_targeting.py +4 -14
  64. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c17_slots_and_rests.py +1 -4
  65. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c18_monster_economy.py +3 -11
  66. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c19_character_derivation.py +3 -7
  67. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c20_class_features.py +2 -15
  68. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c21_summons.py +5 -15
  69. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/test_c22_dataset.py +3 -10
  70. dnd5e_engine-0.7.0/tests/e2e/test_c24_grid_reactions.py +486 -0
  71. dnd5e_engine-0.7.0/tests/e2e/test_c26_area_targeting.py +547 -0
  72. dnd5e_engine-0.7.0/tests/e2e/test_c27_monster_senses_conditions.py +378 -0
  73. dnd5e_engine-0.7.0/tests/e2e/test_c28_feats.py +274 -0
  74. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_action_economy_attacks.py +5 -7
  75. dnd5e_engine-0.7.0/tests/test_areas.py +446 -0
  76. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_attack_range_tiers.py +0 -4
  77. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_build_party.py +13 -11
  78. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_build_party_c19.py +0 -1
  79. dnd5e_engine-0.7.0/tests/test_build_party_initiative.py +85 -0
  80. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c16_orchestrator.py +18 -159
  81. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c16_spatial.py +2 -3
  82. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c16b_vision.py +50 -66
  83. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c17_slots.py +0 -1
  84. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c18_monster_economy_units.py +8 -6
  85. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_concentration_anchor.py +3 -3
  86. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_polymorph.py +17 -8
  87. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_summon_allegiance.py +41 -26
  88. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_summon_dragon.py +1 -30
  89. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_summon_turns.py +3 -3
  90. dnd5e_engine-0.7.0/tests/test_c25_zone_graph_removal.py +89 -0
  91. dnd5e_engine-0.7.0/tests/test_c26_monster_areas.py +377 -0
  92. dnd5e_engine-0.7.0/tests/test_c26_pc_areas.py +352 -0
  93. dnd5e_engine-0.7.0/tests/test_c27_condition_clauses.py +394 -0
  94. dnd5e_engine-0.7.0/tests/test_c27_template_senses.py +102 -0
  95. dnd5e_engine-0.7.0/tests/test_c28_feat_build.py +249 -0
  96. dnd5e_engine-0.7.0/tests/test_c28_feats_in_combat.py +93 -0
  97. dnd5e_engine-0.7.0/tests/test_c28_magic_initiate_combat.py +191 -0
  98. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_capability_matrix.py +131 -59
  99. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_concentration_check_event.py +14 -43
  100. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_concentration_drop_effect_name.py +6 -8
  101. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_concentration_repeat_save_identity.py +11 -12
  102. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_concentration_save_modifier.py +2 -2
  103. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_coverage_backfill_death_saves.py +3 -3
  104. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_coverage_backfill_seam_errors.py +2 -2
  105. dnd5e_engine-0.7.0/tests/test_docstrings_are_host_agnostic.py +130 -0
  106. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_dodge_help_hide.py +6 -11
  107. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_duration_tick_at_turn_end.py +12 -13
  108. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_effect_timed_expiry.py +9 -10
  109. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_enchantment_sidecar_projection.py +14 -15
  110. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_end_combat_snapshot.py +9 -14
  111. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_expire_clears_active_conditions.py +9 -10
  112. dnd5e_engine-0.7.0/tests/test_flee_stance.py +114 -0
  113. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_get_actor_active_effects.py +12 -15
  114. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_grapple_shove_stand_up.py +1 -2
  115. dnd5e_engine-0.7.0/tests/test_grid_opportunity_attacks.py +211 -0
  116. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_grid_topology.py +75 -17
  117. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_initiative_rolling.py +1 -1
  118. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_iter13_fixes.py +12 -13
  119. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_iter5_fixes.py +9 -10
  120. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_live_combat_view.py +13 -9
  121. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_loading_property.py +0 -1
  122. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_monster_dash.py +3 -4
  123. dnd5e_engine-0.7.0/tests/test_monster_flee_retreat.py +84 -0
  124. dnd5e_engine-0.7.0/tests/test_opportunity_attack_context.py +306 -0
  125. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_opportunity_attack_primitive.py +50 -105
  126. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_orchestrator_condition_gates.py +1 -2
  127. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_orchestrator_gating_typed.py +28 -33
  128. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_orchestrator_grid_combat.py +0 -13
  129. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_orchestrator_hydration_proficiencies.py +9 -9
  130. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_orchestrator_item_charges.py +26 -25
  131. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_orchestrator_monster_typed.py +57 -61
  132. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_orchestrator_move_mark_typed.py +13 -15
  133. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_orchestrator_pc_resolution_typed.py +31 -30
  134. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_orchestrator_trait_hydration.py +0 -1
  135. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_public_api_surface.py +45 -2
  136. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_rage_second_wind_e2e.py +12 -12
  137. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_reaction_queue.py +7 -8
  138. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_repeat_save_runs_once_per_turn.py +8 -10
  139. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_rules_conditions.py +54 -2
  140. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_save_cover_hydration.py +1 -3
  141. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_spatial_distance.py +2 -15
  142. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_start_combat_active_effects.py +12 -17
  143. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_start_combat_seeds_lifecycle.py +12 -13
  144. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_turn_lifecycle.py +8 -5
  145. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_use_feature_intent.py +10 -10
  146. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_weapon_masteries_c15.py +4 -9
  147. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_weapon_proficiency.py +4 -8
  148. dnd5e_engine-0.6.0/tests/activities/test_multiattack_fidelity.py +0 -127
  149. dnd5e_engine-0.6.0/tests/e2e/conftest.py +0 -13
  150. dnd5e_engine-0.6.0/tests/test_docstrings_are_host_agnostic.py +0 -60
  151. dnd5e_engine-0.6.0/tests/test_monster_flee_retreat.py +0 -64
  152. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/LICENSE +0 -0
  153. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/Makefile +0 -0
  154. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/NOTICE +0 -0
  155. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/scripts/_smoke_grid_combat.py +0 -0
  156. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/scripts/smoke_clean_install.sh +0 -0
  157. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/__init__.py +0 -0
  158. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/actor_stats.py +0 -0
  159. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/cast.py +0 -0
  160. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/check.py +0 -0
  161. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/dice.py +0 -0
  162. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/heal.py +0 -0
  163. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/resolver.py +0 -0
  164. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/activities/scale.py +0 -0
  165. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/check.py +0 -0
  166. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/lib_loader.py +0 -0
  167. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/py.typed +0 -0
  168. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/rules/__init__.py +0 -0
  169. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/rules/character.py +0 -0
  170. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/rules/dice.py +0 -0
  171. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/rules/effects.py +0 -0
  172. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/rules/skills.py +0 -0
  173. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/rules/uses.py +0 -0
  174. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/turn_lifecycle.py +0 -0
  175. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/types/__init__.py +0 -0
  176. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/types/conditions.py +0 -0
  177. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/src/dnd5e_engine/types/effects.py +0 -0
  178. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/__init__.py +0 -0
  179. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/__init__.py +0 -0
  180. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_actor_stats.py +0 -0
  181. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_apply_damage_magical.py +0 -0
  182. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_attack_advantage_live.py +0 -0
  183. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_attack_condition_rows.py +0 -0
  184. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_attack_unseen.py +0 -0
  185. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_c18_trait_consumers.py +0 -0
  186. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_cast_level_override.py +0 -0
  187. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_conjuration_routing.py +0 -0
  188. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_d20.py +0 -0
  189. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_damage_count_marker_scaling.py +0 -0
  190. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_monster_action_ranking.py +0 -0
  191. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_monster_actions.py +0 -0
  192. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_multiattack_opaque_ids.py +0 -0
  193. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_save_dc_and_damage_exprs.py +0 -0
  194. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_save_ignore_cover.py +0 -0
  195. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_save_magic_resistance.py +0 -0
  196. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_save_primitive.py +0 -0
  197. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_summon_registry.py +0 -0
  198. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/activities/test_weapon_mastery.py +0 -0
  199. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/c20_support.py +0 -0
  200. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/c21_support.py +0 -0
  201. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/e2e/__init__.py +0 -0
  202. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_active_effect_resistance_fold.py +0 -0
  203. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_active_effect_schema.py +0 -0
  204. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_active_effect_statuses_order.py +0 -0
  205. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_apply_changes_to_check.py +0 -0
  206. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_apply_modifiers.py +0 -0
  207. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_attack_classification.py +0 -0
  208. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_build_context_abilities.py +0 -0
  209. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_build_party_passives.py +0 -0
  210. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_build_spec_multiclass.py +0 -0
  211. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c20_action_surge.py +0 -0
  212. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c20_bardic_inspiration.py +0 -0
  213. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c20_cunning_action.py +0 -0
  214. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c20_feature_uses.py +0 -0
  215. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c20_fighting_styles.py +0 -0
  216. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c20_multiclass_live.py +0 -0
  217. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c20_rage.py +0 -0
  218. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c20_unarmed_and_monk.py +0 -0
  219. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_magic_weapon.py +0 -0
  220. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_roster_events.py +0 -0
  221. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_roster_primitives.py +0 -0
  222. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_spiritual_weapon.py +0 -0
  223. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_stat_block_commands.py +0 -0
  224. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_surface.py +0 -0
  225. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_transform_core.py +0 -0
  226. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_c21_wild_shape.py +0 -0
  227. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_combat_bucket_keys.py +0 -0
  228. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_combat_flag_advantage.py +0 -0
  229. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_concentration_lifecycle_drops.py +0 -0
  230. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_concentration_timed_expiry.py +0 -0
  231. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_cover_bonus_sidecar.py +0 -0
  232. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_death_saves_exhaustion.py +0 -0
  233. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_derive_sheet.py +0 -0
  234. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_determinism_contract.py +0 -0
  235. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_effects_builder_internals.py +0 -0
  236. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_end_combat_retention.py +0 -0
  237. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_feature_save_dc_no_spell_override.py +0 -0
  238. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_gen2_has_no_gen1_imports.py +0 -0
  239. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_incapacitated_by_effect.py +0 -0
  240. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_iter11_fixes.py +0 -0
  241. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_lib_loader.py +0 -0
  242. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_lib_loader_configure.py +0 -0
  243. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_monster_legacy_swing.py +0 -0
  244. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_party_member_reach_ft.py +0 -0
  245. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_passive_stats.py +0 -0
  246. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_phase6_public_surface.py +0 -0
  247. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_resolve_check.py +0 -0
  248. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_resolve_check_c19.py +0 -0
  249. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_resolve_check_flag_advantage.py +0 -0
  250. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_resolve_check_specific_buckets.py +0 -0
  251. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_rest.py +0 -0
  252. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_rules_character.py +0 -0
  253. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_rules_choices.py +0 -0
  254. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_rules_combat_data_and_skills.py +0 -0
  255. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_rules_dice_equipment_spells.py +0 -0
  256. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_rules_effects_and_gambits.py +0 -0
  257. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_rules_smoke.py +0 -0
  258. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_rules_uses.py +0 -0
  259. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_scale_resolver.py +0 -0
  260. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_smoke.py +0 -0
  261. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_sneak_attack_resolver.py +0 -0
  262. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_spellcasting.py +0 -0
  263. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_types_smoke.py +0 -0
  264. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_versatile_and_attribution.py +0 -0
  265. {dnd5e_engine-0.6.0 → dnd5e_engine-0.7.0}/tests/test_weapon_damage_bonus_sidecar.py +0 -0
@@ -24,6 +24,9 @@ site/
24
24
  .idea/
25
25
  .vscode/
26
26
 
27
+ # Browser-automation logs
28
+ .playwright-mcp/
29
+
27
30
  # Upstream raw sources (regenerated locally via `make refresh-upstream`; never committed)
28
31
  packages/dnd5e-srd-data/raw_sources/foundry/
29
32
  packages/dnd5e-srd-data/raw_sources/open5e/
@@ -7,6 +7,218 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.7.0]
11
+
12
+ Lockstep release with `dnd5e-srd-data` 0.7.0 and `nat20-bridge` 0.7.0. The
13
+ engine now depends on `dnd5e-srd-data>=0.7.0` (it reads `Feat.repeatable` and
14
+ the canonical feat slug in `Background.starting_feat_slug`, and its areas rely
15
+ on the corrected area data); `nat20-bridge` requires both at `>=0.7.0`.
16
+
17
+ A breaking minor release: **C24 — grid movement and reactions** (opportunity
18
+ attacks and monster flee on the grid, resolved through the activity context),
19
+ **C25 — the zone graph and the duplicate concentration `SaveRolled` removed**
20
+ (`GridScene` is the only spatial backend), **C26a and C26b — areas of effect**
21
+ for every intent kind and for monsters, **C27 — monster senses and the
22
+ condition clauses**, **C28 — feats** (the background's Origin feat, Alert,
23
+ Savage Attacker, Grappler and Magic Initiate) and **C29 — bridge parity**,
24
+ closed out by **C30** (the 0.7.0 floors). A host passes `grid_scene=`, reads
25
+ `ConcentrationCheck` and handles the new `AreaTargeted` event;
26
+ `docs/migration/v0.6-to-v0.7.md` has every step and every moved seeded pin.
27
+
28
+ ### Added
29
+
30
+ - **`PartyMemberSpec.opportunity_attack_weapon_id`** — the weapon a character
31
+ makes its opportunity attacks with; `start_combat` raises `ValueError` for a
32
+ slug that names no melee weapon (C24).
33
+ - **`GridTopology.reachable_cells(start, budget_ft, *, avoid=())`** — every cell
34
+ reachable within a movement budget, with its cost and the cell its cheapest
35
+ route enters it from (C24).
36
+ - **`PlayerIntent.excluded_target_ids`** — the creatures an area "of your
37
+ choice" spares; `()` spares nobody. Refused with `target_invalid` where the
38
+ intent resolves no area of your choice, or for an id not in the combat
39
+ (C26a).
40
+ - **`AreaTargeted`** and **`AreaShape`** (`dnd5e_engine.events`) — each placed
41
+ area of effect: its shape, size, origin and aim, and the creatures it
42
+ affects and spares (C26a).
43
+ - **`best_aim`**, **`AreaAim`** and **`AIM_DIRECTIONS`** (`dnd5e_engine.areas`) —
44
+ where a creature that aims for itself places an area: the most enemies minus
45
+ allies, never itself (C26b).
46
+ - **`expand_action_to_parts`** (`dnd5e_engine.activities.monster_actions`) — a
47
+ monster action's activities, each with the stat-block action it comes from
48
+ (C26b).
49
+ - **`EncounterMemberSpec.senses`** — a foe's special senses; `None` (the
50
+ default) takes its template's (C27).
51
+ - **`CONDITION_GRANTED_IMMUNITIES`** and **`granted_condition_immunities`**
52
+ (`dnd5e_engine.rules.conditions`) — the immunities a condition grants:
53
+ Petrified's to Poisoned (C27).
54
+ - **`fear_source_in_sight`** on `conditions_grant_disadvantage_on_ability_checks`
55
+ and `project_passive_check_modifiers` — Frightened's line-of-sight gate for
56
+ ability checks (C27).
57
+ - **`PartyMemberSpec.spell_abilities`** and **`slotless_casts`** (also on
58
+ `DerivedSheet` and `Combatant`) — the ability each of a character's spells
59
+ is cast with, and the spells it casts once without a slot (C28).
60
+ - **The `magic-initiate:` choice token** — one Magic Initiate's spell list,
61
+ ability, cantrips and level 1 spell (`MagicInitiatePick`) (C28).
62
+ - **`recover_slotless_casts`** and **`SLOTLESS_CAST_COUNTER_PREFIX`**
63
+ (`dnd5e_engine.rest`) — a Long Rest restores a spell cast without a slot
64
+ (C28).
65
+ - **`Combatant.feats`**, **`Combatant.savage_attacker_spent_this_turn`** and
66
+ **`SpellcastingAbility`** (`dnd5e_engine.types.combat`) (C28).
67
+ - **`CombatInstance.initiative` takes `None`**: `build_party_member` passes it
68
+ through, so `start_combat` rolls a built character's Initiative with its
69
+ derived Dexterity and Alert; `0` stays the default (C29).
70
+ - **nat20-bridge**: the intent body takes every `PlayerIntent` field and the
71
+ build every `make_build_spec` keyword; the view reports `seed`, `turn`,
72
+ `summons`, `transformations`, `constructs` and each row's `initiative`;
73
+ `--max-combats` caps the live combats (C29).
74
+
75
+ ### Changed
76
+
77
+ - **Opportunity attacks fire on the grid, for every walk** (C24): a
78
+ character's or host-driven foe's `move`, the monster AI's closing walk and
79
+ its flee. Reach-based (Chebyshev) from both sides; Disengage suppresses them
80
+ from either side; the Charmed reactor spares its charmer; the walk stops at
81
+ 0 HP or Speed 0, or where a Push mastery hit carries the mover off, keeping
82
+ its unspent movement.
83
+ - **`ActorMoved` splits at a provoking step** of a `move` intent, so the
84
+ opportunity attack lands between the run before it and the rest (C24).
85
+ - **Opportunity attacks resolve through the activity context** (C24): the
86
+ character's weapon (the new field, else its first melee weapon, else an
87
+ Unarmed Strike) or the creature's stat-block attack, with cover, Fighting
88
+ Styles, Martial Arts, proficiency, enchantments, weapon mastery, Sneak Attack
89
+ and the target's readied Shield. `AttackRolled` and `DamageApplied` values
90
+ change accordingly.
91
+ - **Sneak Attack's once-per-turn flag clears at every turn start** (C24).
92
+ - **Monsters flee on the grid** to the reachable, unoccupied cell farthest from
93
+ their nearest enemy; an Incapacitated monster takes no flee stance (C24).
94
+ - **`start_combat(grid_scene=...)` is required** (C25): `grid_scene=None` raises
95
+ `ValueError`, before any combat state exists.
96
+ - **`dnd5e_engine.orchestrator.__all__` exports `GridScene`** in place of
97
+ `SceneTopology` and `ZoneEdge` (C25).
98
+ - **Rage**: an enemy's concentration check no longer counts as a saving throw
99
+ the barbarian forced (C25).
100
+ - **nat20-bridge**: a concentration save narrates as its own
101
+ `concentration_check` line (C25).
102
+ - **Areas of effect resolve for every intent kind** (C26a): a feature's or an
103
+ item's area (a Breath Weapon, the Pipes of Haunting) catches the creatures
104
+ in it, not only the named target. "Each enemy" or "each ally" keeps that
105
+ side; an area "of your choice" spares the actor's side when it harms and
106
+ the other side when it heals; "up to N creatures" takes the creatures named,
107
+ else the first N; Phantasmal Force affects the one creature it names. An
108
+ unaimed cone, cube or line from a feature or item is refused before its use
109
+ is spent. An attack roll is never an area.
110
+ - **A template the engine can't map affects its named target only** (C26a),
111
+ where it used to fall back to the creatures on one cell.
112
+ - **nat20-bridge**: an area narrates as one line naming whom it catches and
113
+ spares (C26a).
114
+ - **Monsters aim their own areas** (C26b): a stat-block action, a stat-block
115
+ spell and a legendary action with an area resolve against the creatures in
116
+ it — a creature at 0 Hit Points included, with only a choice or counted
117
+ area sparing the monster's charmer — placed where it affects the most
118
+ enemies minus allies and never the monster itself, from where the monster
119
+ stands; a Sphere centres on a foe it can see within range. Each placed area
120
+ emits `AreaTargeted`. An area that would affect no enemy is not an option
121
+ that turn: the monster takes its next action, spell or legendary action.
122
+ - **A Multiattack resolves an area it uses against that area** and spends a
123
+ Recharge action it uses when it fires; an action it uses "if available"
124
+ sits out while it isn't (C26b).
125
+ - **A templated monster takes its stat block's senses**, and its condition
126
+ immunities while its spec lists none (C27): it sees in Darkness, through
127
+ Blinded with Blindsight, and an Invisible creature within its Blindsight or
128
+ Truesight, for its attacks, its opportunity attacks, its own Dodge and Hide.
129
+ - **Frightened's Disadvantage on ability checks needs its source in sight**,
130
+ as its attack-roll half did; **Poisoned and Frightened impose Disadvantage on
131
+ Hide's Stealth check and on escaping a grapple** (C27).
132
+ - **Frightened's "can't willingly move closer" holds whether or not its source
133
+ is in sight** (C27).
134
+ - **Petrified resists Poison damage instead of being immune to it** (C27):
135
+ `project_passive_damage_modifiers(["petrified"])` lists no immunity.
136
+ - **`LiveCombatView.initiative[*].conditions` lists one entry per effect
137
+ imposing a condition**, mid-combat as seeded stacking already did;
138
+ `active_conditions` stays deduplicated (C27).
139
+ - **`derive_sheet` adds the background's Origin feat** to `DerivedSheet.feats`,
140
+ and raises `ValueError` for a feat taken twice that isn't repeatable and for
141
+ an Epic Boon taken at an Ability Score Improvement below character level 19
142
+ (C28).
143
+ - **Alert, Savage Attacker and Grappler apply in combat** (C28): Alert adds
144
+ the Proficiency Bonus to an engine-rolled Initiative; Savage Attacker rolls
145
+ a weapon's damage dice twice on the first weapon hit of each turn and keeps
146
+ the higher roll; a Grappler has Advantage against a creature it grapples.
147
+ - **Magic Initiate's spells are cast with their chosen ability**, and its
148
+ level 1 spell once without a slot before a slot is spent; a countered
149
+ slotless cast is still spent, as SRD 5.2 Counterspell spares only a slot
150
+ (C28).
151
+ - **nat20-bridge**: the engine rolls a combat's Initiative from the combat's
152
+ own generator — the same values for a build whose Dexterity nothing
153
+ adjusts, a background's increase and Alert counted — so every later roll
154
+ moves (C29).
155
+ - **nat20-bridge (breaking)**: an intent body's unknown key is refused with
156
+ 422, as is an unknown `intent_type`; an intent the engine can't resolve, an
157
+ empty side, or a side the grid can't seat is 422, not 500 (C29).
158
+ - **nat20-bridge**: at most 16 combats stay live, and starting one more ends
159
+ the least recently used, which then answers 404; each response reports only
160
+ its own request's events (C29).
161
+ - **nat20-bridge**: a summon narrates by its name, and its joining and
162
+ leaving as lines (C29).
163
+ - **nat20-bridge**: the 404 detail reads `unknown or expired combat: '…'`,
164
+ and a build without a class answers 422 with a string `detail`, not
165
+ FastAPI's error list, on `/v1/party/validate` and `/v1/combat` (C29).
166
+
167
+ ### Deprecated
168
+
169
+ - **`ZoneTransit`** — never emitted; it stays in the `CombatEvent` union so a
170
+ host that imports it keeps working, and a later breaking release removes it
171
+ (C25).
172
+
173
+ ### Removed
174
+
175
+ - **The zone-graph backend** (C25): `start_combat(scene_zones=...)`,
176
+ `SceneTopology` and `ZoneEdge` (from `dnd5e_engine`, `dnd5e_engine.specs` and
177
+ `dnd5e_engine.orchestrator`), and `dnd5e_engine.testing.ZoneGraph`. Pass
178
+ `grid_scene=GridScene(...)`; `docs/migration/v0.6-to-v0.7.md` has the porting
179
+ recipe.
180
+ - **The concentration `SaveRolled` twin** (C25): a damage-triggered
181
+ concentration save emits `ConcentrationCheck` alone.
182
+ - **nat20-bridge (breaking)**: `member.attack_bonus` in the
183
+ `/v1/party/validate` response, always `0`; to-hit is per weapon (C29).
184
+
185
+ ### Fixed
186
+
187
+ - An opportunity attack on a Prone creature beyond 5 ft now has Disadvantage
188
+ (C24).
189
+ - A failed concentration check no longer stands in for the failed save behind a
190
+ condition's end-of-turn repeat save (C25).
191
+ - A readied Shield no longer fires on a monster's save action (C26b).
192
+ - A spent Recharge action a Multiattack uses no longer resolves: the
193
+ Doppelganger's Unsettling Visage (C26b).
194
+ - A Multiattack whose description offers alternatives repeats only an attack it
195
+ names: the Djinni no longer conjures three whirlwinds (C26b).
196
+ - A Multiattack description is no longer cut short at an item whose id starts
197
+ with a capital letter (C26b).
198
+ - A Multiattack's fallback join no longer repeats a Recharge or X/Day action,
199
+ nor an area it can't place on an enemy: the Aboleth's Dominate Mind, the
200
+ Ancient Gold Dragon's Fire Breath, and its Weakening Breath beyond 90 feet
201
+ (C26b).
202
+ - A creature immune to Grappled or Prone (the Ghost) is no longer grappled or
203
+ shoved Prone; the save still rolls (C27).
204
+ - A Petrified creature is immune to the Poisoned condition, an effect that
205
+ brings both included, and a Poisoned it already had imposes no Disadvantage
206
+ (C27).
207
+ - A condition two effects impose now outlives the first one's ending by a
208
+ successful end-of-turn save or by concentration ending; previously it
209
+ ended with the first effect (C27).
210
+ - After a `ConditionRemoved`, `active_conditions` now keeps a condition
211
+ that another live effect still imposes, so the two condition stores
212
+ agree (C27).
213
+ - `escape_grapple` from a creature whose Grappled stores no escape DC (a
214
+ seeded Grappled, or one another effect keeps after the grapple ends) is
215
+ refused with `target_invalid` before the Action is spent, instead of
216
+ raising `AssertionError` (C27).
217
+ - nat20-bridge: `/v1/roll`, `/v1/check` and `/v1/combat` no longer reseed the
218
+ process-global `random`, which concurrent requests raced; a combat's first
219
+ attacks no longer repeat its Initiative d20s; a combat never ended no
220
+ longer keeps a collector task and an event log (C29).
221
+
10
222
  ## [0.6.0]
11
223
 
12
224
  Lockstep release with `dnd5e-srd-data` 0.6.0 and `nat20-bridge` 0.6.0. The
@@ -111,7 +323,7 @@ Behavioural deltas (and the fixtures they move) are enumerated in
111
323
  projects the caster-keyed ownership map for hosts.
112
324
 
113
325
  - **Attack rules (C15).** Weapon proficiency is a real gate: a host that never
114
- sets `PartyMemberSpec.weapon_proficiencies` is assumed proficient (the R1
326
+ sets `PartyMemberSpec.weapon_proficiencies` is assumed proficient (the unset
115
327
  sentinel — legacy behaviour, byte-identical); an explicit (possibly empty)
116
328
  list enforces proficiency by the weapon's category or slug, omitting
117
329
  Proficiency Bonus (never subtracting it) when unproficient. Attack range now
@@ -570,10 +782,10 @@ Behavioural deltas (and the fixtures they move) are enumerated in
570
782
  - **`start_combat(grid_scene=...)` raises `ValueError`** when a combatant's
571
783
  `zone_id` is out of bounds or blocked, instead of silently seating them on an
572
784
  unusable cell.
573
- - **A main-hand attack keeps the turn (R1, C14)** when `attacks_remaining > 0`
785
+ - **A main-hand attack keeps the turn (C14)** when `attacks_remaining > 0`
574
786
  after the swing, or when a two-weapon-fighting off-hand window is still
575
787
  open; the turn ends only once neither condition holds. A subsequent swing
576
- in the same Attack action no longer re-pays the Action (R2): only the
788
+ in the same Attack action no longer re-pays the Action: only the
577
789
  first swing hard-gates on `action_available`, and an exhausted
578
790
  `attacks_remaining` on a later swing is a turn-KEEPING `AttackFailed`
579
791
  rather than the "no Action" rejection every other Action-costed intent
@@ -629,7 +841,7 @@ Behavioural deltas (and the fixtures they move) are enumerated in
629
841
  with Disadvantage until the attacker's next turn start (one-use); Slow
630
842
  applies a flat, non-stacking −10 ft Speed penalty cleared at the source's
631
843
  next turn start; Push forces a full 10 ft move via `push_combatant`
632
- (controller ruling: always the full distance; the "Large or smaller" size
844
+ (always the full distance; the "Large or smaller" size
633
845
  gate is unmodelled); Cleave chains one extra attack+damage roll against the
634
846
  nearest eligible living hostile within 5 ft of the first target and within
635
847
  reach (deterministic tie-break by `entity_id`, once per turn, no re-proc);
@@ -702,7 +914,7 @@ Behavioural deltas (and the fixtures they move) are enumerated in
702
914
  ### Fixed
703
915
 
704
916
  - **A `PartyMemberSpec` that never set `attack_bonus` was pinned to a 0
705
- to-hit bonus (2026-09-02, C15 Task 1).** `Combatant.attack_bonus` widens
917
+ to-hit bonus (2026-09-02, C15).** `Combatant.attack_bonus` widens
706
918
  from `int = 0` to `int | None = None`; `None` (the host never explicitly
707
919
  set `PartyMemberSpec.attack_bonus`) now correctly falls through to the
708
920
  real governing-ability-modifier + proficiency-bonus computation instead of
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: dnd5e-engine
3
- Version: 0.6.0
3
+ Version: 0.7.0
4
4
  Summary: Pure-Python D&D 5e SRD rules engine — combat, checks, effects. Host-agnostic, zero I/O.
5
5
  Author: Tapestria contributors
6
6
  License: MIT License
@@ -34,7 +34,7 @@ Classifier: Programming Language :: Python :: 3.13
34
34
  Classifier: Typing :: Typed
35
35
  Requires-Python: >=3.12
36
36
  Requires-Dist: d20>=1.1.2
37
- Requires-Dist: dnd5e-srd-data>=0.6.0
37
+ Requires-Dist: dnd5e-srd-data>=0.7.0
38
38
  Requires-Dist: pydantic>=2.10.0
39
39
  Provides-Extra: dev
40
40
  Requires-Dist: bandit>=1.8.0; extra == 'dev'
@@ -47,7 +47,7 @@ Description-Content-Type: text/markdown
47
47
  # dnd5e-engine
48
48
 
49
49
  Pure-Python D&D 5e SRD rules engine — host-agnostic, zero I/O. Combat, checks, effects,
50
- on a zone graph or a 2-D grid.
50
+ on a 2-D grid.
51
51
 
52
52
  ## Status
53
53
 
@@ -56,12 +56,9 @@ Working engine. It resolves combat against the typed 2024-SRD corpus shipped by
56
56
  `canonical/` data — no network, no DB). The engine is edition-agnostic: it consumes
57
57
  whatever typed content it is handed.
58
58
 
59
- Two spatial backends are supported, selected at `start_combat`:
60
-
61
- - **Zone graph** — pass `scene_zones=SceneTopology(zones=..., edges=...)`; range/reach are
62
- resolved as shortest-path distance over a weighted, undirected zone graph.
63
- - **2-D grid** — pass `grid_scene=GridScene(width, height)`; positions are `"col,row"` cell
64
- ids (`cell_id(col, row)`), distance is Chebyshev (8-direction, one cell = `cell_size_ft`).
59
+ Combat resolves on a 2-D grid: pass `grid_scene=GridScene(width, height)` to
60
+ `start_combat`. Positions are `"col,row"` cell ids (`cell_id(col, row)`), and distance is
61
+ Chebyshev (8-direction, one cell = `cell_size_ft`).
65
62
 
66
63
  ## Install
67
64
 
@@ -158,7 +155,7 @@ engine fetches the typed weapon from the bundled corpus and walks its activities
158
155
 
159
156
  All exported names live in `__all__` in `src/dnd5e_engine/__init__.py`. The key entry points:
160
157
 
161
- - `start_combat(*, session_id, party, encounter, scene_zones=|grid_scene=, rng_seed, ...)` —
158
+ - `start_combat(*, session_id, party, encounter, grid_scene, rng_seed, ...)` —
162
159
  open a combat, materialize runtime state, return a `StartCombatResult` (`.handle`, opening
163
160
  `.events`).
164
161
  - `submit_player_intent(handle, actor_id, intent)` — validate and resolve a PC's
@@ -180,7 +177,6 @@ All exported names live in `__all__` in `src/dnd5e_engine/__init__.py`. The key
180
177
  Spatial helpers and spec types:
181
178
 
182
179
  - `GridScene` / `cell_id(col, row)` / `parse_cell(cell_id)` — 2-D grid scene + cell-id codec.
183
- - `SceneTopology` / `ZoneEdge` — zone-graph scene description.
184
180
  - `PartyMemberSpec` / `EncounterMemberSpec` — combatant inputs to `start_combat`.
185
181
  - `PlayerIntent` — a PC's submitted intent (move / attack / cast_spell / use_item / ...).
186
182
  - `CombatHandle`, `StartCombatResult`, `EndCombatResult`, `CombatOutcome`, `CombatEvent`,
@@ -199,8 +195,8 @@ packages/dnd5e-engine/
199
195
  ├── src/dnd5e_engine/
200
196
  │ ├── __init__.py public API (__all__)
201
197
  │ ├── orchestrator.py start/submit/advance/end combat seam + live state
202
- │ ├── spatial.py grid + zone topologies, cell_id / parse_cell
203
- │ ├── specs.py GridScene, SceneTopology, party/encounter specs
198
+ │ ├── spatial.py grid topology, cell_id / parse_cell
199
+ │ ├── specs.py GridScene, party/encounter specs
204
200
  │ ├── check.py out-of-combat ability check / saving throw resolver
205
201
  │ ├── build_party.py / build_spec.py character build → combat spec projection
206
202
  │ ├── lib_loader.py BundledAssetLoader singleton (typed SRD corpus)
@@ -1,7 +1,7 @@
1
1
  # dnd5e-engine
2
2
 
3
3
  Pure-Python D&D 5e SRD rules engine — host-agnostic, zero I/O. Combat, checks, effects,
4
- on a zone graph or a 2-D grid.
4
+ on a 2-D grid.
5
5
 
6
6
  ## Status
7
7
 
@@ -10,12 +10,9 @@ Working engine. It resolves combat against the typed 2024-SRD corpus shipped by
10
10
  `canonical/` data — no network, no DB). The engine is edition-agnostic: it consumes
11
11
  whatever typed content it is handed.
12
12
 
13
- Two spatial backends are supported, selected at `start_combat`:
14
-
15
- - **Zone graph** — pass `scene_zones=SceneTopology(zones=..., edges=...)`; range/reach are
16
- resolved as shortest-path distance over a weighted, undirected zone graph.
17
- - **2-D grid** — pass `grid_scene=GridScene(width, height)`; positions are `"col,row"` cell
18
- ids (`cell_id(col, row)`), distance is Chebyshev (8-direction, one cell = `cell_size_ft`).
13
+ Combat resolves on a 2-D grid: pass `grid_scene=GridScene(width, height)` to
14
+ `start_combat`. Positions are `"col,row"` cell ids (`cell_id(col, row)`), and distance is
15
+ Chebyshev (8-direction, one cell = `cell_size_ft`).
19
16
 
20
17
  ## Install
21
18
 
@@ -112,7 +109,7 @@ engine fetches the typed weapon from the bundled corpus and walks its activities
112
109
 
113
110
  All exported names live in `__all__` in `src/dnd5e_engine/__init__.py`. The key entry points:
114
111
 
115
- - `start_combat(*, session_id, party, encounter, scene_zones=|grid_scene=, rng_seed, ...)` —
112
+ - `start_combat(*, session_id, party, encounter, grid_scene, rng_seed, ...)` —
116
113
  open a combat, materialize runtime state, return a `StartCombatResult` (`.handle`, opening
117
114
  `.events`).
118
115
  - `submit_player_intent(handle, actor_id, intent)` — validate and resolve a PC's
@@ -134,7 +131,6 @@ All exported names live in `__all__` in `src/dnd5e_engine/__init__.py`. The key
134
131
  Spatial helpers and spec types:
135
132
 
136
133
  - `GridScene` / `cell_id(col, row)` / `parse_cell(cell_id)` — 2-D grid scene + cell-id codec.
137
- - `SceneTopology` / `ZoneEdge` — zone-graph scene description.
138
134
  - `PartyMemberSpec` / `EncounterMemberSpec` — combatant inputs to `start_combat`.
139
135
  - `PlayerIntent` — a PC's submitted intent (move / attack / cast_spell / use_item / ...).
140
136
  - `CombatHandle`, `StartCombatResult`, `EndCombatResult`, `CombatOutcome`, `CombatEvent`,
@@ -153,8 +149,8 @@ packages/dnd5e-engine/
153
149
  ├── src/dnd5e_engine/
154
150
  │ ├── __init__.py public API (__all__)
155
151
  │ ├── orchestrator.py start/submit/advance/end combat seam + live state
156
- │ ├── spatial.py grid + zone topologies, cell_id / parse_cell
157
- │ ├── specs.py GridScene, SceneTopology, party/encounter specs
152
+ │ ├── spatial.py grid topology, cell_id / parse_cell
153
+ │ ├── specs.py GridScene, party/encounter specs
158
154
  │ ├── check.py out-of-combat ability check / saving throw resolver
159
155
  │ ├── build_party.py / build_spec.py character build → combat spec projection
160
156
  │ ├── lib_loader.py BundledAssetLoader singleton (typed SRD corpus)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "dnd5e-engine"
7
- version = "0.6.0"
7
+ version = "0.7.0"
8
8
  description = "Pure-Python D&D 5e SRD rules engine — combat, checks, effects. Host-agnostic, zero I/O."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -24,10 +24,10 @@ dependencies = [
24
24
  # lib_loader imports BundledAssetLoader at runtime; the typed-Activity
25
25
  # resolver reads the canonical corpus through it. The data lib's >=3.12
26
26
  # floor is why this package now also requires >=3.12 (see requires-python).
27
- # Lockstep floor: the engine reads the typed monster traits,
28
- # spellcasting_ability and the legendary pool sizes, new in srd-data
29
- # 0.6.0; Monster.ac (present since 0.5.0) is now filled for every monster.
30
- "dnd5e-srd-data>=0.6.0",
27
+ # Lockstep floor: the engine reads Feat.repeatable and the canonical feat
28
+ # slug in Background.starting_feat_slug, and its areas rely on the
29
+ # corrected choice flags, counts and recharges, all new in srd-data 0.7.0.
30
+ "dnd5e-srd-data>=0.7.0",
31
31
  ]
32
32
 
33
33
  [project.optional-dependencies]
@@ -91,9 +91,6 @@ testpaths = ["tests"]
91
91
  filterwarnings = [
92
92
  # Any DeprecationWarning the engine itself raises is a bug.
93
93
  "error::DeprecationWarning:dnd5e_engine",
94
- # The one sanctioned engine deprecation (spec D8): zone-graph combats keep
95
- # running through 0.6.x while hosts migrate to GridScene; removed in 0.7.
96
- "ignore:start_combat\\(scene_zones=:DeprecationWarning:dnd5e_engine",
97
94
  ]
98
95
 
99
96
  [tool.coverage.run]
@@ -67,6 +67,7 @@ from dnd5e_engine.rest import (
67
67
  RestOutcome,
68
68
  recover_feature_uses,
69
69
  recover_item_uses,
70
+ recover_slotless_casts,
70
71
  resolve_long_rest,
71
72
  resolve_short_rest,
72
73
  )
@@ -77,9 +78,7 @@ from dnd5e_engine.specs import (
77
78
  EncounterMemberSpec,
78
79
  GridScene,
79
80
  PartyMemberSpec,
80
- SceneTopology,
81
81
  WallSegment,
82
- ZoneEdge,
83
82
  )
84
83
  from dnd5e_engine.spellcasting import RitualCast, derive_pact_slots, resolve_ritual_cast
85
84
  from dnd5e_engine.types.effects import (
@@ -117,10 +116,8 @@ __all__ = [
117
116
  "RecoveryPeriod",
118
117
  "RestOutcome",
119
118
  "RitualCast",
120
- "SceneTopology",
121
119
  "StartCombatResult",
122
120
  "WallSegment",
123
- "ZoneEdge",
124
121
  "advance_monster_turn",
125
122
  "build_party_member",
126
123
  "cell_id",
@@ -138,6 +135,7 @@ __all__ = [
138
135
  "parse_cell",
139
136
  "recover_feature_uses",
140
137
  "recover_item_uses",
138
+ "recover_slotless_casts",
141
139
  "resolve_check",
142
140
  "resolve_legendary_resistance",
143
141
  "resolve_long_rest",
@@ -113,7 +113,7 @@ def apply_damage(
113
113
  ``DamageApplied.source_id`` / ``.is_crit`` for the source-id policy.
114
114
 
115
115
  Returns the TOTAL final (post-modifier) amount actually dealt across every
116
- valid type — C15 Task 6 (Vex): "hit a creature ... and deal damage to the
116
+ valid type — Vex: "hit a creature ... and deal damage to the
117
117
  creature" needs the AFTER-immunity total (a damage-immune target dealt 0
118
118
  final damage must not proc the rider), not the pre-modifier rolled sum.
119
119
  Existing callers that ignore the return are unaffected.
@@ -171,7 +171,7 @@ def apply_damage(
171
171
  if succeeded:
172
172
  target.hp_current = 1
173
173
  is_overkill = False
174
- # Fix round 1 — live-combat write-back: the ORCHESTRATOR's
174
+ # Live-combat write-back: the ORCHESTRATOR's
175
175
  # own HP fold (``_emit_apply_damage``) computes the
176
176
  # authoritative post-damage HP from ``live.tracked_hp`` and
177
177
  # this event's UNMODIFIED ``amount``, independent of this