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

    Class ExperienceDistributor

    Hierarchy

    • HandlebarsApplication<this> & ApplicationV2<
          RenderContext,
          Configuration,
          RenderOptions,
          this,
      >
      • ExperienceDistributor
    Index

    Constructors

    • Parameters

      • __namedParameters: { actors?: never[] } = {}

      Returns ExperienceDistributor

    Properties

    Special actor data array

    _bonusXP: number = 0

    Bonus XP granted

    DEFAULT_OPTIONS: {
        actions: { full: (event: Event) => any; split: (event: Event) => any };
        classes: string[];
        dragDrop: { dragSelector: null; dropSelector: string }[];
        id: string;
        position: { height: number; width: number };
        tag: string;
        window: {
            icon: string;
            minimizable: boolean;
            resizable: boolean;
            title: string;
        };
    } = ...
    PARTS: {
        footer: { template: string };
        form: { scrollable: string[]; template: string };
    } = ...

    Accessors

    • get splitExperience(): number

      Split experience, as split across all characters.

      Returns number

      • Reward value
    • get totalExperience(): number

      Total experience the encounter is worth, including regular XP reward and bonus XP.

      Returns number

      • Total value

    Methods

    • Internal

      Distributes experience to all PC actors

      Parameters

      • ...this: any
      • splitEvenly: boolean = false

        Should XP be split evenly?

      Returns Promise<void>

    • Internal

      The event handler for changes to form input elements

      Parameters

      • formConfig: ApplicationFormConfiguration

        The configuration of the form being changed

      • event: Event

        The triggering event

      Returns void

    • Protected

      Handle Drop Event

      Parameters

      • event: DragEvent

        The originating DragEvent

      Returns Promise<void>

    • Internal

      Parameters

      • partId: any
      • context: any

      Returns any

    • Internal

      Full reward for each

      Parameters

      • event: Event

      Returns any

    • Split reward for each

      Parameters

      • event: Event

      Returns any

    • Should the actor be selected by default.

      Parameters

      • actor: Actor<"base" | ModuleSubType>

      Returns boolean

    • Open XP distributor dialog based on passed combat instance.

      Parameters

      • combat: Combat<"base" | ModuleSubType>

        Combat instance

      Returns ExperienceDistributor

      • Application instance