GithubHelp home page GithubHelp logo

fraterrisus / dnd5e Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 863 KB

repository of information and utilities for running D&D Next (5th edition) games

License: GNU General Public License v2.0

Ruby 57.49% JavaScript 17.40% HTML 24.51% SCSS 0.48% Shell 0.13%

dnd5e's People

Contributors

dependabot[bot] avatar fraterrisus avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

dnd5e's Issues

User support

At the moment the app totally lacks any sort of user/permission model. Look into cancancan or something.

It would be nice to be able to deploy this code out on the public internet with at least basic user/pass protection on it, given that we're in the world of virtual tabletop gaming due to the pandemic.

Permissions are probably admin / DM / player or something like that; consider just allowing fine-grained permissions on all obvious actions (see Character List; create new Character; delete Character; edit Character). For extra credit, allow an account to be tied to one or more Characters on the list.

Upgrade to Bootstrap 5

Bootstrap 5 is still in beta as of the time of this writing. Upgrading will be significant; v5 gets rid of the dependency on jQuery, so at the very least all of our event handlers will switch from using $(element).on to element.addEventListener.

"Add Spell" feature

Create a "add spell" function in the user interface. It should be able to display a file from /public/spells in order to make it easier for a human to enter the spell data. Don't forget to include the join with caster_class.

As a followup, modify the spell importer to parse the HTML and automatically add entries to the spells table.

Database: change field names to prevent overloading methods

Naming database fields name was dumb, because Object#name already exists in ruby. Write migrations to fix this.

At the moment the most notable manifestation of this is in "new object" modal dialogs... when you send a Class into form_with, and then call form.field(:name), you get the name of the class.

Testing

  1. Write some damn unit tests for the ruby code.
  2. Figure out how to test the javascript.

Do something with Combatant#effect

At the moment this is an integer field that doesn't do anything. Figure out how to make it useful on the Combatants page.

Probably we'll want to use Spell#components as a model, especially the way we dynamically broke it out into :somatic, :verbal, etc. There are kind of a lot of possible effects, though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.