Files
roll20-character-sheets/rapidfire_system/Javascript/updaters.js
T

7 lines
340 B
JavaScript

const update1x01 = function({attributes,sections}){
sections.repeating_drone.forEach((id)=>{
attributes[`repeating_drone_${id}_struct`] = attributes[`repeating_drone_${id}_structure`];
attributes[`repeating_drone_${id}_struct_max`] = attributes[`repeating_drone_${id}_structure_max`];
});
};
updateHandlers['1.01'] = update1x01;