diff --git a/lang/en.json b/lang/en.json index 2bed4da..982f09b 100644 --- a/lang/en.json +++ b/lang/en.json @@ -131,6 +131,9 @@ "type_character": "Personnage", "type_npc": "PNJ", "type_creature": "Créature", + "group_members": "Membres", + "encounters": "Rencontres", + "road": "La Route", "totem_picker": "Sélecteur de totem" }, "ITEMS": { diff --git a/module/sheets/actor-sheet.mjs b/module/sheets/actor-sheet.mjs index 0ac0866..e72c673 100644 --- a/module/sheets/actor-sheet.mjs +++ b/module/sheets/actor-sheet.mjs @@ -235,6 +235,7 @@ export class VermineActorSheet extends ActorSheet { const gear = []; const defenses = []; const abilities = []; + const totem_abilities = []; const weapons = []; const vehicles = []; @@ -252,7 +253,13 @@ export class VermineActorSheet extends ActorSheet { weapons.push(i); } else if (i.type === 'ability') { - abilities.push(i); + console.log('ability', i); + if (i.system.type == 'totem'){ + totem_abilities.push(i); + } else { + abilities.push(i); + } + } else if (i.type === 'vehicle') { vehicles.push(i); @@ -266,6 +273,7 @@ export class VermineActorSheet extends ActorSheet { context.weapons = weapons; context.defenses = defenses; context.abilities = abilities; + context.totem_abilities = totem_abilities; context.vehicles = vehicles; } diff --git a/templates/actor/actor-group-sheet.html b/templates/actor/actor-group-sheet.html index 87124ff..78af286 100644 --- a/templates/actor/actor-group-sheet.html +++ b/templates/actor/actor-group-sheet.html @@ -8,7 +8,7 @@ {{!-- Default tab is specified in actor-sheet.mjs --}} {{localize 'VERMINE.information' }} {{localize 'VERMINE.gear' }} - {{localize 'VERMINE.experience' }} + {{localize 'VERMINE.road' }} {{!-- Sheet Body --}} @@ -26,9 +26,9 @@ {{> "systems/vermine2047/templates/actor/parts/group-items.hbs"}} - {{!-- Active Effects Tab --}} -
-

{{ localize 'VERMINE.experience'}}

+ {{!-- Road Tab --}} +
+

{{ localize 'VERMINE.road'}}

{{> "systems/vermine2047/templates/actor/parts/group-experience.hbs"}}
diff --git a/templates/actor/parts/group-experience.hbs b/templates/actor/parts/group-experience.hbs index 3adfae4..bcee159 100644 --- a/templates/actor/parts/group-experience.hbs +++ b/templates/actor/parts/group-experience.hbs @@ -1,22 +1,6 @@ -
-
-

{{ localize 'VERMINE.boost'}}

-
    - {{#each abilities as |item id|}} -
  1. - -
    - - -
    -
  2. - {{/each}} -
-
+
-

{{ localize 'VERMINE.group_abilities'}}

+

{{ localize 'VERMINE.group_members'}}

    {{#each specialties as |item id|}}
  1. @@ -32,7 +16,7 @@
-

{{ localize 'VERMINE.totem_abilities'}}

+

{{ localize 'VERMINE.encounters'}}

    {{#each backgrounds as |item id|}}
  1. @@ -47,7 +31,41 @@ {{/each}}
+
+

{{ localize 'VERMINE.boost'}}

+
    + {{#each abilities as |item id|}} +
  1. + +
    + + +
    +
  2. + {{/each}} +
+
+
+

{{ localize 'VERMINE.totem_abilities'}}

+
    + {{#each totem_abilities as |item id|}} +
  1. + +
    + + +
    +
  2. + {{/each}} +
+
+
+

+ {{ localize 'VERMINE.pool' }} +

+
-

- {{ localize 'VERMINE.pool' }} -

diff --git a/templates/actor/parts/group-info.hbs b/templates/actor/parts/group-info.hbs index 80a8cac..a805650 100644 --- a/templates/actor/parts/group-info.hbs +++ b/templates/actor/parts/group-info.hbs @@ -1,6 +1,9 @@
-

{{ localize 'ITEMS.abilities'}}

+

+ {{ localize 'ITEMS.abilities'}} + +

    {{#each abilities as |item id|}}
  1. @@ -8,15 +11,18 @@ {{item.name}}
-
{{/each}}
+
-

{{ localize 'ITEMS.specialties'}}

+

+ {{ localize 'ITEMS.specialties'}} + +

    {{#each specialties as |item id|}}
  1. @@ -24,7 +30,6 @@ {{item.name}}
-
@@ -35,7 +40,6 @@

{{ localize 'ITEMS.backgrounds'}} -

    {{#each backgrounds as |item id|}} @@ -44,7 +48,6 @@ {{item.name}}
-
@@ -52,7 +55,10 @@
-

{{ localize 'ITEMS.traumas'}}

+

+ {{ localize 'ITEMS.traumas'}} + +

    {{#each traumas as |item id|}}
  1. @@ -60,7 +66,6 @@ {{item.name}}
-
@@ -68,7 +73,10 @@
-

{{ localize 'ITEMS.evolutions'}}

+

+ {{ localize 'ITEMS.evolutions'}} + +

    {{#each evolutions as |item id|}}
  1. @@ -76,7 +84,6 @@ {{item.name}}
-