This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { SYSTEM } from "../config/system.mjs"
|
||||
import { WEAPON_TYPE } from "../config/weapon.mjs"
|
||||
|
||||
export default class LethalFantasySkill extends foundry.abstract.TypeDataModel {
|
||||
export default class LethalFantasyWeapon extends foundry.abstract.TypeDataModel {
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields
|
||||
const schema = {}
|
||||
@@ -62,7 +63,7 @@ export default class LethalFantasySkill extends foundry.abstract.TypeDataModel {
|
||||
static LOCALIZATION_PREFIXES = ["LETHALFANTASY.Weapon"]
|
||||
|
||||
get weaponCategory() {
|
||||
return game.i18n.localize(CATEGORY[this.weaponType].label)
|
||||
return game.i18n.localize(WEAPON_TYPE[this.weaponType] || this.weaponType)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user