Ajout annence et NPC
This commit is contained in:
		| @@ -54,6 +54,18 @@ export class EcrymeActor extends Actor { | ||||
|     super._preUpdate(changed, options, user); | ||||
|   } | ||||
|  | ||||
|   /* -------------------------------------------- */ | ||||
|   async _preCreate(data, options, user) { | ||||
|     await super._preCreate(data, options, user); | ||||
|  | ||||
|     // Configure prototype token settings | ||||
|     const prototypeToken = {}; | ||||
|     if (this.type === "pc") Object.assign(prototypeToken, { | ||||
|       sight: { enabled: true }, actorLink: true, disposition: CONST.TOKEN_DISPOSITIONS.FRIENDLY | ||||
|     }); | ||||
|     this.updateSource({ prototypeToken }); | ||||
|   } | ||||
|  | ||||
|   /* -------------------------------------------- */ | ||||
|   getMoneys() { | ||||
|     let comp = this.items.filter(item => item.type == 'money'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user