Ajout annence et NPC
This commit is contained in:
		| @@ -54,6 +54,18 @@ export class EcrymeActor extends Actor { | |||||||
|     super._preUpdate(changed, options, user); |     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() { |   getMoneys() { | ||||||
|     let comp = this.items.filter(item => item.type == 'money'); |     let comp = this.items.filter(item => item.type == 'money'); | ||||||
|   | |||||||
| @@ -90,7 +90,7 @@ | |||||||
|   ], |   ], | ||||||
|   "title": "Ecryme, le Jeu de Rôles", |   "title": "Ecryme, le Jeu de Rôles", | ||||||
|   "url": "https://www.uberwald.me/gitea/uberwald/fvtt-ecryme", |   "url": "https://www.uberwald.me/gitea/uberwald/fvtt-ecryme", | ||||||
|   "version": "11.0.16", |   "version": "11.0.17", | ||||||
|   "download": "https://www.uberwald.me/gitea/uberwald/fvtt-ecryme/archive/fvtt-ecryme-v11.0.16.zip", |   "download": "https://www.uberwald.me/gitea/uberwald/fvtt-ecryme/archive/fvtt-ecryme-v11.0.17.zip", | ||||||
|   "background": "systems/fvtt-ecryme/images/assets/ecryme_extract_panel_01.webp" |   "background": "systems/fvtt-ecryme/images/assets/ecryme_extract_panel_01.webp" | ||||||
| } | } | ||||||
| @@ -1,7 +1,7 @@ | |||||||
| { | { | ||||||
|   "Actor": { |   "Actor": { | ||||||
|     "types": [ |     "types": [ | ||||||
|       "pc","annency" |       "pc","annency", "npc" | ||||||
|     ], |     ], | ||||||
|     "templates": { |     "templates": { | ||||||
|       "biodata": { |       "biodata": { | ||||||
| @@ -196,6 +196,12 @@ | |||||||
|         "annency" |         "annency" | ||||||
|       ] |       ] | ||||||
|     }, |     }, | ||||||
|  |     "npc": { | ||||||
|  |       "templates": [ | ||||||
|  |         "biodata", | ||||||
|  |         "core" | ||||||
|  |       ] | ||||||
|  |     }, | ||||||
|     "pc": { |     "pc": { | ||||||
|       "templates": [ |       "templates": [ | ||||||
|         "biodata", |         "biodata", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user