import SR6BaseActorData from '../base-actor-data.mjs';
import { attributesSchema, monitorsSchema, initiativeSchema, skillsSchema } from '../schema-helpers.mjs';

/**
 * Base DataModel for Critter and Spirit actors.
 * Shares attributes, monitors, initiative, and skills with humanoid actors via helpers.
 */
export default class SR6CritterBaseActorData extends SR6BaseActorData {
    static defineSchema() {
        const fields = foundry.data.fields;
        return {
            ...super.defineSchema(),
            attributes: attributesSchema(),
            metatype:   new fields.StringField({ initial: "Critter" }),
            editmode:   new fields.BooleanField({ initial: false }),
            ...monitorsSchema(),
            initiative: initiativeSchema(),
            skills:     skillsSchema()
        };
    }
}
