swichers / dndbeyond-screen Goto Github PK
View Code? Open in Web Editor NEWA DM screen that pulls information from D&D Beyond
License: GNU Lesser General Public License v3.0
A DM screen that pulls information from D&D Beyond
License: GNU Lesser General Public License v3.0
This DM screen may not currently function because the API was recently modified.
https://character-service.dndbeyond.com/character/v3/character/{character id} may be a replacement.
See https://www.dndbeyond.com/forums/d-d-beyond-general/d-d-beyond-feedback/71065-removed-undocumented-api-endpoints-regarding for details/updates
Can't mouse wheel scroll on the dnd beyond website when death saving throw menu
Currently the logic for prepared spells is located in character-card--spells.html.twig
. This needs to be pulled into a service so that we are separating our presentation from our business logic. Additionally, this will better prepare us for adjustments and enhancements in the future.
Requirements:
CharacterCalculatorService
spells
that takes a filter type (only prepared
for now)The new methods on CharacterCalculatorService
are:
getSpells
: Gets all spells from the character, including unprepared. Includes an optional argument to restrict to only prepared spells.
getSpellsBy
: Gets all spells from the character, filtered by an argument and prepared status. The argument can be an array. Filters: race
, class
, feat
, item
. The filters should be self-explanatory, with prepared status applying to any previously filtered list. The filter values should be considered OR. i.e. getSpellsBy(['race', 'class'], TRUE)
will get all prepared spells provided from a character's race or class.
Note that when dealing with prepared spells there is special logic needed to grab available spells for certain classes. The logic that exists currently may not be entirely accurate.
The return values for both of these functions should be an array of spells, or an empty array. The format of the spell data should be the same array data that the original character array contained.
Files of note:
templates/sheet/character-card/components/character-card--spells.html.twig
src/Twig/CharacterCalculatorExtension.php
src/Service/Calculator/CharacterCalculatorService.php
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.