- Removed initiative

- Reimplemented container Adding
- Adjusted some colors and margins for better looking
- Added LP and AP Max input fields to Werte und Boni
- Made LP and AP Max a label in the health bar instead
This commit is contained in:
Ender 2024-01-25 20:55:04 +01:00
parent 9da36e6a6f
commit d8df3d9611
7 changed files with 23 additions and 13 deletions

View File

@ -157,7 +157,6 @@ export interface M5AttributeCalculated extends M5ModResult {
export interface M5CharacterCalculatedData { export interface M5CharacterCalculatedData {
level: number; level: number;
initiative: number;
attributes: { attributes: {
st: M5AttributeCalculated; st: M5AttributeCalculated;
gs: M5AttributeCalculated; gs: M5AttributeCalculated;

View File

@ -39,7 +39,6 @@ export class M5Character extends Actor {
): M5CharacterCalculatedData { ): M5CharacterCalculatedData {
let ret: M5CharacterCalculatedData = { let ret: M5CharacterCalculatedData = {
level: 0, level: 0,
initiative: 0,
attributes: { attributes: {
st: { value: 0, bonus: 0, mods: [] }, st: { value: 0, bonus: 0, mods: [] },
gs: { value: 0, bonus: 0, mods: [] }, gs: { value: 0, bonus: 0, mods: [] },
@ -102,8 +101,6 @@ export class M5Character extends Actor {
ret.level = M5Character.levelFromExp(data.info.race === "Zwerg" ? Math.min(data.calc.stats?.hoard * 2 || 0, data.es) : data.es); ret.level = M5Character.levelFromExp(data.info.race === "Zwerg" ? Math.min(data.calc.stats?.hoard * 2 || 0, data.es) : data.es);
ret.initiative = data.skills.general.anfuehren.fw;
ret.attributes.st.value = M5Character.attributeMinMax(data.attributes.st); // TODO item effects ret.attributes.st.value = M5Character.attributeMinMax(data.attributes.st); // TODO item effects
ret.attributes.gs.value = M5Character.attributeMinMax(data.attributes.gs); ret.attributes.gs.value = M5Character.attributeMinMax(data.attributes.gs);
ret.attributes.gw.value = M5Character.attributeMinMax(data.attributes.gw); ret.attributes.gw.value = M5Character.attributeMinMax(data.attributes.gw);

View File

@ -42,8 +42,10 @@
.flexpart { .flexpart {
gap: 0; gap: 0;
padding: 0; padding: 0;
margin: 5px; margin: 2px;
background-color: beige; background-color: beige;
border-collapse: separate;
border-radius: 10px;
border: 2px solid black; border: 2px solid black;
} }
@ -66,10 +68,15 @@
h3 { h3 {
padding: 0.5rem 0.5rem 0.5rem 0.5rem; padding: 0.5rem 0.5rem 0.5rem 0.5rem;
margin-top: 0.5rem;
margin-bottom: 0;
text-align: left; text-align: left;
font-weight: bold; font-weight: bold;
background-color: dimgray; background-color: #eeede0;
color: white; color: black;
border-collapse: separate;
border: 2px solid black;
border-radius: 10px;
} }
.profile-img { .profile-img {
@ -247,7 +254,8 @@
padding: 1px; padding: 1px;
//align-items: stretch; //align-items: stretch;
input { input,
.max-value {
flex: 0 0 2rem; flex: 0 0 2rem;
text-align: center; text-align: center;
height: 100%; height: 100%;

View File

@ -67,6 +67,12 @@
<td>{{localize "midgard5.movementRange"}}</td> <td>{{localize "midgard5.movementRange"}}</td>
<td><input name="data.movement" type="text" value="{{data.movement}}" data-dtype="Number" /></td> <td><input name="data.movement" type="text" value="{{data.movement}}" data-dtype="Number" /></td>
</tr> </tr>
<tr>
<td>{{localize "midgard5.actor-lp-short"}}</td>
<td><input name="data.lp.max" type="text" value="{{data.lp.max}}" data-dtype="Number" /></td>
<td>{{localize "midgard5.actor-ap-short"}}</td>
<td><input name="data.ap.max" type="text" value="{{data.ap.max}}" data-dtype="Number" /></td>
</tr>
<tr> <tr>
<td>{{localize "midgard5.brawl"}}</td> <td>{{localize "midgard5.brawl"}}</td>
<td class="fixed-value">{{data.calc.stats.brawl.value}}</td> <td class="fixed-value">{{data.calc.stats.brawl.value}}</td>

View File

@ -6,10 +6,10 @@
<table> <table>
<tr height = 10px></tr> <tr height = 10px></tr>
<tr> <tr>
<td>{{localize "midgard5.initiative"}} </td>
<td class="fixed-value">{{data.calc.initiative}}</td>
<td>{{localize "midgard5.movementRange"}}</td> <td>{{localize "midgard5.movementRange"}}</td>
<td class="fixed-value">{{data.calc.stats.movement.value}}</td> <td class="fixed-value">{{data.calc.stats.movement.value}}</td>
<td></td>
<td class="fixed-value"></td>
</tr> </tr>
<td>{{localize "midgard5.defense"}}</td> <td>{{localize "midgard5.defense"}}</td>
<td class="fixed-value">{{data.calc.stats.defense.value}}</td> <td class="fixed-value">{{data.calc.stats.defense.value}}</td>

View File

@ -42,7 +42,7 @@
<th class="title center">{{localize "midgard5.item-value"}}</th> <th class="title center">{{localize "midgard5.item-value"}}</th>
<th class="title center"><img src="/systems/midgard5/assets/icons/icon/battle-gear.svg" class="table-icon"></th> <th class="title center"><img src="/systems/midgard5/assets/icons/icon/battle-gear.svg" class="table-icon"></th>
<th class="title"><img src="/icons/svg/d20.svg" class="table-icon"></th> <th class="title"><img src="/icons/svg/d20.svg" class="table-icon"></th>
<th class="title">&nbsp;</th> <th class="title add-container"><i class="fa-regular fa-plus"></i></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

View File

@ -89,7 +89,7 @@
<div class="lp-bar-item-empty update-lp" data-value="{{this}}"></div> <div class="lp-bar-item-empty update-lp" data-value="{{this}}"></div>
{{/if}} {{/if}}
{{/times}} {{/times}}
<input name="data.lp.max" type="text" value="{{data.lp.max}}" data-dtype="Number" /> <div class="max-value">{{data.lp.max}}</div>
</div> </div>
</td> </td>
</tr> </tr>
@ -105,7 +105,7 @@
<div class="ap-bar-item-empty update-ap" data-value="{{this}}"></div> <div class="ap-bar-item-empty update-ap" data-value="{{this}}"></div>
{{/if}} {{/if}}
{{/times}} {{/times}}
<input name="data.ap.max" type="text" value="{{data.ap.max}}" data-dtype="Number" /> <div class="max-value">{{data.ap.max}}</div>
</div> </div>
</td> </td>
</tr> </tr>