mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-23 19:09:55 +02:00
Lift definition of alt outcomes up one step (#1892)
This commit is contained in:
parent
56b2688fc4
commit
8a6d9a6369
7 changed files with 71 additions and 63 deletions
19
module/data/action/altOutcome.mjs
Normal file
19
module/data/action/altOutcome.mjs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { getDamageBaseFields } from '../fields/action/damageField.mjs';
|
||||
|
||||
const fields = foundry.data.fields;
|
||||
|
||||
export class AltOutcome extends foundry.abstract.DataModel {
|
||||
static defineSchema() {
|
||||
return {
|
||||
damage: new fields.SchemaField(getDamageBaseFields())
|
||||
// todo: add effects
|
||||
};
|
||||
}
|
||||
|
||||
get data() {
|
||||
return {
|
||||
...this.parent,
|
||||
...this
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue