Here are some more pieces
const CUSTOM_CONFIG = {
DND5E: {},
CHAOSOS: {},
};
/**
* @typedef WeaponMasteryConfig
* @prop {Set<string>} prerequisites
* @prop {string} label
*/
/**
* @type {Record<string, WeaponMasteryConfig>}
*/
CUSTOM_CONFIG.CHAOSOS.weaponMastery = {
cleave: {
label: 'Cleave',
prerequisites: new Set(['melee', 'hvy']),
},
graze: {
label: 'Graze',
prerequisites: new Set(['melee', 'hvy']),
},
nick: {
label: 'Nick',
prerequisites: new Set(['lgt']),
},
push: {
label: 'Push',
prerequisites: new Set(['hvy', 'two', 'ver']),
},
sap: {
label: 'Sap',
prerequisites: new Set(['ver', 'none']),
},
slow: {
label: 'Slow',
prerequisites: new Set([]),
},
topple: {
label: 'Topple',
prerequisites: new Set(['hvy', 'rch', 'ver']),
},
vex: {
label: 'Vex',
prerequisites: new Set(['amm', 'fin', 'lgt']),
},
};
/**
* UA7 "The Sap property now works with weapons that have the Versatile property or no property."
*/
CUSTOM_CONFIG.CHAOSOS.sapExclusions = new Set([
'amm',
'fin',
'hvy',
'lgt',
'lod',
'rch',
'rel',
'ret',
'spc',
'thr',
'two',
]);
Hooks.once('init', () => {
foundry.utils.mergeObject(CONFIG, CUSTOM_CONFIG);
});