Repository navigation
v0.7.0
Lockstep release of dnd5e-srd-data, dnd5e-engine and nat20-bridge 0.7.0, a breaking minor release. GridScene is now the only spatial backend, and the grid now has what only the zone graph had: opportunity attacks and monster flee. Areas of effect resolve for every intent kind and for monsters, templated monsters see with their stat-block senses, the remaining SRD 5.2 condition clauses apply, feats work in combat, and the bridge reaches parity with the engine. Upgrade notes: docs/migration/v0.6-to-v0.7.md.
Breaking changes
- The zone graph is removed (
dnd5e-engine).start_combatrequiresgrid_scene=GridScene(...), andscene_zones=raisesTypeError.SceneTopology,ZoneEdgeanddnd5e_engine.testing.ZoneGraphare gone;dnd5e_engine.orchestrator.__all__exportsGridScenein their place. Every start position must be a cell of the scene. The migration guide has a recipe for porting a zone layout. - One event per concentration save (
dnd5e-engine). The duplicateSaveRolled(ability="con")that accompaniedConcentrationCheckis removed: readConcentrationCheck. nat20-bridgerefuses unknown intent keys with 422, and an unknownintent_typetoo; a misspelt field used to be dropped silently.nat20-bridgedropsmember.attack_bonusfrom/v1/party/validate. It was always0; to-hit is per weapon.
A host also has to handle the new AreaTargeted event in the closed CombatEvent union; Background.starting_feat_slug now names the canonical feat (alert) rather than the Foundry id (phbftAlert000000); and dnd5e-engine requires dnd5e-srd-data>=0.7.0, while nat20-bridge requires both at >=0.7.0.
dnd5e-engine
C24 — grid movement and reactions
- Opportunity attacks fire on the grid for every walk: a character's or a host-driven foe's
move, the monster AI's closing walk, and its flee. They are reach-based from both sides; Disengage suppresses them either way, a Charmed reactor spares its charmer, and the walk stops at 0 HP or Speed 0. - They resolve through the activity context: the character's weapon (
PartyMemberSpec.opportunity_attack_weapon_id, else its first melee weapon, else an Unarmed Strike) or the creature's stat-block attack, with cover, Fighting Styles, Martial Arts, proficiency, enchantments, weapon mastery, Sneak Attack and the target's readied Shield. - A
moveintent'sActorMovedsplits at a provoking step. Sneak Attack's once-per-turn use resets at every turn start, so it can land on another creature's turn. - Monsters flee on the grid, to the reachable cell farthest from their nearest enemy (
GridTopology.reachable_cells).
C25 — the zone graph and the concentration twin removed
- See Breaking changes. An enemy's concentration check no longer extends Rage, and a failed concentration check no longer stands in for a condition's repeat save.
ZoneTransitstays in the event union, never emitted, until a later breaking release.
C26a — areas of effect for every intent kind
- A feature's or an item's area (a Breath Weapon, the Pipes of Haunting) catches every creature in it, not only the named target. "Each enemy" and "each ally" keep that side; an area "of your choice" spares the actor's side when it harms and the other side when it heals, and
PlayerIntent.excluded_target_idsoverrides that; "up to N creatures" takes the creatures named. Each placed area emitsAreaTargeted.
C26b — monsters aim their own areas
- A monster's stat-block area action, area spell and area legendary action resolve against the creatures in the area, placed where it affects the most enemies minus allies and never the monster itself (
dnd5e_engine.areas.best_aim). - A Multiattack honours "if available" and spends a Recharge action when it fires; the Djinni, the Doppelganger, the Aboleth and the Ancient Gold Dragon now follow their stat blocks. A readied Shield no longer fires on a monster's save action.
C27 — monster senses and the condition clauses
- A templated monster takes its stat block's senses (
EncounterMemberSpec.sensesoverrides them) and, while its spec lists none, its condition immunities. - Frightened's Disadvantage on ability checks needs its source in sight, while its "can't willingly move closer" holds either way; Poisoned and Frightened reach Hide and escaping a grapple; Petrified resists Poison damage and is immune to the Poisoned condition; one immunity check covers every path.
C28 — feats
derive_sheetadds the background's Origin feat to the sheet, and refuses a non-repeatable feat taken twice and an Epic Boon below character level 19.- Alert adds the Proficiency Bonus to an engine-rolled Initiative; Savage Attacker rolls a weapon's damage dice twice on the first weapon hit of each turn and keeps the higher roll; a Grappler has Advantage against a creature it grapples; Magic Initiate casts its spells with the chosen ability and its level 1 spell once without a slot (
recover_slotless_castsrestores it after a Long Rest).
C29 — bridge parity, the engine side
CombatInstance.initiativetakesNone, so a characterbuild_party_memberbuilds reaches the engine-rolled Initiative, Alert included.
Full details: CHANGELOG.
dnd5e-srd-data
- Who an area affects follows the SRD 5.2 text (C26a):
target.affects.choiceon Sleep, Slow, Mass Cure Wounds and the Mace of Terror's Wave of Terror, andaffects.count: "6"on Slow and Mass Cure Wounds. - Monster area actions follow their stat blocks (C26a): Recharge 5–6 on six dragons' breaths and the Centaur Trooper's Trampling Charge (those dragons never breathed), the Tarrasque's Thunderous Bellow on 5–6, the gold dragons' and the magma mephit's Fire Breath as Cones, corrected breath sizes, and "each creature" on the green dragons' and the iron golem's Poison Breath.
Feat.repeatable, andBackground.starting_feat_slugnames the canonical feat (alert,magic-initiate,savage-attacker) (C28).
Full details: CHANGELOG.
nat20-bridge
- The intent body takes every
PlayerIntentfield and the build everymake_build_speckeyword; the view reportsseed,turn,summons,transformations,constructsand each row'sinitiative(C29). - The engine rolls a combat's Initiative from the combat's own generator, so the first attacks no longer repeat the Initiative d20s;
/v1/roll,/v1/checkand/v1/combatno longer reseed the process-globalrandom, which concurrent requests raced (C29). - At most 16 combats stay live (
--max-combats): starting one more ends the least recently used, which then answers 404 (C29). - An intent the engine can't resolve, an empty side, or a side the grid can't seat answers 422 rather than 500 (C29).
- Narration: a concentration save is its own line (C25); an area names whom it catches and spares (C26a, C26b); a summon narrates by its name, with its joining and leaving (C29).
- A foe the bridge builds sees with its stat-block senses (C27).
Moved seeded pins
- C24 moved the streams its rules reach, each listed with its reason in the migration guide: the grapple-and-shove and flee scenarios, four flee unit tests, the opportunity-attack and vision tests ported to the grid, and the demo's hold-the-line and goblin-ambush. Every assertion still holds.
- C29: a seeded bridge
/v1/combatkeeps its Initiative and turn order, but every later roll moves. No engine or demo pin moved. - C25, C26a, C26b, C27, C28 and the closeout moved none.
Upgrading
- Upgrade
dnd5e-srd-data,dnd5e-engineandnat20-bridgetogether:dnd5e-enginerequiresdnd5e-srd-data>=0.7.0, andnat20-bridgerequires both at>=0.7.0. - Pass a
GridSceneto everystart_combat, with every start position one of its cells. A host still on zones fails loudly there:scene_zones=raisesTypeError, and a start position that is not a cell raisesValueErrornaming the combatant and the cell — the emptyCombatInstance.zone_iddefault of a character built withbuild_party_memberincluded. - Read a concentration save from
ConcentrationCheck. - Handle
AreaTargeted, on monster turns too. - Expect opportunity attacks and monster flee on the grid, and give a character whose spec carries no
equipmentanopportunity_attack_weapon_id. - Decide whom an area "of your choice" spares with
excluded_target_ids. - Expect templated monsters to see with their stat-block senses and keep their condition immunities.
- Match a background's feat by its canonical slug.
nat20-bridgeclients: send onlyPlayerIntentfields, stop readingmember.attack_bonus, and end the combats you are done with.
Every step, with its detail: docs/migration/v0.6-to-v0.7.md.