Sentinel Comics RPG (#6765)

* update to version by theDissilent

Expand the sheet to include full details from Character sheets and adds in Auxiliary sheets. Also incorporates CSS for ease of use.

* Outdated

I'm sure a new one will be added to represent the new version

* Add Icons and Die images

* remove outdated image

Replacing with 3 pages

* Add 3 Page "Bunker" Character Sheet

* Reasy for pull

* Add files via upload

* sheet.json ready

* Action Type Values

* updates old version sheets

* only 1 character sheet

Pull request displayed error due to 2 sheets, so I'm reducing it

* only 1 preview file listed in sheet.json

* Update SCRPG-Sheet.html

changed "currenthp" & "greenmax" to "health" & "health_max" to allow for healthbars on tokens.
This commit is contained in:
the-Dissilent
2020-06-22 10:22:02 -04:00
committed by GitHub
parent fc767c1e43
commit 78bc5f92be
+22 -7
View File
@@ -201,9 +201,9 @@
<img class="hchead" src="https://i.imgur.com/bzuXbDT.png">
<h3 class="shead hchead" style="text-indent: 5px;">Current Health</h3>
<img class="hmax" src="https://i.imgur.com/FmcydJE.png">
<div class="hmax"><input type="number" name="attr_greenmax" style="width: 62px" value=17></div>
<div class="hmax"><input type="number" name="attr_health_max" style="width: 62px" value=17></div>
<img class="hcur" src="https://i.imgur.com/FmcydJE.png">
<div class="hcur"><input type="number" name="attr_currenthp" style="width: 62px" value=17></div>
<div class="hcur"><input type="number" name="attr_health" style="width: 62px" value=17></div>
</div>
<div class="col" style="width: 100%; height: 15px;"></div>
</div>
@@ -300,7 +300,7 @@
</select>
</div>
<div class="sgreen"></div>
<div class="sgreen"><input type="number" name="attr_greenmax" style="width: 42px" value=17></div>
<div class="sgreen"><input type="number" name="attr_health_max" style="width: 42px" value=17></div>
<span class="sgreen" name="attr_greenmin"></span>
<!-- Yellow Status -->
<div class="syellow"></div>
@@ -346,7 +346,7 @@
<!-- Current Health -->
<div class="sblack"></div>
<span class="sblack">Current</span>
<div class="sblack"><input type="number" name="attr_currenthp" style="width: 42px" value=17></div>
<div class="sblack"><input type="number" name="attr_health" style="width: 42px" value=17></div>
</div>
<!-- Status Tracking -->
<div class="col" style="width: 91px; height: 30px; border-style: solid; border-width: 1%;">
@@ -1476,9 +1476,9 @@
});
// CODE FOR HEALTH RANGES from TOTAL HP
on('change:greenmax sheet:opened', function() {
getAttrs(['greenmax'], function(values) {
var indexg = parseInt(values.greenmax);
on('change:health_max sheet:opened', function() {
getAttrs(['health_max'], function(values) {
var indexg = parseInt(values.health_max);
var indexy = Math.round((indexg+2)*0.7);
var indexr = Math.round((indexg+2)/3);
if (indexg === 37) {
@@ -1675,6 +1675,9 @@
case version < 1:
update_to_v1();
break;
case version < 1.1:
update_to_v1_1();
break;
case version < 2:
// add another function here when you need it
break;
@@ -1752,4 +1755,16 @@
});
});
};
function update_to_v1_1() {
getAttrs(["version","greenmax","currenthp"], function(v) {
let output = {};
output.version = 1.1;
output["health"] = currenthp;
output["health_max"] = greenmax;
setAttrs(output,
{silent: true},
versionator(output.version));
});
};
</script>