Add edit/viewability to the item rarity (closes #152)
This commit is contained in:
parent
de672642d2
commit
ad2da03f1e
6 changed files with 49 additions and 5 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue