Nouvelles corrections sur la fiche

This commit is contained in:
2026-03-06 11:10:48 +01:00
parent badfea1166
commit 65dc626380
8 changed files with 96 additions and 22 deletions
+6
View File
@@ -3,4 +3,10 @@ export default class AwEItem extends Item {
prepareData() {
super.prepareData()
}
/** Return "New Ability", "New Weapon", etc. based on item type. */
static defaultName(context = {}) {
const typeLabel = game.i18n.localize(CONFIG.Item.typeLabels[context.type] ?? "Item")
return `New ${typeLabel}`
}
}