FSbootcampP1G7 / dnd-companion-app

FS Bootcamp Project 1 Group 7
0 stars 0 forks source link

JS: appending spells #27

Open Mtduffey36 opened 1 month ago

Mtduffey36 commented 1 month ago

add function to append spells. use this same ticket for all races since it will be copy paste for the most part.

Mtduffey36 commented 1 month ago

can you figure out a way to specify the spell being used based on the class. I.E: paladin spell, wizard spells etc

AeroRider66 commented 1 month ago

The main API fetch calls are Wizard - ("https://www.dnd5eapi.co/api/classes/wizard/spells").
Ranger - ("https://www.dnd5eapi.co/api/classes/ranger/spells")

Have not been able to find the fetch that will list the spells and the spells by level. It might be necessary to pull the entire spell list and then strip it down to what we need. That is the only method I can see at this time.