Update spell definition
All checks were successful
Release Creation / build (release) Successful in 58s

This commit is contained in:
2025-03-11 07:46:25 +01:00
parent 72ef2dbe1b
commit a37913c7da
27 changed files with 101 additions and 75 deletions

View File

@ -192,6 +192,14 @@ export const CHOICE_DICE = {
"D20": "D20"
}
export const SPELL_CRITICAL = {
"electric": "Electric",
"fire": "Fire",
"cold": "Cold",
"force": "Force",
"acid": "Acid"
}
export const CHOICE_MODIFIERS = {
"-9": "-9",
"-8": "-8",
@ -283,5 +291,6 @@ export const SYSTEM = {
RANGE_CHOICES,
FAVOR_CHOICES,
ATTACKER_AIM_CHOICES,
MORTAL_CHOICES
MORTAL_CHOICES,
SPELL_CRITICAL
}

View File

@ -23,7 +23,8 @@ export default class LethalFantasySpell extends foundry.abstract.TypeDataModel {
schema.components = new fields.SchemaField({
verbal: new fields.BooleanField(),
somatic: new fields.BooleanField(),
somatic: new fields.BooleanField(),
catalyst: new fields.BooleanField(),
material: new fields.BooleanField(),
})
schema.castingTime = new fields.StringField({ required: true, initial: "" })
@ -33,7 +34,9 @@ export default class LethalFantasySpell extends foundry.abstract.TypeDataModel {
schema.savingThrow = new fields.StringField({ required: true, initial: "" })
schema.extraAetherPoints = new fields.StringField({ required: true, initial: "" })
schema.materialComponent = new fields.StringField({ required: true, initial: "" })
schema.catalyst = new fields.StringField({ required: true, initial: "" })
schema.criticalType = new fields.StringField({ required: true, initial: "electric", choices : SYSTEM.SPELL_CRITICAL })
schema.attackRoll = new fields.StringField({ required: true, initial: "" })
schema.powerRoll = new fields.StringField({ required: true, initial: "" })