The singleton registry of materials. At runtime this registry is accessible as pf1.registry.materials.

Hierarchy

Constructors

Properties

model: Material = null

The class each of this registry's content is expected to be an instance of.

_defaultData: ({
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price?: undefined;
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr: boolean;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon: number;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon: boolean;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr: boolean;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible: string[];
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon: number;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName: string;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade: boolean;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade: boolean;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade: boolean;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor: number;
        lightWeapon?: undefined;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon: boolean;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade: boolean;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade: boolean;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade: boolean;
    };
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness?: undefined;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch?: undefined;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon?: undefined;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight: {
        bonusPerPound?: undefined;
        multiplier: number;
    };
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound: number;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield: {
        acp: number;
        asf?: undefined;
        maxDex?: undefined;
    };
    shortName?: undefined;
    treatedAs?: undefined;
    weight: {
        bonusPerPound?: undefined;
        multiplier: number;
    };
} | {
    _id: string;
    addon: boolean;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness?: undefined;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch?: undefined;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon: number;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon: number;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade: boolean;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade: boolean;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade: boolean;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness?: undefined;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch?: undefined;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial: string[];
    dr: boolean;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement: {
            weapon: number;
        };
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier: number;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon: number;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade: boolean;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade: boolean;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade: boolean;
    };
    armor: {
        acp: number;
        asf: number;
        maxDex: number;
    };
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor: number;
        lightWeapon?: undefined;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight: {
        bonusPerPound?: undefined;
        multiplier: number;
    };
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield?: undefined;
        lightArmor?: undefined;
        lightBlade: boolean;
        lightShield?: undefined;
        mediumArmor?: undefined;
        oneHandBlade: boolean;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade: boolean;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier: number;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon: boolean;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness?: undefined;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch?: undefined;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon: number;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade: boolean;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade: boolean;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade: boolean;
    };
    armor: {
        acp: number;
        asf?: undefined;
        maxDex: number;
    };
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor: number;
        lightWeapon?: undefined;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon: number;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon: number;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield?: undefined;
        lightArmor?: undefined;
        lightBlade?: undefined;
        lightShield?: undefined;
        mediumArmor?: undefined;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield?: undefined;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier: number;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight: {
        bonusPerPound?: undefined;
        multiplier: number;
    };
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon: number;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound: number;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield: number;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade: boolean;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade: boolean;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade: boolean;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor: number;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound: number;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon: boolean;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade: boolean;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade: boolean;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade: boolean;
    };
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness?: undefined;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch?: undefined;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor: number;
        lightWeapon?: undefined;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight: {
        bonusPerPound: number;
        multiplier?: undefined;
    };
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon: number;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon: boolean;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield: boolean;
        lightArmor?: undefined;
        lightBlade: boolean;
        lightShield: boolean;
        mediumArmor?: undefined;
        oneHandBlade: boolean;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade: boolean;
    };
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness?: undefined;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch?: undefined;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon?: undefined;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon: number;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound: number;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon: number;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound: number;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield: number;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor: {
        acp: number;
        asf: number;
        maxDex: number;
    };
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon?: undefined;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound: number;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield: number;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield: {
        acp: number;
        asf: number;
        maxDex: number;
    };
    shortName?: undefined;
    treatedAs: string;
    weight: {
        bonusPerPound?: undefined;
        multiplier: number;
    };
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial: string[];
    dr: boolean;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement: {
            weapon: number;
        };
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier: number;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs: string;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor: {
        acp: number;
        asf: number;
        maxDex: number;
    };
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon: number;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield: number;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield: {
        acp: number;
        asf: number;
        maxDex: number;
    };
    shortName?: undefined;
    treatedAs?: undefined;
    weight: {
        bonusPerPound?: undefined;
        multiplier: number;
    };
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield?: undefined;
        lightArmor?: undefined;
        lightBlade?: undefined;
        lightShield?: undefined;
        mediumArmor?: undefined;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield?: undefined;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier: number;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon: number;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs: string;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor: {
        acp: number;
        asf: number;
        maxDex: number;
    };
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon: number;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound: number;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield: number;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield: {
        acp: number;
        asf: number;
        maxDex: number;
    };
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price?: undefined;
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier: number;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork: boolean;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon?: undefined;
        perPound: number;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs: string;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon: number;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition: number;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon: number;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor: number;
        lightArmor: number;
        lightWeapon: number;
        mediumArmor: number;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield: number;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus: number;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon: number;
        mediumArmor?: undefined;
        multiplier?: undefined;
        oneHandWeapon: number;
        perPound?: undefined;
        rangedOneHandWeapon: number;
        rangedTwoHandWeapon: number;
        shield?: undefined;
        twoHandWeapon: number;
    };
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial: string[];
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price?: undefined;
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed?: undefined;
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: null;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price?: undefined;
    primitive: boolean;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield?: undefined;
        lightArmor?: undefined;
        lightBlade?: undefined;
        lightShield?: undefined;
        mediumArmor?: undefined;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield?: undefined;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness: number;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch: number;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price?: undefined;
    primitive: boolean;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield?: undefined;
        lightArmor?: undefined;
        lightBlade?: undefined;
        lightShield?: undefined;
        mediumArmor?: undefined;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield?: undefined;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness?: undefined;
    hardnessMultiplier: number;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch?: undefined;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price?: undefined;
    primitive: boolean;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor?: undefined;
        heavyShield?: undefined;
        lightArmor?: undefined;
        lightBlade?: undefined;
        lightShield?: undefined;
        mediumArmor?: undefined;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield?: undefined;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness?: undefined;
    hardnessMultiplier: number;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch?: undefined;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier: number;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive: boolean;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight: {
        bonusPerPound?: undefined;
        multiplier: number;
    };
} | {
    _id: string;
    addon?: undefined;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon: boolean;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial?: undefined;
    dr?: undefined;
    hardness?: undefined;
    hardnessMultiplier: number;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch?: undefined;
    incompatible?: undefined;
    intrinsic?: undefined;
    masterwork?: undefined;
    price: {
        ammunition?: undefined;
        enhancement?: undefined;
        heavyArmor?: undefined;
        lightArmor?: undefined;
        lightWeapon?: undefined;
        mediumArmor?: undefined;
        multiplier: number;
        oneHandWeapon?: undefined;
        perPound?: undefined;
        rangedOneHandWeapon?: undefined;
        rangedTwoHandWeapon?: undefined;
        shield?: undefined;
        twoHandWeapon?: undefined;
    };
    primitive: boolean;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight: {
        bonusPerPound?: undefined;
        multiplier: number;
    };
} | {
    _id: string;
    addon: boolean;
    allowed: {
        buckler: boolean;
        heavyArmor: boolean;
        heavyShield: boolean;
        lightArmor: boolean;
        lightBlade?: undefined;
        lightShield: boolean;
        mediumArmor: boolean;
        oneHandBlade?: undefined;
        rangedWeapon?: undefined;
        towerShield: boolean;
        twoHandBlade?: undefined;
    };
    armor?: undefined;
    baseMaterial?: undefined;
    dr: boolean;
    hardness?: undefined;
    hardnessMultiplier?: undefined;
    healthBonus?: undefined;
    healthMultiplier?: undefined;
    healthPerInch?: undefined;
    incompatible?: undefined;
    intrinsic: boolean;
    masterwork?: undefined;
    price?: undefined;
    primitive?: undefined;
    shield?: undefined;
    shortName?: undefined;
    treatedAs?: undefined;
    weight?: undefined;
})[] = ...

