Pathfinder 1e for Foundry VTT
    Preparing search index...

    Class DamagePartModel

    Hierarchy

    • any
      • DamagePartModel
    Index

    Constructors

    Properties

    formula: string

    Damage formula

    types: Set<String>

    Damage type IDs

    Is an array in raw data instead.

    Accessors

    • get custom(): Set<string>

      Custom types

      Returns Set<string>

    • get names(): string[]

      Parsed names of all types

      Returns string[]

    • get parsed(): { custom: Set<string>; standard: Set<DamageType> }

      Parsed types

      Returns { custom: Set<string>; standard: Set<DamageType> }

    • get standard(): Set<DamageType>

      Standard types

      Returns Set<DamageType>

    Methods

    • Returns void

    • Returns {
          formula: FormulaField;
          types: SetField<
              StringField<
                  { blank: false; nullable: false },
                  AssignmentType<{ blank: false; nullable: false }>,
                  InitializedType<{ blank: false; nullable: false }>,
                  InitializedType<{ blank: false; nullable: false }>,
              >,
              { initial: undefined; required: false },
              AssignmentType<{ blank: false; nullable: false }>,
              InitializedType<{ blank: false; nullable: false }>,
              AssignmentType<
                  AssignmentType<{ blank: false; nullable: false }>,
                  { initial: undefined; required: false },
              >,
              InitializedType<
                  InitializedType<{ blank: false; nullable: false }>,
                  { initial: undefined; required: false },
              >,
              InitializedType<{ blank: false; nullable: false }>,
              PersistedType<
                  InitializedType<{ blank: false; nullable: false }>,
                  { initial: undefined; required: false },
              >,
          >;
      }

    • Parameters

      • source: any

      Returns any

    • Prune data

      Parameters

      • source: object

        Damage part data

      Returns void