mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-05 06:32:31 +00:00
14 lines
503 B
JavaScript
14 lines
503 B
JavaScript
/*jshint esversion: 11, laxcomma:true, eqeqeq:true*/
|
|
/*jshint -W014,-W084,-W030,-W033*/
|
|
const setupSheet = function({attributes,sections}){
|
|
Object.entries(systemDefaults).forEach(([section,fields])=>{
|
|
fields.forEach((fieldObj)=>{
|
|
Object.entries(fieldObj).forEach(([field,content])=>{
|
|
const row = k.generateRowID(section,sections);
|
|
k.debug({row,fields});
|
|
attributes[`${row}_${field}`] = content;
|
|
});
|
|
});
|
|
});
|
|
};
|
|
k.registerFuncs({setupSheet},{type:['new']}); |