diff --git a/lang/de.json b/lang/de.json index 1087cd0..a53fbca 100644 --- a/lang/de.json +++ b/lang/de.json @@ -16,6 +16,7 @@ "midgard5": { "phase-action": "Handlungsphase", + "actionThisTurn": "Handlung", "phase-movement": "Bewegungsphase", "no-encounter": "Kein Kampf", "encounter-not-started": "Kein aktiver Kampf", @@ -23,6 +24,8 @@ "initiativeRoll": "Initiative würfeln", "unableToAct": "Handlungsunfähig", "unablesToAct": "Macht handlungsunfähig", + "continue": "Weiter", + "endTurn": "Zug beenden", "group": "Gruppe", "leader": "Anführer", "actionrank": "Handlungsrang", @@ -98,6 +101,7 @@ "maximum": "Max.", "attrvalue": "Wert", "movementRange": "Bewegungsweite", + "movedThisTurn": "Bewegt", "base_values": "Grundwerte", "skills": "Fertigkeiten", diff --git a/source/index.ts b/source/index.ts index 7dcdff9..1f03f69 100644 --- a/source/index.ts +++ b/source/index.ts @@ -95,6 +95,12 @@ Hooks.on("getChatLogEntryContext", function (html, options) { ); }); +Hooks.on("createCombatant", async function () { + const test="Dritter Test"; + console.log("Test: ", test); + await (game as Game).combat.setFlag('world', 'Test', test); +}); + Hooks.on("updateCombat", function (combat: Combat, updateData: { round: number; turn: number }, updateOptions: { advanceTime: number; direction: number }) { if (combat.round % 2 === 0 && combat.turn !== null) { const tokenId = combat.current.tokenId; diff --git a/source/style/Character-sheet.less b/source/style/Character-sheet.less index 8e0c3b3..df3343f 100644 --- a/source/style/Character-sheet.less +++ b/source/style/Character-sheet.less @@ -6,6 +6,7 @@ .flexbox { display: flex; flex-direction: row; + align-items: stretch; flex-wrap: wrap; } @@ -15,28 +16,33 @@ } .flexcolumn-1 { - flex-basis: 100%; + flex-basis: 99%; flex-wrap: wrap; + flex-direction: column; } .flexcolumn-2 { - flex-basis: 50%; + flex-basis: 49%; flex-wrap: wrap; + flex-direction: column; } .flexcolumn-3 { - flex-basis: 33%; + flex-basis: 32%; flex-wrap: wrap; + flex-direction: column; } .flexcolumn-4 { - flex-basis: 25%; + flex-basis: 24%; flex-wrap: wrap; + flex-direction: column; } .flexcolumn-5 { - flex-basis: 20%; + flex-basis: 19%; flex-wrap: wrap; + flex-direction: column; } .flexpart { @@ -80,6 +86,11 @@ border-radius: 10px; } + .fixed-value { + width: 3rem; + text-align: center; + } + .profile-img { display: block; margin-left: auto; diff --git a/templates/sheets/character/combat.hbs b/templates/sheets/character/combat.hbs index bb2fa21..6c0450a 100644 --- a/templates/sheets/character/combat.hbs +++ b/templates/sheets/character/combat.hbs @@ -1,51 +1,140 @@ +