2024-10-02 00:14:03 +02:00
|
|
|
import Stat from "./dataModel.mjs"
|
|
|
|
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
/* Actor base Model */
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
const fields = foundry.data.fields;
|
2024-10-02 14:45:44 +02:00
|
|
|
export default class ActorGeneral extends foundry.abstract.TypeDataModel
|
2024-10-02 00:14:03 +02:00
|
|
|
{
|
|
|
|
static defineSchema(){
|
|
|
|
return {
|
|
|
|
age: new fields.StringField({required: false}),
|
|
|
|
pronouns: new fields.StringField({required: false}),
|
|
|
|
fear: new fields.StringField({required: false}),
|
|
|
|
grade: new fields.StringField({required: false}),
|
|
|
|
stats: new fields.SchemaField({
|
|
|
|
fight: new fields.EmbeddedDataField(Stat, {required: true, nullable: false, default: new Stat()}),
|
|
|
|
brains: new fields.EmbeddedDataField(Stat, {required: true, nullable: false, default: new Stat()}),
|
|
|
|
charm: new fields.EmbeddedDataField(Stat, {required: true, nullable: false, default: new Stat()}),
|
|
|
|
flight: new fields.EmbeddedDataField(Stat, {required: true, nullable: false, default: new Stat()}),
|
|
|
|
brawn: new fields.EmbeddedDataField(Stat, {required: true, nullable: false, default: new Stat()}),
|
|
|
|
grit: new fields.EmbeddedDataField(Stat, {required: true, nullable: false, default: new Stat()}),
|
|
|
|
}),
|
|
|
|
}
|
|
|
|
}
|
2024-10-07 14:12:05 +02:00
|
|
|
|
2024-10-19 23:02:28 +02:00
|
|
|
static LOCALISATION_PREFIXES = ["BaseActor"];
|
|
|
|
|
2024-10-07 14:12:05 +02:00
|
|
|
prepareDerivedData() {
|
|
|
|
super.prepareDerivedData();
|
|
|
|
}
|
2024-10-02 00:14:03 +02:00
|
|
|
}
|