Recently equipped weapon/gear rolls; unequipping weapons

This commit is contained in:
Kurohyou
2023-01-09 10:48:22 -07:00
parent 8767373c4f
commit 9a9c56604b
6 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -88,7 +88,6 @@ const equipItem = function({trigger,attributes,sections,casc}){
attributes[`${newRow}_equipped`] = newSection.endsWith('stored') ?
0 :
1;
debugger;
if(section !== 'repeating_stored'){
attributes[`${newRow}_type`] = section.endsWith('equipped') ?
'gear' :
@@ -97,6 +96,7 @@ const equipItem = function({trigger,attributes,sections,casc}){
attributes[`${newRow}_type`] = attributes[`${newRow}_type`] || 'gear';
}
k.removeRepeatingRow(row,attributes,sections);
k.setActionCalls({attributes,sections});
};
k.registerFuncs({equipItem});