Add D&D 5e spell description display on stat blocks #36
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
PF2e stat blocks already support clickable spell names that show inline descriptions (popover on desktop, bottom sheet on mobile) using data embedded in the creature JSON. D&D 5e creatures only store spell names as strings — the full spell data lives in separate 5etools source files. To show D&D spell descriptions, the user must explicitly load spell data (same legal model as bestiary source loading — the app never bundles or delivers the content).
When a user clicks a D&D spell name and the spell data is not yet cached, the popover shows a mini fetch prompt (analogous to
SourceFetchPromptfor bestiary sources) where the user can confirm a pre-filled URL or upload a local file. After loading, the popover updates to show the spell description. Subsequent clicks on spells from the same source are instant. Spell sources appear in the existing Source Manager alongside bestiary sources for cache management.Spell descriptions must respect the active rules edition setting (2014 vs 2024). The 2014 and 2024 versions of spells often differ in range, damage, duration, and some spells are renamed. The spell index and cache must support both editions, and the displayed description must match the active rules edition.
Acceptance Criteria