Add edit/viewability to the item rarity (closes #152)

This commit is contained in:
Oliver-Akins 2024-03-31 15:19:19 -06:00
parent de672642d2
commit ad2da03f1e
6 changed files with 49 additions and 5 deletions

View file

@ -34,8 +34,10 @@ export const skills = {
export const defaultItemTier = `simple`;
export const itemTiers = [
`simple`, `greater`,
`rare`, `legendary`
{ value: `simple`, label: `dotdungeon.rarity.simple` },
{ value: `greater`, label: `dotdungeon.rarity.greater` },
{ value: `rare`, label: `dotdungeon.rarity.rare` },
{ value: `legendary`, label: `dotdungeon.rarity.legendary` },
];
export const syncMilestones = [

View file

@ -31,7 +31,7 @@ export class CommonItemData extends foundry.abstract.TypeDataModel {
tier: new fields.StringField({
initial: DOTDUNGEON.defaultItemTier,
nullable: false,
choices: DOTDUNGEON.itemTiers,
choices: DOTDUNGEON.itemTiers.map(tier => tier.value),
}),
/*
If this property is set to true, the item will be shown in the combat tab