[Shadowrun5thA] use correct naming for skillusage

This commit is contained in:
Stexinator
2021-09-17 15:08:02 +02:00
parent 3f34ccd323
commit 10dbdf42df
+6 -6
View File
@@ -2401,7 +2401,7 @@ Can lift overhead (Strength + Nethits) x 5kg}}"></button>
</div>
</div>
<div>
<fieldset class="repeating_skillusage">
<fieldset class="repeating_perceptionusage">
<div class="usagerow">
<div class="namewrapper">
<input type="text" name="attr_skillname" title="Name of the special skill usage">
@@ -12964,11 +12964,11 @@ on("change:skillshowallcheckbox9", function() {
});
on("change:repeating_skillusage:skilllimit", function() {
getAttrs(["repeating_skillusage_skilllimit"], function(value) {
on("change:repeating_perceptionusage:skilllimit", function() {
getAttrs(["repeating_perceptionusage_skilllimit"], function(value) {
setAttrs({
repeating_skillusage_skilllimit_name: value.repeating_skillusage_skilllimit+"_name}",
repeating_skillusage_skilllimit_value: value.repeating_skillusage_skilllimit+"_total}"
repeating_perceptionusage_skilllimit_name: value.repeating_perceptionusage_skilllimit+"_name}",
repeating_perceptionusage_skilllimit_value: value.repeating_perceptionusage_skilllimit+"_total}"
});
});
});
@@ -13039,7 +13039,7 @@ on('clicked:repeating_ammotype1:roll clicked:repeating_ammotype2:roll clicked:re
'clicked:repeating_ammotype6:roll clicked:repeating_ammotype7:roll clicked:repeating_ammotype8:roll '+
'clicked:repeating_weapons:roll clicked:repeating_knowledge:roll '+
'clicked:repeating_spells:roll clicked:repeating_rituals:roll clicked:repeating_alchemy:roll clicked:repeating_critterpowers ' +
'clicked:repeating_skillusage:roll',
'clicked:repeating_perceptionusage:roll',
(event) => {
// prefix gets an empty string for normal attributes, and repeating_section_ID_ for repeating attributes