Body, Mind & Soul — API Reference
    Preparing search index...

    Class BodyMindSoulGearUpgradeSheet

    AppV2 sheet for Gear Upgrade items.

    Hierarchy

    • BmsItemSheet<this>
      • BodyMindSoulGearUpgradeSheet

    Indexable

    • [key: string]: any
    Index
    DEFAULT_OPTIONS: {
        actions: {
            addModification: any;
            addUpgradeAction: (event: any, target: any) => Promise<void>;
            deleteModification: any;
            editImage: (event: any, target: any) => void;
            openUpgradeAction: (event: any, target: any) => Promise<void>;
            removeKeyword: (event: any, target: any) => Promise<void>;
            removeUpgradeAction: (event: any, target: any) => Promise<void>;
        };
        classes: string[];
        form: {
            handler: (event: any, form: any, formData: any) => Promise<void>;
            submitOnChange: boolean;
            submitOnClose: boolean;
        };
        tag: string;
        window: { height: number; icon: string; resizable: boolean; width: number };
    } = ...
    PARTS: {
        actions: { scrollable: string[]; template: string };
        attributes: { scrollable: string[]; template: string };
        description: { template: string };
        effects: { scrollable: string[]; template: string };
        header: { template: string };
        tabs: { template: string };
    } = ...
    TABS: {
        primary: {
            initial: string;
            labelPrefix: string;
            tabs: { icon: string; id: string; tooltip: string }[];
        };
    } = ...
    TEMPLATE_ROOT: string = "systems/body-mind-and-soul/templates/item/gear-upgrade"
    • Attach show/filter/select behaviour to a single .mod-field-combobox element.

      Parameters

      • combobox: HTMLElement
      • fieldOptions: object[]

      Returns void

    • Parameters

      • partId: any
      • htmlElement: any
      • options: any

      Returns void

    • Build the grouped field list for the modifications combobox. Gear upgrades show gear-specific fields plus the standard actor-level fields.

      Returns object[]

      Array of { group, value, label }

    • Rebuild a modification row's operation select to only show ops valid for the given field.

      Parameters

      • row: HTMLElement
      • fieldValue: string

      Returns void

    • Determine the modification field category from a field string.

      Parameters

      • fieldValue: string

      Returns string

    • Returns any

    • Parameters

      • event: any
      • effect: any

      Returns Promise<any>

    • Parameters

      • options: any

      Returns Promise<any>

    • Parameters

      • partId: any
      • context: any
      • options: any

      Returns Promise<any>

    • Parameters

      • event: any
      • target: any

      Returns Promise<void>

    • Parameters

      • event: any
      • target: any

      Returns void

    • Parameters

      • event: any

      Returns void

    • Parameters

      • event: any
      • target: any

      Returns Promise<void>

    • Parameters

      • event: any
      • target: any

      Returns Promise<void>

    • Parameters

      • event: any
      • target: any

      Returns Promise<void>

    • Parameters

      • event: any
      • form: any
      • formData: any

      Returns Promise<void>