changed SAN to reflect breaking point being hit

This commit is contained in:
TheLastScrub
2023-10-07 16:51:32 -07:00
parent 04aa233f76
commit 74290dcd7f
3 changed files with 13 additions and 1 deletions
+5
View File
@@ -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);
}
+7
View File
@@ -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) {
+1 -1
View File
@@ -63,7 +63,7 @@
{{#unless (keepSanityPrivate)}}
<input type="text" name="system.sanity.value" value="{{actor.system.sanity.value}}" data-dtype="Number" title="{{localize 'DG.Tooltip.CurrentSanityPartOne'}}{{actor.system.sanity.currentBreakingPoint}}{{localize 'DG.Tooltip.CurrentSanityPartTwo'}}" />
<input class="{{#if actor.system.sanity.breakingPointHit}}breaking-point-hit{{/if}}" type="text" name="system.sanity.value" value="{{actor.system.sanity.value}}" data-dtype="Number" title="{{localize 'DG.Tooltip.CurrentSanityPartOne'}}{{actor.system.sanity.currentBreakingPoint}}{{localize 'DG.Tooltip.CurrentSanityPartTwo'}}" />
<span> / </span>
<div class="max-resource-value" title="{{localize 'DG.Tooltip.MaximumSanity'}}">
<div>{{numberFormat actor.system.sanity.max decimals=0 sign=false}}</div>