Initial commit

This commit is contained in:
Octoturge
2026-06-09 22:06:56 +02:00
commit fb42c6e8cc
121 changed files with 14976 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { makeIntField, makeStringField, makeHtmlField, makeArrayField, fields } from './fields';
export class ClassData extends foundry.abstract.TypeDataModel {
static defineSchema() {
const f = fields();
return {
year: makeIntField(1, { min: 1, max: 4 }),
attributePoints: makeIntField(0, { min: 0 }),
skillPoints: makeIntField(0, { min: 0 }),
talents: makeArrayField(new f.StringField({ blank: false })),
spells: makeArrayField(new f.StringField({ blank: false })),
features: makeArrayField(
new f.SchemaField({
name: makeStringField(''),
description: makeStringField(''),
}),
),
description: makeHtmlField(''),
};
}
}