diff --git a/Skeleton 1st Edition/skeletonsheet.html b/Skeleton 1st Edition/skeletonsheet.html
index ed449a9dcc..ff92ce8626 100644
--- a/Skeleton 1st Edition/skeletonsheet.html
+++ b/Skeleton 1st Edition/skeletonsheet.html
@@ -295,7 +295,7 @@
Luck Token(s):
-
+
@@ -326,7 +326,7 @@
-
+
+
+
+ Add Max Physical Injuries:
+
+
+
+
+ Add Max Mental Injuries:
+
+
+
+
+ Add Max Exhaustion:
+
+
+
+
+ Add Max Blood Points:
+
+
@@ -1081,29 +1101,33 @@
});
//Changing max injuries, blood points, and max exhaustion
- on("change:willpower change:constitution change:heroic_character sheet:opened", function() {
- getAttrs(["willpower", "constitution", "heroic_character"], function(values) {
+ on("change:willpower change:constitution change:heroic_character change:extra_physical_injuries change:extra_mental_injuries change:extra_exhaustion change:extra_blood_points change:sheet:opened", function() {
+ getAttrs(["willpower", "constitution", "extra_physical_injuries", "extra_mental_injuries", "extra_exhaustion", "extra_blood_points", "heroic_character"], function(values) {
let will = parseInt(values["willpower"]) || 0;
let con = parseInt(values["constitution"]) || 0;
let heroic = parseInt(values["heroic_character"]) || 0;
- console.log(heroic);
+ let extraphys = parseInt(values["extra_physical_injuries"]) || 0;
+ let extrament = parseInt(values["extra_mental_injuries"]) || 0;
+ let extraexh = parseInt(values["extra_exhaustion"]) || 0;
+ let extrabp = parseInt(values["extra_blood_points"]) || 0;
+ console.log(heroic);
- let mentInjMax = will / 2;
- let physInjMax = con / 2;
+ let mentInjMax = extrament + (will / 2);
+ let physInjMax = extraphys + (con / 2);
let maxInj = Math.max(mentInjMax, physInjMax);
let minInj = Math.min(mentInjMax, physInjMax)
if (heroic == 1) {
- var exhMax = (2 * maxInj) + minInj;
+ var exhMax = (2 * maxInj) + minInj + extraexh;
}
else {
- var exhMax = mentInjMax + physInjMax;
+ var exhMax = mentInjMax + physInjMax + extraexh;
}
setAttrs({
mental_injuries_max: mentInjMax,
physical_injuries_max: physInjMax,
- blood_points_max: con,
+ blood_points_max: con + extrabp,
exhaustion_max: exhMax
});