diff --git a/scripts/dnd5e/ItemPrep.js b/scripts/dnd5e/ItemPrep.js index 8750b11..daf8213 100644 --- a/scripts/dnd5e/ItemPrep.js +++ b/scripts/dnd5e/ItemPrep.js @@ -39,17 +39,17 @@ export default class ItemPrep { /** @type {Object.} A set of item classifications by type */ features = { - legResist: { prep: ItemPreper, filter: MonsterBlock5e.isLegendaryResistance, label: game.i18n.localize("MOBLOKS5E.LegendaryResistance"), items: [], dataset: {type: "feat"} }, - legendary: { prep: ActionPreper, filter: MonsterBlock5e.isLegendaryAction, label: game.i18n.localize("DND5E.LegAct"), items: [], dataset: {type: "feat"} }, - lair: { prep: ActionPreper, filter: MonsterBlock5e.isLairAction, label: game.i18n.localize("MOBLOKS5E.LairActionsHeading"), items: [], dataset: {type: "feat"} }, - multiattack: { prep: ActionPreper, filter: MonsterBlock5e.isMultiAttack, label: game.i18n.localize("MOBLOKS5E.Multiattack"), items: [], dataset: {type: "feat"} }, - casting: { prep: CastingPreper, filter: CastingPreper.isCasting.bind(CastingPreper), label: game.i18n.localize("DND5E.Features"), items: [], dataset: {type: "feat"} }, - reaction: { prep: ActionPreper, filter: MonsterBlock5e.isReaction, label: game.i18n.localize("MOBLOKS5E.Reactions"), items: [], dataset: {type: "feat"} }, - bonusActions: { prep: ActionPreper, filter: MonsterBlock5e.isBonusAction, label: game.i18n.localize("MOBLOKS5E.BonusActions"), items: [], dataset: {type: "feat"} }, - attacks: { prep: AttackPreper, filter: item => item.type === "weapon", label: game.i18n.localize("DND5E.AttackPl"), items: [], dataset: {type: "weapon"} }, - actions: { prep: ActionPreper, filter: MonsterBlock5e.isAction, label: game.i18n.localize("DND5E.ActionPl"), items: [], dataset: {type: "feat"} }, - features: { prep: ItemPreper, filter: item => item.type === "feat", label: game.i18n.localize("DND5E.Features"), items: [], dataset: {type: "feat"} }, - equipment: { prep: ItemPreper, filter: () => true, label: game.i18n.localize("DND5E.Inventory"), items: [], dataset: {type: "loot"} } + legResist: { prep: ItemPreper, filter: MonsterBlock5e.isLegendaryResistance, items: [], dataset: {type: "feat"} }, + legendary: { prep: ActionPreper, filter: MonsterBlock5e.isLegendaryAction, items: [], dataset: {type: "feat"} }, + lair: { prep: ActionPreper, filter: MonsterBlock5e.isLairAction, items: [], dataset: {type: "feat"} }, + multiattack: { prep: ActionPreper, filter: MonsterBlock5e.isMultiAttack, items: [], dataset: {type: "feat"} }, + casting: { prep: CastingPreper, filter: CastingPreper.isCasting.bind(CastingPreper), items: [], dataset: {type: "feat"} }, + reaction: { prep: ActionPreper, filter: MonsterBlock5e.isReaction, items: [], dataset: {type: "feat"} }, + bonusActions: { prep: ActionPreper, filter: MonsterBlock5e.isBonusAction, items: [], dataset: {type: "feat"} }, + attacks: { prep: AttackPreper, filter: item => item.type === "weapon", items: [], dataset: {type: "weapon"} }, + actions: { prep: ActionPreper, filter: MonsterBlock5e.isAction, items: [], dataset: {type: "feat"} }, + features: { prep: ItemPreper, filter: item => item.type === "feat", items: [], dataset: {type: "feat"} }, + equipment: { prep: ItemPreper, filter: () => true, items: [], dataset: {type: "loot"} } }; /**