2024-12-04 00:11:23 +01:00
|
|
|
export default class CthulhuEternalActor extends Actor {
|
2024-12-18 18:45:47 +01:00
|
|
|
|
2024-12-04 00:11:23 +01:00
|
|
|
async _preCreate(data, options, user) {
|
|
|
|
await super._preCreate(data, options, user)
|
|
|
|
|
|
|
|
// Configure prototype token settings
|
|
|
|
const prototypeToken = {}
|
|
|
|
if (this.type === "protagonist") {
|
|
|
|
Object.assign(prototypeToken, {
|
|
|
|
sight: { enabled: true },
|
|
|
|
actorLink: true,
|
|
|
|
disposition: CONST.TOKEN_DISPOSITIONS.FRIENDLY,
|
|
|
|
})
|
|
|
|
this.updateSource({ prototypeToken })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|