C-3PFLO / flow-rpg

RPG your NFT
1 stars 0 forks source link

Pull from dnd5eapi #21

Open C-3PFLO opened 1 year ago

C-3PFLO commented 1 year ago

http://www.dnd5eapi.co/docs/#overview

C-3PFLO commented 1 year ago

Can pull all of the meta data and descriptions from the API client side, and then just validate the transaction against an allowed key list on chain. Can also build the allowed key list with an admin app.

Or can push data to chain. Will use more storage and probably slower/harder to fetch, but it’s in one place and not at risk of removal.

C-3PFLO commented 1 year ago

Can also use the source JSON files: https://github.com/5e-bits/5e-database/blob/main/src/5e-SRD-Spells.json

However, the spell list is incomplete. It's even missing PHB spells like Chromatic Orb.

C-3PFLO commented 1 year ago

Confirmed that SRD has a limited set of spells, options, monsters, etc even relative to PHB