Skip to content

fix(5e-SRD-spell.ts): Modify Spell damage schema and add multi damage type support#1190

Open
JuCJeff wants to merge 1 commit into
5e-bits:mainfrom
JuCJeff:spell-with-multi-damage-type-fix
Open

fix(5e-SRD-spell.ts): Modify Spell damage schema and add multi damage type support#1190
JuCJeff wants to merge 1 commit into
5e-bits:mainfrom
JuCJeff:spell-with-multi-damage-type-fix

Conversation

@JuCJeff

@JuCJeff JuCJeff commented Jul 21, 2026

Copy link
Copy Markdown

What does this do?

This modified the damage schema for spells to an array of objects instead of an object. This change helps support spells with multiple damage types and is following the convention of the monster damage schema.

As part of this PR a few things are being modified:

  • Changes schema from an object of SpellDamageSchema to an array of the object schema

  • Converted all existing spell damages to the array of objects format in src/2014/en/5e-SRD-Spells.json and src/2014/fr-FR/5e-SRD-Spells.json

  • Modified 3 specific spells that does multi-type damages:

  1. Ice Stom (spell reference)
  2. Flame Strike (spell reference)
  3. Meteor Swarm (spell reference)

How was it tested?

Ran npm test src/2014/tests/schemas.test.ts and passed ✅

Is there a Github issue this is resolving?

#558 (comment)

Did you update the docs in the API? Please link an associated PR if applicable.

Have not done that. Will need further input on what this entails @bagelbits

Here's a fun image for your troubles

Screenshot 2026-07-14 at 8 56 51 AM

@JuCJeff
JuCJeff requested a review from bagelbits as a code owner July 21, 2026 08:53
@JuCJeff JuCJeff changed the title fix (5e-SRD-spell.ts): Modify Spell damage schema and add multi damage type support fix(5e-SRD-spell.ts): Modify Spell damage schema and add multi damage type support Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant