Comments (2)
Preliminary investigation.
This is complicated by the fact that $DATA['HP'] holds the max HP (strictly full HP, since temp HP can take one higher) which presently appears as one field in the sheet, which this change would replace with "HD rolls" (base) and "HDรCon", only showing their value (as the current total, $DATA['HPWounds']) when no temp or damage are in effect.
The new organisation will also need (analogous to those for the AC row) onchanged triggers for the editable fields.
That ties in to the fact that existing saved sheets have $DATA['HP'], which is one of the fields to be displayed in a campaign summary table only the campaign owner (i.e. DM) gets to see. I think it'll make sense to change that table to use a new HPFull, in place of HP, that gets set by the onchanged of HPHitDice or Con.
When HP is set (coming from legacy save) and the new HPHitDice isn't, the code is going to need to infer the latter from the former and initialize HPFull, clearing HP while it's about it.
from rpg-profile.
Between the current total and the non-lethal box, where there's space for one character (it's how this table is organised), I guess it'd make sense to have a > (grey), = or < sign (the latter two red, bold, generally visible) to indicate whether the character is still standing, staggered or unconscious.
from rpg-profile.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpg-profile.