diff --git a/module/sheets/actor-sheet.mjs b/module/sheets/actor-sheet.mjs index 3c45399..04155fb 100644 --- a/module/sheets/actor-sheet.mjs +++ b/module/sheets/actor-sheet.mjs @@ -127,13 +127,16 @@ export class ShinobiActorSheet extends ActorSheet { const aptidoes = []; const poderes = []; const tecnicas = []; + const dispositivos = []; for (let i of context.items) { i.img = i.img || Item.DEFAULT_ICON; if (i.type === 'armas') { armas.push(i); } else if (i.type === 'armaduras') { armaduras.push(i); } - else if (i.type === 'gerais') { gerais.push(i); } - else if (i.type === 'aptidoes') { aptidoes.push(i); } + else if (i.type === 'gerais') { + if (i.system.tipo.includes("dispositivo")) dispositivos.push(i); + else gerais.push(i); + } else if (i.type === 'aptidoes') { aptidoes.push(i); } else if (i.type === 'poderes') { poderes.push(i); } else if (i.type === 'tecnicas') { tecnicas.push(i); } } @@ -145,6 +148,7 @@ export class ShinobiActorSheet extends ActorSheet { context.aptidoes = aptidoes; context.poderes = poderes; context.tecnicas = tecnicas; + context.dispositivos = dispositivos; } /** @inheritDoc */ diff --git a/templates/actor/parts/actor-inventario.hbs b/templates/actor/parts/actor-inventario.hbs index 8e7d7c7..be5623c 100644 --- a/templates/actor/parts/actor-inventario.hbs +++ b/templates/actor/parts/actor-inventario.hbs @@ -114,7 +114,7 @@