Changing inventory bar to reflect movement rate break points.

Changing inventory bar to reflect movement rate break points.
master
The Happy Anarchist 2020-09-05 16:44:46 -10:00
parent 33a5705e7d
commit f755ae8643
3 changed files with 10 additions and 8 deletions

View File

@ -861,13 +861,13 @@
position: absolute;
}
.acks.sheet.actor.character .encumbrance .encumbrance-breakpoint.encumbrance-25 {
left: 25%;
left: 24.4%;
}
.acks.sheet.actor.character .encumbrance .encumbrance-breakpoint.encumbrance-35 {
left: 34.4%;
}
.acks.sheet.actor.character .encumbrance .encumbrance-breakpoint.encumbrance-50 {
left: 50%;
}
.acks.sheet.actor.character .encumbrance .encumbrance-breakpoint.encumbrance-75 {
left: 75%;
left: 49.4%;
}
.acks.sheet.actor.character .encumbrance .arrow-up {
bottom: 0;

View File

@ -557,7 +557,9 @@ export class AcksActor extends Actor {
data.encumbrance = {
pct: Math.clamped(
(100 * parseFloat(totalWeight)) / data.encumbrance.max,
// To correct for percentage bar not lining up with movement rates.
// (100 * parseFloat(totalWeight)) / data.encumbrance.max,
(100 * parseFloat(totalWeight)) / 20000,
0,
100
),

View File

@ -204,10 +204,10 @@
<span class="encumbrance-label">{{value}} / {{max}}</span>
<i class="encumbrance-breakpoint encumbrance-25 arrow-up"></i>
<i class="encumbrance-breakpoint encumbrance-25 arrow-down"></i>
<i class="encumbrance-breakpoint encumbrance-35 arrow-up"></i>
<i class="encumbrance-breakpoint encumbrance-35 arrow-down"></i>
<i class="encumbrance-breakpoint encumbrance-50 arrow-up"></i>
<i class="encumbrance-breakpoint encumbrance-50 arrow-down"></i>
<i class="encumbrance-breakpoint encumbrance-75 arrow-up"></i>
<i class="encumbrance-breakpoint encumbrance-75 arrow-down"></i>
{{/with}}
</div>
</section>