modules/actors/actor-us2e.js
/**
     * Augment the basic actor data with additional dynamic data.
     */
Augment the basic actor data with additional dynamic data.
Augment the basic actor data with additional dynamic data .
prepareDerivedData() {
        console.log(`Preparing Actor Data ${this.data.type}`);
        const actorData = this.data;
        const data = actorData.data;
        const flags = actorData.flags;
        this._prepareSharedData(actorData);
        switch (actorData.type) {
            case "character":
                this._prepareCharacterData(actorData);
                break;
            case "faction":
                this._prepareFactionData(actorData);
                break;
            default:
        }
    }
prepareDerivedData ( ) { console . log ( ` ${ this . data . type } ` ) ; const actorData = this . data ; const data = actorData . data ; const flags = actorData . flags ; this . _prepareSharedData ( actorData ) ; switch ( actorData . type ) { case "character" : this . _prepareCharacterData ( actorData ) ; break ; case "faction" : this . _prepareFactionData ( actorData ) ; break ; default : } }
Augment the basic actor data with additional dynamic data.
Augment the basic actor data with additional dynamic data .
// Make separate methods for each Actor type (character, faction, etc.) to keep // things organized.