#36 Gestion des taches et création à partir d'un livre

This commit is contained in:
2020-12-15 21:28:55 +01:00
parent dc67c36b0a
commit e64c350632
8 changed files with 77 additions and 21 deletions

View File

@ -196,8 +196,7 @@ export class RdDActorSheet extends ActorSheet {
/* -------------------------------------------- */
async createEmptyTache( ) {
let emptyTache = await Item.create( { name: 'Nouvelle tache', type: 'tache'} );
await this.actor.createOwnedItem( emptyTache.data, { renderSheet: true } );
await this.actor.createOwnedItem( { name: 'Nouvelle tache', type: 'tache'}, { renderSheet: true } );
}
/* -------------------------------------------- */