An array of data used to initialise this registry.

model: typeof Material = Material

The class each of this registry's content is expected to be an instance of.

Accessors

Methods

  • Returns an object of the registry's contents, with the id as key and the name as value.

    Returns {
        [id: string]: string;
    }

    The names of each value in the registry, by id

    • [id: string]: string
  • Registers a new instance of Model with the registry, using a partial of its data as the base.

    Parameters

    • namespace: string

      The namespace for which this value is registered.

    • id: string

      The unique key of the value.

    • value: object

      A Partial of the data to use as the base for the new value.

    Returns Registry<any>

    The registry itself, after the value has been registered.

    Example

    pf1.registry.damageTypes.register("my-module", "my-damage-type", {
    name: "My Damage Type",
    img: "icons/svg/damage.svg",
    category: "physical",
    });
  • Returns the contents of this registry as object, using ids as keys.

    Parameters

    • Optional source: boolean = false

      Whether to include the source data instead of its prepared data for each value.

    Returns {
        [id: string]: object;
    }

    The data of each value in the registry, by id

    • [id: string]: object
  • Unregisters a value from the registry, or if no id is provided, all values belonging to the namespace.

    Parameters

    • namespace: string

      The namespace for which this value is unregistered.

    • Optional id: string

      The unique key of the value, or undefined to unregister all values belonging to the namespace.

    Returns void

Generated using TypeDoc