Orcpub / orcpub

Code for Dungeon Master's Vault Community Edition
https://www.dungeonmastersvault.com/
Eclipse Public License 2.0
211 stars 106 forks source link

Hit Dice Checkboxes #442

Open BDeveau opened 4 years ago

BDeveau commented 4 years ago

Motivation / Use Case

Hit Dice can be rolled for healing during a short rest, a very commonly used mechanic that is not represented in the UI currently.

Expected Behavior

Under the "Features" tab (or other chosen location) display checkboxes to track Hit Dice that have been used, similar to other class abilities IE: Bardic Inspiration, Channel Divinity, etc. Hit dice are regained on a long rest equal to 1/2 the total amount according to 5e rules.

The hit dice should be organized into groups based on dice size in the case of multiclass characters. (A level 2 Fighter, level 1 Rogue has 2 d10 and 1 d8 for hit dice, tracked separately)

Other Information

Hit Dice information is already tracked for the character, it just is not displayed in a way to be easily used. When a sheet is exported, the "Hit Dice" box on the resulting PDF gives the correct information, it's only a matter of display this information on-screen, and connecting it to the "Finish Long Rest" Button that appears on the page.

PHB Page 186: "A character can spend one or more Hit Dice at the end of a short rest, up to the character's maximum number of Hit Dice, which is equal to the character's level."

"At the end of a long rest, a character regains all lost hit points. The character also regains spent Hit Dice, up to a number of dice equal to half of the character's total number of them. You regain at least 1 Hit Die when you finish a long rest."