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)}} - + /
{{numberFormat actor.system.sanity.max decimals=0 sign=false}}