mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-05 20:34:15 +02:00
Changed to use DefaultOutcome and added successHope as an alt outcome
This commit is contained in:
parent
482b932cd6
commit
e12d5ce851
6 changed files with 41 additions and 22 deletions
|
|
@ -24,6 +24,7 @@ export default class DamageField extends fields.SchemaField {
|
|||
const damageFields = {
|
||||
...getDamageBaseFields(),
|
||||
altOutcomes: new fields.SchemaField({
|
||||
successHope: new fields.EmbeddedDataField(AltDamageOutcome, { nullable: true, initial: null }),
|
||||
successFear: new fields.EmbeddedDataField(AltDamageOutcome, { nullable: true, initial: null }),
|
||||
failureHope: new fields.EmbeddedDataField(AltDamageOutcome, { nullable: true, initial: null }),
|
||||
failureFear: new fields.EmbeddedDataField(AltDamageOutcome, { nullable: true, initial: null })
|
||||
|
|
@ -345,7 +346,16 @@ export class DHDamageData extends DHResourceData {
|
|||
export class AltDamageOutcome extends foundry.abstract.DataModel {
|
||||
static defineSchema() {
|
||||
return {
|
||||
useStandardHitPointDamage: new fields.BooleanField({ required: true, initial: true }),
|
||||
inheritDefaultDamage: new fields.BooleanField({
|
||||
required: true,
|
||||
initial: true,
|
||||
label: 'DAGGERHEART.ACTIONS.Settings.inheritDefaultDamage.label'
|
||||
}),
|
||||
inheritDefaultEffects: new fields.BooleanField({
|
||||
required: true,
|
||||
initial: true,
|
||||
label: 'DAGGERHEART.ACTIONS.Settings.inheritDefaultEffects.label'
|
||||
}),
|
||||
...getDamageBaseFields()
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue