Changing inventory bar to reflect movement rate break points.
Changing inventory bar to reflect movement rate break points.master
parent
33a5705e7d
commit
f755ae8643
10
src/acks.css
10
src/acks.css
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
),
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue