Added fields for carry-weight
This commit is contained in:
@@ -426,6 +426,16 @@
|
||||
</div>
|
||||
</div><br>
|
||||
|
||||
<!-- Right Column Carry -->
|
||||
<div class="table-border table-background-light">
|
||||
<div class="row table-graphic-dark">
|
||||
<div class="item" style="width:30%"><h1 data-i18n="carry-u">CARRY</h1></div>
|
||||
<div class="item" style="width:25%"><input type="number" name="attr_carry" value="0"></div>
|
||||
<div class="item" style="width:20%"><h1 data-i18n="carry-max-u">MAX</h1></div>
|
||||
<div class="item" style="width:25%"><input type="number" name="attr_carry-max" value="0"></div>
|
||||
</div>
|
||||
</div><br>
|
||||
|
||||
<!-- Right Column Gear -->
|
||||
<div class="table-border table-background-light">
|
||||
<div class="row table-graphic-dark">
|
||||
@@ -1081,6 +1091,10 @@
|
||||
update_mindpoints("wits", "empathy");
|
||||
});
|
||||
|
||||
on("change:strength", function() {
|
||||
update_carryMAX("strength");
|
||||
});
|
||||
|
||||
var versioning = function() {
|
||||
console.log("Version Checking...")
|
||||
getAttrs(["version"], function(v) {
|
||||
@@ -1182,6 +1196,7 @@
|
||||
|
||||
update_hitpoints("strength", "agility");
|
||||
update_mindpoints("wits", "empathy");
|
||||
update_carryMAX("strength");
|
||||
|
||||
update_relationships();
|
||||
update_weapons();
|
||||
@@ -1441,4 +1456,13 @@
|
||||
});
|
||||
}
|
||||
|
||||
var update_carryMAX = function(par_Strength) {
|
||||
console.log("Updating carryMAX");
|
||||
getAttrs([par_Strength], function(v) {
|
||||
setAttrs({
|
||||
"carry-max": parseInt((v[par_Strength]*2),10)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@@ -55,6 +55,8 @@
|
||||
"character-skills-survival-wits": "Survival (Wit)",
|
||||
"character-skills-technology-wits": "Technology (Wit)",
|
||||
"character-skills-talents-u": "TALENTS",
|
||||
"carry-u": "CARRY",
|
||||
"carry-max-u": "MAX",
|
||||
"inventory-gear-u": "GEAR",
|
||||
"bonus-u": "BONUS",
|
||||
"armor-u": "ARMOR",
|
||||
|
||||
Reference in New Issue
Block a user