Merge pull request #9519 from Stexinator/Shadowrun5thA_fix_change_skillattr

[Shadowrun5thA] fix skillattr sheetworker
This commit is contained in:
Nic Bradley
2021-09-20 10:41:38 -07:00
committed by GitHub
+10
View File
@@ -12987,6 +12987,16 @@ for (const index in skillIndices) { // select each item in skillList as const sk
});
});
});
on(`change:skillattr${index}`, function(eventInfo) {
getAttrs([`skillattr${index}`], function() {
setAttrs({
[`skillattr_name${index}`]: `${eventInfo.newValue}_name}`,
[`skillattr_value${index}`]: `${eventInfo.newValue}_total}`
});
});
});
}
on("change:repeating_knowledge:knowledgeattr", function() {