From 0c211be7dc76a090c55fbe8736709b4cc24021c3 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 20 Jan 2024 15:07:55 -0700 Subject: [PATCH] Begin work on the Summons list --- langs/en-ca.json | 3 ++ .../char-sheet-mvp/panels/summons.pc.hbs | 48 ++++++++++++++++++- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/langs/en-ca.json b/langs/en-ca.json index b22b261..a4bd896 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -200,6 +200,9 @@ "delete": "Delete spell", "chat": "Send spell information to chat" } + }, + "summons": { + "upkeep": "(Upkeep: {upkeep})" } }, "sync": { diff --git a/templates/actors/char-sheet-mvp/panels/summons.pc.hbs b/templates/actors/char-sheet-mvp/panels/summons.pc.hbs index afeafb4..18255ec 100644 --- a/templates/actors/char-sheet-mvp/panels/summons.pc.hbs +++ b/templates/actors/char-sheet-mvp/panels/summons.pc.hbs @@ -1,3 +1,49 @@ {{#> dotdungeon.panel class="summons" title="dotdungeon.actor.pc.panel.summons"}} - Summons + {{#each items.pet as | pet |}} +
+ + {{ pet.name }} + {{#if (defined pet.system.upkeep)}} + + {{localize "dotdungeon.actor.summons.upkeep" upkeep=(pet.system.upkeep)}} + + {{/if}} + + +
+ {{#if pet.system.description}} +

+ {{pet.system.description}} +

+ {{/if}} +
+ + + +
+
+
+ {{/each}} {{/ dotdungeon.panel}} \ No newline at end of file