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

    Class ExperienceDistributor

    Hierarchy

    • any
      • ExperienceDistributor
    Index

    Constructors

    • Parameters

      • options: { actors?: any[] } = {}

        App options

        • Optionalactors?: any[]

          Actors in combat

      Returns ExperienceDistributor

    Properties

    Special actor data array

    _bonusXP: number = 0

    Bonus XP granted

    PRELOAD: boolean = false

    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: ExperienceDistributor
        • XP distributor instance rather than the class.
      • splitEvenly: boolean = false

        Should XP be split evenly?

      Returns Promise<void>

    • 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: any

      Returns boolean

    • Open XP distributor dialog based on passed combat instance.

      Parameters

      • combat: Combat

        Combat instance

      Returns ExperienceDistributor

      • Application instance