Skip to content

Resolve "Active Effect Expiration v2"

FloRad requested to merge 531-active-effect-expiration-v2 into develop

Related to #531 (closed)

Added

  • Added flavour option to IRollOptions interface.
  • Refactored the way Active Effect expiration is handled. This takes 2 main forms (#531 (closed))
    • There is now a Reset Duration button for expiration Prompts.
    • For Developers: There is now an expiration callback API Collection
      • For Users: The Shaken, Stunned and Bleeding Out effects now trigger workflows and interactions to resolve them.
      • For Developers: which you can find at game.swade.effectCallbacks any time during or after the init hook. This collection uses status effect IDs as keys and functions as values. Each function is passed the expiring Active Effect object as its sole parameter. These functions can be asynchronous and are awaited. When an effect expires the system looks for the effect's ID in the collection. If it finds one it executes it, otherwise a fallback is used. You can also delete or overwrite existing callbacks so please be mindful.

Changed

  • You can now pass title and flavour overrides to skill and attribute rolls

Deprecated

  • Finished depreciation of string and number types in the additionalMods portion of IRollOptions
Edited by FloRad

Merge request reports

Loading