[Shadowrun5thA] fix skillattr sheetworker

This commit is contained in:
Stexinator
2021-09-18 10:13:32 +02:00
parent 3f34ccd323
commit a59fbcf454
+10
View File
@@ -12984,6 +12984,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() {