Skip to content

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

Merged
bagelbits merged 2 commits into
5e-bits:mainfrom
JuCJeff:spell-with-multi-damage-type-fix
Sep 12, 2026
Merged

bagelbits merged 2 commits into
5e-bits:mainfrom
JuCJeff:spell-with-multi-damage-type-fix

Conversation

@JuCJeff

@JuCJeff JuCJeff commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

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
@bagelbits
bagelbits enabled auto-merge (squash) September 12, 2026 22:43
@bagelbits
bagelbits merged commit 536928f into 5e-bits:main Sep 12, 2026
5 checks passed
bagelbits pushed a commit that referenced this pull request Sep 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[5.11.1](v5.11.0...v5.11.1)
(2026-09-12)


### Bug Fixes

* **5e-SRD-spell.ts:** Modify Spell damage schema and add multi damage
type support
([#1190](#1190))
([536928f](536928f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: 5e-bits-deploy-bot[bot] <209387221+5e-bits-deploy-bot[bot]@users.noreply.github.com>
bagelbits added a commit that referenced this pull request Sep 13, 2026
… type support (#1190)

## 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](https://www.dndbeyond.com/spells/2151-ice-storm?srsltid=AfmBOooNYeK1yBx10yRo4j2hIaTUZDkjVUE_iSD3FyViyw6BWO83DwE6))
2. Flame Strike ([spell
reference](https://www.dndbeyond.com/spells/2189-meteor-swarm?srsltid=AfmBOopePeaNdBRW9m9tM1VS3MEKPvPkGi7lOY3TJrBlUp_SyjV27tAQ))
3. Meteor Swarm ([spell
reference](https://www.dndbeyond.com/spells/2189-meteor-swarm?srsltid=AfmBOopePeaNdBRW9m9tM1VS3MEKPvPkGi7lOY3TJrBlUp_SyjV27tAQ))

## 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

<img width="292" height="246" alt="Screenshot 2026-07-14 at 8 56 51 AM"
src="https://github.com/user-attachments/assets/4516fedd-4b8f-4bee-8788-63a055a7eca2"
/>

Co-authored-by: Chris Ward <cdurianward@gmail.com>
bagelbits pushed a commit that referenced this pull request Sep 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[5.11.1](v5.11.0...v5.11.1)
(2026-09-12)


### Bug Fixes

* **5e-SRD-spell.ts:** Modify Spell damage schema and add multi damage
type support
([#1190](#1190))
([536928f](536928f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: 5e-bits-deploy-bot[bot] <209387221+5e-bits-deploy-bot[bot]@users.noreply.github.com>
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.

2 participants