-
Ethaks authored
Add documentation for hooks via a hooks.d.ts file. Rename `Attack` class to `ActionUse` and move directory. Change `ActionUse` constructor to only require a `shared` object. Move HelpBrowser instance from `pf1.helpBrowser` to `pf1.applications.helpBrowser`. Call `pf1GetChangeFlat` hook regardless of whether the system generated a result already, so that modules can add or remove targets. Introduce hooks called after actor rolls in addition to their pre-hooks. Introduce/split (pre)ActorRest hook. Deprecate `ItemPF#roll` in favor of `ItemPF#displayCard` to only print a card to chat without using an item. Deprecate `ItemPF#useAttack` in favor of `ItemPF#use`. Add `item` and `action` to an `ActionUse`'s `shared` object. Add `typedoc-plugin-missing-exports` to export JSDoc types. Fix jsconfig paths for `@item/*`. Add jsconfig paths for `@actionUse/*`, `@config`, and `@component/*`. BREAKING CHANGE: Remove deprecated `ItemPF#useConsumable`
Ethaks authoredAdd documentation for hooks via a hooks.d.ts file. Rename `Attack` class to `ActionUse` and move directory. Change `ActionUse` constructor to only require a `shared` object. Move HelpBrowser instance from `pf1.helpBrowser` to `pf1.applications.helpBrowser`. Call `pf1GetChangeFlat` hook regardless of whether the system generated a result already, so that modules can add or remove targets. Introduce hooks called after actor rolls in addition to their pre-hooks. Introduce/split (pre)ActorRest hook. Deprecate `ItemPF#roll` in favor of `ItemPF#displayCard` to only print a card to chat without using an item. Deprecate `ItemPF#useAttack` in favor of `ItemPF#use`. Add `item` and `action` to an `ActionUse`'s `shared` object. Add `typedoc-plugin-missing-exports` to export JSDoc types. Fix jsconfig paths for `@item/*`. Add jsconfig paths for `@actionUse/*`, `@config`, and `@component/*`. BREAKING CHANGE: Remove deprecated `ItemPF#useConsumable`
Loading