From 899c1d9fdf2421f66fdebdc735c506dd1d4215c1 Mon Sep 17 00:00:00 2001 From: jalensailin Date: Wed, 20 Sep 2023 16:33:26 -0400 Subject: [PATCH] enable lethality toggle for non-agent sheets --- templates/actor/npc-sheet.html | 41 ++++++++++++++++++---------- templates/actor/unnatural-sheet.html | 39 ++++++++++++++++---------- 2 files changed, 51 insertions(+), 29 deletions(-) diff --git a/templates/actor/npc-sheet.html b/templates/actor/npc-sheet.html index b6ac7e7..38147b0 100644 --- a/templates/actor/npc-sheet.html +++ b/templates/actor/npc-sheet.html @@ -193,22 +193,33 @@ {{item.name}} - {{#unless item.system.isLethal}} - - {{toUpperCase item.system.damage}} - {{/unless}} + + {{#unless item.system.isLethal}} + + {{toUpperCase item.system.damage}} + {{/unless}} + + {{#if item.system.isLethal}} + {{formatLethality item.system.lethality}} + {{/if}} + + {{#if item.system.lethality}} + - + {{#if item.system.isLethal}} + + {{else}} + + {{/if}} + {{/if}} + - {{#if item.system.isLethal}} - {{formatLethality item.system.lethality}} - {{/if}} {{item.system.armorPiercing}} diff --git a/templates/actor/unnatural-sheet.html b/templates/actor/unnatural-sheet.html index 5b6c913..2f26182 100644 --- a/templates/actor/unnatural-sheet.html +++ b/templates/actor/unnatural-sheet.html @@ -184,21 +184,32 @@ {{item.name}} - {{#unless item.system.isLethal}} - - {{toUpperCase item.system.damage}} - {{/unless}} + + {{#unless item.system.isLethal}} + + {{toUpperCase item.system.damage}} + {{/unless}} - {{#if item.system.isLethal}} - {{formatLethality item.system.lethality}} - {{/if}} + {{#if item.system.isLethal}} + {{formatLethality item.system.lethality}} + {{/if}} + + {{#if item.system.lethality}} + - + {{#if item.system.isLethal}} + + {{else}} + + {{/if}} + {{/if}} + {{item.system.armorPiercing}}