Fixed so that weaponfeatures and armorFeatures are tolerant of features having been removed

This commit is contained in:
WBHarry 2026-02-28 13:32:47 +01:00
parent c48842dd2d
commit 2ee0db2afe
5 changed files with 7 additions and 13 deletions

View file

@ -1404,9 +1404,7 @@ export const allWeaponFeatures = () => {
};
export const orderedWeaponFeatures = () => {
const homebrewFeatures = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).itemFeatures
.weaponFeatures;
const allFeatures = { ...weaponFeatures, ...homebrewFeatures };
const allFeatures = allWeaponFeatures();
const all = Object.keys(allFeatures).map(key => {
const feature = allFeatures[key];
return {