mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Lift definition of alt outcomes up one step
This commit is contained in:
parent
f607e8dfa4
commit
1ffde09568
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