Update spell definition
All checks were successful
Release Creation / build (release) Successful in 58s
All checks were successful
Release Creation / build (release) Successful in 58s
This commit is contained in:
@ -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
|
||||
}
|
||||
|
@ -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: "" })
|
||||
|
||||
|
Reference in New Issue
Block a user