RC-20 | Add Fate path to datamodel

This commit is contained in:
Oliver-Akins 2024-12-10 23:33:09 -07:00
parent 27f668b92f
commit 550aeb084f
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,5 @@
import { FatePath } from "../../gameTerms.mjs";
const { fields } = foundry.data;
export class HeroData extends foundry.abstract.TypeDataModel {
@ -53,6 +55,15 @@ export class HeroData extends foundry.abstract.TypeDataModel {
nullable: false,
}),
}),
fate: new fields.StringField({
initial: ``,
blank: true,
trim: true,
nullable: false,
choices: () => {
return Object.values(FatePath).concat(``);
},
}),
level: new fields.SchemaField({
glory: new fields.NumberField({
min: 0,