changed SAN to reflect breaking point being hit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user