Commit graph

9 commits

Author SHA1 Message Date
Johannes Loher
c5d4ec1abd refactor: improve structure of src 2022-11-04 21:47:18 +01:00
Johannes Loher
ab31450dd8 fix: address a few problems with active effect application 2022-11-04 21:09:06 +01:00
Johannes Loher
ddfab1813e refactor: extract active effect application to DS4ActiveEffect 2022-11-03 22:16:01 +01:00
Johannes Loher
b1ed05a796 feat: add functionality to apply Active Affects to owned Items
In the Active Effect Config, there are now additional inputs to configure the effect
to be applied to items owned by the actor instead of the actor itself. It is possible
to select the items to which to apply the effect via matching by name, or via a condition
expression, that provides similar capabilities as the evaluation of mathematical
expressions in rolls. Data from the Actor, Item, and Active Effect can be accessed
similar to how properties are accessed in roll formulas (using the prefixes `@actor`,
`@item`, and `@effect`). For example, in order to apply an effect to all ranged
weapons, the conditions would be
```js
'@item.type' === 'weapon' && '@item.data.attackType' === 'ranged'
```
2022-11-03 22:14:36 +01:00
Johannes Loher
12bc76ba54 refactor: use noImplicitOverride option 2022-05-29 17:48:49 +02:00
Johannes Loher
9cffa4df04 refactor: prefer type imports and sort imports 2022-02-17 01:03:42 +01:00
Johannes Loher
8d2cff77d7 refactor: use subclasses for different item types 2022-02-17 01:03:42 +01:00
Johannes Loher
be616e3be8 refactor: use subclasses for different actor types 2022-02-17 01:03:29 +01:00
Johannes Loher
1aa284311f refactor: resturcture files so that lincensing info can be bundled properly 2022-01-31 15:31:45 +01:00
Renamed from src/module/actor/actor.ts (Browse further)