Add miracle type
All checks were successful
Release Creation / build (release) Successful in 40s

This commit is contained in:
2025-03-11 23:31:33 +01:00
parent 8694590b0b
commit bd0b734c68
26 changed files with 81 additions and 69 deletions

View File

@ -192,6 +192,12 @@ export const CHOICE_DICE = {
"D20": "D20"
}
export const MIRACLE_TYPES = {
"combat": "Combat",
"noncombat": "Non-Combat",
"ritualfaith": "Ritual of Faith"
}
export const SPELL_CRITICAL = {
"none": "None",
"electric": "Electric",
@ -293,5 +299,6 @@ export const SYSTEM = {
FAVOR_CHOICES,
ATTACKER_AIM_CHOICES,
MORTAL_CHOICES,
SPELL_CRITICAL
SPELL_CRITICAL,
MIRACLE_TYPES
}

View File

@ -31,6 +31,7 @@ export default class LethalFantasyMiracle extends foundry.abstract.TypeDataModel
schema.savingThrow = new fields.StringField({ required: true, initial: "" })
schema.materialComponent = new fields.StringField({ required: true, initial: "" })
schema.catalyst = new fields.StringField({ required: true, initial: "" })
schema.miracleType = new fields.StringField({ required: true, initial: "combat", choices: SYSTEM.MIRACLE_TYPES })
schema.attackRoll = new fields.StringField({ required: true, initial: "" })
schema.powerRoll = new fields.StringField({ required: true, initial: "" })