From 74290dcd7f9f53cb4450374d196e0bb9a2b99b51 Mon Sep 17 00:00:00 2001 From: TheLastScrub <67403321+TheLastScrub@users.noreply.github.com> Date: Sat, 7 Oct 2023 16:51:32 -0700 Subject: [PATCH] changed SAN to reflect breaking point being hit --- css/deltagreen.css | 5 +++++ module/actor/actor.js | 7 +++++++ templates/actor/actor-sheet.html | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/css/deltagreen.css b/css/deltagreen.css index a039623..735e38f 100644 --- a/css/deltagreen.css +++ b/css/deltagreen.css @@ -129,6 +129,11 @@ form.program-style { color: #999999; } +input.breaking-point-hit{ + color: rgb(117, 0, 0); + font-weight: bold; +} + .dg-red { color: rgb(117, 0, 0); } diff --git a/module/actor/actor.js b/module/actor/actor.js index 2277226..4240a6c 100644 --- a/module/actor/actor.js +++ b/module/actor/actor.js @@ -223,6 +223,13 @@ export default class DeltaGreenActor extends Actor { system.sanity.adaptations.helplessness.isAdapted = false; } + if(system.sanity.value <= system.sanity.currentBreakingPoint){ + system.sanity.breakingPointHit = true; + } + else{ + system.sanity.breakingPointHit = false; + } + // calculate total armor rating let protection = 0; for (const i of agent.items) { diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html index 0ed40de..1ad4599 100644 --- a/templates/actor/actor-sheet.html +++ b/templates/actor/actor-sheet.html @@ -63,7 +63,7 @@ {{#unless (keepSanityPrivate)}} - + /