From fa3054f24b1a0fb9e0b1fb8e46326ab627839a08 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Wed, 1 Oct 2025 17:17:33 +0200 Subject: [PATCH] Some granted dice/favor fixes --- css/fvtt-lethal-fantasy.css | 3 +++ .../applications/sheets/character-sheet.mjs | 1 - module/config/system.mjs | 15 +++++++++++- module/documents/roll.mjs | 20 +++++++++------- module/models/character.mjs | 7 +++--- .../lf-equipment/{000426.log => 000438.log} | 0 packs-system/lf-equipment/CURRENT | 2 +- packs-system/lf-equipment/LOG | 16 ++++++------- packs-system/lf-equipment/LOG.old | 16 ++++++------- .../{MANIFEST-000424 => MANIFEST-000436} | Bin 178 -> 178 bytes .../lf-gifts/{000426.log => 000438.log} | 0 packs-system/lf-gifts/CURRENT | 2 +- packs-system/lf-gifts/LOG | 16 ++++++------- packs-system/lf-gifts/LOG.old | 16 ++++++------- .../{MANIFEST-000424 => MANIFEST-000436} | Bin 177 -> 177 bytes .../lf-skills/{000426.log => 000438.log} | 0 packs-system/lf-skills/CURRENT | 2 +- packs-system/lf-skills/LOG | 16 ++++++------- packs-system/lf-skills/LOG.old | 16 ++++++------- .../{MANIFEST-000424 => MANIFEST-000436} | Bin 178 -> 178 bytes .../{000126.log => 000138.log} | 0 packs-system/lf-spells-miracles/CURRENT | 2 +- packs-system/lf-spells-miracles/LOG | 16 ++++++------- packs-system/lf-spells-miracles/LOG.old | 16 ++++++------- .../{MANIFEST-000124 => MANIFEST-000136} | Bin 174 -> 177 bytes .../{000425.log => 000437.log} | 0 packs-system/lf-vulnerabilities/CURRENT | 2 +- packs-system/lf-vulnerabilities/LOG | 16 ++++++------- packs-system/lf-vulnerabilities/LOG.old | 16 ++++++------- .../{MANIFEST-000423 => MANIFEST-000435} | Bin 176 -> 176 bytes styles/character.less | 3 +++ templates/character-combat.hbs | 22 +++++++----------- 32 files changed, 129 insertions(+), 112 deletions(-) rename packs-system/lf-equipment/{000426.log => 000438.log} (100%) rename packs-system/lf-equipment/{MANIFEST-000424 => MANIFEST-000436} (71%) rename packs-system/lf-gifts/{000426.log => 000438.log} (100%) rename packs-system/lf-gifts/{MANIFEST-000424 => MANIFEST-000436} (72%) rename packs-system/lf-skills/{000426.log => 000438.log} (100%) rename packs-system/lf-skills/{MANIFEST-000424 => MANIFEST-000436} (71%) rename packs-system/lf-spells-miracles/{000126.log => 000138.log} (100%) rename packs-system/lf-spells-miracles/{MANIFEST-000124 => MANIFEST-000136} (72%) rename packs-system/lf-vulnerabilities/{000425.log => 000437.log} (100%) rename packs-system/lf-vulnerabilities/{MANIFEST-000423 => MANIFEST-000435} (72%) diff --git a/css/fvtt-lethal-fantasy.css b/css/fvtt-lethal-fantasy.css index 5a1cb67..718af03 100644 --- a/css/fvtt-lethal-fantasy.css +++ b/css/fvtt-lethal-fantasy.css @@ -521,6 +521,9 @@ i.lethalfantasy { min-width: 2.5rem; max-width: 2.5rem; } +.lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail .ranged-attack-button { + font-size: 0.8rem; +} .lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail button { min-width: 9rem; } diff --git a/module/applications/sheets/character-sheet.mjs b/module/applications/sheets/character-sheet.mjs index 7c5ef20..52acf8d 100644 --- a/module/applications/sheets/character-sheet.mjs +++ b/module/applications/sheets/character-sheet.mjs @@ -246,7 +246,6 @@ export default class LethalFantasyCharacterSheet extends LethalFantasyActorSheet async _onRoll(event, target) { if (this.isEditMode) return - console.log("Roll event", event) const rollType = event.target.dataset.rollType let rollKey = event.target.dataset.rollKey; let rollDice = event.target.dataset?.rollDice; diff --git a/module/config/system.mjs b/module/config/system.mjs index 5b516aa..5671633 100644 --- a/module/config/system.mjs +++ b/module/config/system.mjs @@ -104,6 +104,18 @@ export const SPELL_LETHARGY_DICE = [ { dice: "D20", value: "20", level: "21-25", maxLevel: 25 } ] +export const GRANTED_DICE_CHOICES = { + "0": { label: "None", value: "0" }, + "D2": { label: "D2", value: "D2" }, + "D3": { label: "D3", value: "D3" }, + "D4": { label: "D4", value: "D4" }, + "D6": { label: "D6", value: "D6" }, + "D8": { label: "D8", value: "D8" }, + "D10": { label: "D10", value: "D10" }, + "D12": { label: "D12", value: "D12" }, + "D20": { label: "D20", value: "D20" } +} + export const INITIATIVE_DICE_CHOICES_PER_CLASS = { "untrained": [ { "name": "Asleep or totally distracted (2D12)", "value": "2D12" }, @@ -310,5 +322,6 @@ export const SYSTEM = { MORTAL_CHOICES, SPELL_CRITICAL, MIRACLE_TYPES, - SPELL_LETHARGY_DICE + SPELL_LETHARGY_DICE, + GRANTED_DICE_CHOICES } diff --git a/module/documents/roll.mjs b/module/documents/roll.mjs index bfa1a6a..2c8ccfa 100644 --- a/module/documents/roll.mjs +++ b/module/documents/roll.mjs @@ -358,7 +358,7 @@ export default class LethalFantasyRoll extends Roll { ], actions: { "selectGranted": (event, button, dialog) => { - hasGrantedDice = true + hasGrantedDice = event.target.checked }, "selectBeyondSkill": (event, button, dialog) => { beyondSkill = button.checked @@ -502,15 +502,17 @@ export default class LethalFantasyRoll extends Roll { if (rollContext.favor === "favor") { rollFavor = new this(baseFormula, options.data, rollData) await rollFavor.evaluate() + console.log("Rolling with favor", rollFavor) if (game?.dice3d) { game.dice3d.showForRoll(rollFavor, game.user, true) } - if (rollFavor.result > rollBase.result) { + if (Number(rollFavor.result) > Number(rollBase.result)) { badResult = rollBase.result rollBase = rollFavor } else { badResult = rollFavor.result } + rollFavor = null } if (rollContext.favor === "disfavor") { @@ -519,12 +521,13 @@ export default class LethalFantasyRoll extends Roll { if (game?.dice3d) { game.dice3d.showForRoll(rollFavor, game.user, true) } - if (rollFavor.result < rollBase.result) { + if (Number(rollFavor.result) < Number(rollBase.result)) { badResult = rollBase.result rollBase = rollFavor } else { badResult = rollFavor.result } + rollFavor = null } if (hasD30) { @@ -535,7 +538,7 @@ export default class LethalFantasyRoll extends Roll { options.D30result = rollD30.total } - let rollTotal = -1 + let rollTotal = 0 let diceResults = [] let resultType let diceSum = 0 @@ -560,7 +563,8 @@ export default class LethalFantasyRoll extends Roll { } } - if (hasGrantedDice) { + if (hasGrantedDice && options.rollTarget.grantedDice && options.rollTarget.grantedDice !== "") { + titleFormula += ` + ${options.rollTarget.grantedDice.toUpperCase()}` let grantedRoll = new Roll(options.rollTarget.grantedDice) await grantedRoll.evaluate() if (game?.dice3d) { @@ -573,12 +577,12 @@ export default class LethalFantasyRoll extends Roll { if (fullModifier !== 0) { diceResults.push({ dice: `${rollModifier.formula.toUpperCase()}`, value: rollModifier.total }) if (fullModifier < 0) { - rollTotal = Math.max(diceSum - rollModifier.total, 0) + rollTotal += Math.max(diceSum - rollModifier.total, 0) } else { - rollTotal = diceSum + rollModifier.total + rollTotal += diceSum + rollModifier.total } } else { - rollTotal = diceSum + rollTotal += diceSum } rollBase.options.resultType = resultType diff --git a/module/models/character.mjs b/module/models/character.mjs index 16dc68c..08a0792 100644 --- a/module/models/character.mjs +++ b/module/models/character.mjs @@ -90,9 +90,9 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod current: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }) }) schema.granted = new fields.SchemaField({ - attackDice: new fields.StringField({ required: true, nullable: false, initial: "" }), - defenseDice: new fields.StringField({ required: true, nullable: false, initial: "" }), - damageDice: new fields.StringField({ required: true, nullable: false, initial: "" }) + attackDice: new fields.StringField({ required: true, nullable: false, initial: "0", choices: SYSTEM.GRANTED_DICE_CHOICES }), + defenseDice: new fields.StringField({ required: true, nullable: false, initial: "0", choices: SYSTEM.GRANTED_DICE_CHOICES }), + damageDice: new fields.StringField({ required: true, nullable: false, initial: "0", choices: SYSTEM.GRANTED_DICE_CHOICES }) }) schema.movement = new fields.SchemaField({ @@ -293,7 +293,6 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod let wisDef = SYSTEM.CHARACTERISTICS_TABLES.wis.find((c) => c.value === this.characteristics.wis.value) let maxInit = Number(wisDef.init_cap) || 1000 - console.log("Rolling initiative for", this) let roll = await LethalFantasyRoll.promptInitiative({ actorId: this.parent.id, diff --git a/packs-system/lf-equipment/000426.log b/packs-system/lf-equipment/000438.log similarity index 100% rename from packs-system/lf-equipment/000426.log rename to packs-system/lf-equipment/000438.log diff --git a/packs-system/lf-equipment/CURRENT b/packs-system/lf-equipment/CURRENT index aa21846..5a7087a 100644 --- a/packs-system/lf-equipment/CURRENT +++ b/packs-system/lf-equipment/CURRENT @@ -1 +1 @@ -MANIFEST-000424 +MANIFEST-000436 diff --git a/packs-system/lf-equipment/LOG b/packs-system/lf-equipment/LOG index 2ba032d..4b6a2e1 100644 --- a/packs-system/lf-equipment/LOG +++ b/packs-system/lf-equipment/LOG @@ -1,8 +1,8 @@ -2025/09/20-09:24:47.271364 7f7d00dfa6c0 Recovering log #422 -2025/09/20-09:24:47.284417 7f7d00dfa6c0 Delete type=3 #420 -2025/09/20-09:24:47.284476 7f7d00dfa6c0 Delete type=0 #422 -2025/09/20-09:32:46.867336 7f7cf9fff6c0 Level-0 table #427: started -2025/09/20-09:32:46.867378 7f7cf9fff6c0 Level-0 table #427: 0 bytes OK -2025/09/20-09:32:46.873522 7f7cf9fff6c0 Delete type=0 #425 -2025/09/20-09:32:46.886330 7f7cf9fff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end) -2025/09/20-09:32:46.886530 7f7cf9fff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end) +2025/10/01-16:42:57.866432 7fc499ffb6c0 Recovering log #434 +2025/10/01-16:42:57.877314 7fc499ffb6c0 Delete type=3 #432 +2025/10/01-16:42:57.877388 7fc499ffb6c0 Delete type=0 #434 +2025/10/01-17:11:30.188440 7fc497ff76c0 Level-0 table #439: started +2025/10/01-17:11:30.188469 7fc497ff76c0 Level-0 table #439: 0 bytes OK +2025/10/01-17:11:30.194363 7fc497ff76c0 Delete type=0 #437 +2025/10/01-17:11:30.200618 7fc497ff76c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end) +2025/10/01-17:11:30.200653 7fc497ff76c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end) diff --git a/packs-system/lf-equipment/LOG.old b/packs-system/lf-equipment/LOG.old index cce13a9..9ac7926 100644 --- a/packs-system/lf-equipment/LOG.old +++ b/packs-system/lf-equipment/LOG.old @@ -1,8 +1,8 @@ -2025/09/19-21:01:58.948341 7f7cfaffd6c0 Recovering log #418 -2025/09/19-21:01:58.990053 7f7cfaffd6c0 Delete type=3 #416 -2025/09/19-21:01:58.990118 7f7cfaffd6c0 Delete type=0 #418 -2025/09/19-22:28:27.055322 7f7cf9fff6c0 Level-0 table #423: started -2025/09/19-22:28:27.055429 7f7cf9fff6c0 Level-0 table #423: 0 bytes OK -2025/09/19-22:28:27.062766 7f7cf9fff6c0 Delete type=0 #421 -2025/09/19-22:28:27.082558 7f7cf9fff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end) -2025/09/19-22:28:27.082605 7f7cf9fff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end) +2025/10/01-09:52:37.607891 7fc498ff96c0 Recovering log #430 +2025/10/01-09:52:37.617656 7fc498ff96c0 Delete type=3 #428 +2025/10/01-09:52:37.617728 7fc498ff96c0 Delete type=0 #430 +2025/10/01-10:19:09.456857 7fc497ff76c0 Level-0 table #435: started +2025/10/01-10:19:09.456891 7fc497ff76c0 Level-0 table #435: 0 bytes OK +2025/10/01-10:19:09.500293 7fc497ff76c0 Delete type=0 #433 +2025/10/01-10:19:09.675931 7fc497ff76c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end) +2025/10/01-10:19:09.675968 7fc497ff76c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end) diff --git a/packs-system/lf-equipment/MANIFEST-000424 b/packs-system/lf-equipment/MANIFEST-000436 similarity index 71% rename from packs-system/lf-equipment/MANIFEST-000424 rename to packs-system/lf-equipment/MANIFEST-000436 index 1738fcaedf5b6c42d6ffaf6a7ee478cd48303889..dcdeeffb9e795f17d9ffaf2d4d8ad8d18246d72f 100644 GIT binary patch delta 43 tcmdnQxQTH>pUP4hbsla8My9RIoD9s{m|322>=1kV8YHp}B(eh}0ssI(3qSw> delta 43 tcmdnQxQTH>pUQ#-Z$EQ0Ffy%V=44=A#mw@IgIR!!6C|<pGtC0OgJ|KBhyx9P6p;}%q&+}>)K|Sfkd`}M0S8g00d_W(f|Me delta 43 tcmdnQxQTH>pGw+?nR?s|j7%$;IT@H&F|%A@b#17P1Bt8xiL3#M000uW3kd)K diff --git a/packs-system/lf-spells-miracles/000126.log b/packs-system/lf-spells-miracles/000138.log similarity index 100% rename from packs-system/lf-spells-miracles/000126.log rename to packs-system/lf-spells-miracles/000138.log diff --git a/packs-system/lf-spells-miracles/CURRENT b/packs-system/lf-spells-miracles/CURRENT index f8370cf..0eb07d3 100644 --- a/packs-system/lf-spells-miracles/CURRENT +++ b/packs-system/lf-spells-miracles/CURRENT @@ -1 +1 @@ -MANIFEST-000124 +MANIFEST-000136 diff --git a/packs-system/lf-spells-miracles/LOG b/packs-system/lf-spells-miracles/LOG index 4615104..177ee66 100644 --- a/packs-system/lf-spells-miracles/LOG +++ b/packs-system/lf-spells-miracles/LOG @@ -1,8 +1,8 @@ -2025/09/20-09:24:47.318521 7f7cfaffd6c0 Recovering log #122 -2025/09/20-09:24:47.328528 7f7cfaffd6c0 Delete type=3 #120 -2025/09/20-09:24:47.328622 7f7cfaffd6c0 Delete type=0 #122 -2025/09/20-09:32:46.909549 7f7cf9fff6c0 Level-0 table #127: started -2025/09/20-09:32:46.909792 7f7cf9fff6c0 Level-0 table #127: 0 bytes OK -2025/09/20-09:32:46.915753 7f7cf9fff6c0 Delete type=0 #125 -2025/09/20-09:32:46.934449 7f7cf9fff6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end) -2025/09/20-09:32:46.934489 7f7cf9fff6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end) +2025/10/01-16:42:57.908006 7fc4997fa6c0 Recovering log #134 +2025/10/01-16:42:57.919602 7fc4997fa6c0 Delete type=3 #132 +2025/10/01-16:42:57.919658 7fc4997fa6c0 Delete type=0 #134 +2025/10/01-17:11:30.207352 7fc497ff76c0 Level-0 table #139: started +2025/10/01-17:11:30.207416 7fc497ff76c0 Level-0 table #139: 0 bytes OK +2025/10/01-17:11:30.214221 7fc497ff76c0 Delete type=0 #137 +2025/10/01-17:11:30.239177 7fc497ff76c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end) +2025/10/01-17:11:30.278471 7fc497ff76c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end) diff --git a/packs-system/lf-spells-miracles/LOG.old b/packs-system/lf-spells-miracles/LOG.old index 446d077..0ea2e8c 100644 --- a/packs-system/lf-spells-miracles/LOG.old +++ b/packs-system/lf-spells-miracles/LOG.old @@ -1,8 +1,8 @@ -2025/09/19-21:01:59.113262 7f7cfaffd6c0 Recovering log #118 -2025/09/19-21:01:59.152822 7f7cfaffd6c0 Delete type=3 #116 -2025/09/19-21:01:59.152924 7f7cfaffd6c0 Delete type=0 #118 -2025/09/19-22:28:27.089546 7f7cf9fff6c0 Level-0 table #123: started -2025/09/19-22:28:27.089602 7f7cf9fff6c0 Level-0 table #123: 0 bytes OK -2025/09/19-22:28:27.095855 7f7cf9fff6c0 Delete type=0 #121 -2025/09/19-22:28:27.116632 7f7cf9fff6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end) -2025/09/19-22:28:27.145745 7f7cf9fff6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end) +2025/10/01-09:52:37.648603 7fc498ff96c0 Recovering log #130 +2025/10/01-09:52:37.658051 7fc498ff96c0 Delete type=3 #128 +2025/10/01-09:52:37.658136 7fc498ff96c0 Delete type=0 #130 +2025/10/01-10:19:09.381699 7fc497ff76c0 Level-0 table #135: started +2025/10/01-10:19:09.381742 7fc497ff76c0 Level-0 table #135: 0 bytes OK +2025/10/01-10:19:09.417885 7fc497ff76c0 Delete type=0 #133 +2025/10/01-10:19:09.675902 7fc497ff76c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end) +2025/10/01-10:19:09.675956 7fc497ff76c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end) diff --git a/packs-system/lf-spells-miracles/MANIFEST-000124 b/packs-system/lf-spells-miracles/MANIFEST-000136 similarity index 72% rename from packs-system/lf-spells-miracles/MANIFEST-000124 rename to packs-system/lf-spells-miracles/MANIFEST-000136 index a4c2e0361a7fa6304501994b1da27510f4944977..b4b07703427abdf8bfa0769e6f954482be8bedf8 100644 GIT binary patch delta 43 scmZ3-xRG%}ugaDuOLlTIFfw&AaxyS?F|thJ5D)P`3=-)AiS&R(039g`vH$=8 delta 40 scmdnUxQ=l`uVPk#=o3x`My6U$2Ie}JNgVIFZvNo{^6P;721cL&0P~m%r~m)} diff --git a/packs-system/lf-vulnerabilities/000425.log b/packs-system/lf-vulnerabilities/000437.log similarity index 100% rename from packs-system/lf-vulnerabilities/000425.log rename to packs-system/lf-vulnerabilities/000437.log diff --git a/packs-system/lf-vulnerabilities/CURRENT b/packs-system/lf-vulnerabilities/CURRENT index 988f252..e63c4ed 100644 --- a/packs-system/lf-vulnerabilities/CURRENT +++ b/packs-system/lf-vulnerabilities/CURRENT @@ -1 +1 @@ -MANIFEST-000423 +MANIFEST-000435 diff --git a/packs-system/lf-vulnerabilities/LOG b/packs-system/lf-vulnerabilities/LOG index 3cdb800..498c5d8 100644 --- a/packs-system/lf-vulnerabilities/LOG +++ b/packs-system/lf-vulnerabilities/LOG @@ -1,8 +1,8 @@ -2025/09/20-09:24:47.303028 7f7d00dfa6c0 Recovering log #421 -2025/09/20-09:24:47.316425 7f7d00dfa6c0 Delete type=3 #419 -2025/09/20-09:24:47.316502 7f7d00dfa6c0 Delete type=0 #421 -2025/09/20-09:32:46.880413 7f7cf9fff6c0 Level-0 table #426: started -2025/09/20-09:32:46.880437 7f7cf9fff6c0 Level-0 table #426: 0 bytes OK -2025/09/20-09:32:46.886234 7f7cf9fff6c0 Delete type=0 #424 -2025/09/20-09:32:46.886455 7f7cf9fff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) -2025/09/20-09:32:46.886560 7f7cf9fff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) +2025/10/01-16:42:57.895507 7fc498ff96c0 Recovering log #433 +2025/10/01-16:42:57.905329 7fc498ff96c0 Delete type=3 #431 +2025/10/01-16:42:57.905405 7fc498ff96c0 Delete type=0 #433 +2025/10/01-17:11:30.194475 7fc497ff76c0 Level-0 table #438: started +2025/10/01-17:11:30.194505 7fc497ff76c0 Level-0 table #438: 0 bytes OK +2025/10/01-17:11:30.200450 7fc497ff76c0 Delete type=0 #436 +2025/10/01-17:11:30.200628 7fc497ff76c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) +2025/10/01-17:11:30.200661 7fc497ff76c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) diff --git a/packs-system/lf-vulnerabilities/LOG.old b/packs-system/lf-vulnerabilities/LOG.old index 445a4d5..e5879df 100644 --- a/packs-system/lf-vulnerabilities/LOG.old +++ b/packs-system/lf-vulnerabilities/LOG.old @@ -1,8 +1,8 @@ -2025/09/19-21:01:59.044069 7f7cfb7fe6c0 Recovering log #417 -2025/09/19-21:01:59.110180 7f7cfb7fe6c0 Delete type=3 #415 -2025/09/19-21:01:59.110282 7f7cfb7fe6c0 Delete type=0 #417 -2025/09/19-22:28:27.062900 7f7cf9fff6c0 Level-0 table #422: started -2025/09/19-22:28:27.062937 7f7cf9fff6c0 Level-0 table #422: 0 bytes OK -2025/09/19-22:28:27.069460 7f7cf9fff6c0 Delete type=0 #420 -2025/09/19-22:28:27.082570 7f7cf9fff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) -2025/09/19-22:28:27.082620 7f7cf9fff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) +2025/10/01-09:52:37.634817 7fc4987f86c0 Recovering log #429 +2025/10/01-09:52:37.645670 7fc4987f86c0 Delete type=3 #427 +2025/10/01-09:52:37.645745 7fc4987f86c0 Delete type=0 #429 +2025/10/01-10:19:09.704901 7fc497ff76c0 Level-0 table #434: started +2025/10/01-10:19:09.704973 7fc497ff76c0 Level-0 table #434: 0 bytes OK +2025/10/01-10:19:09.736698 7fc497ff76c0 Delete type=0 #432 +2025/10/01-10:19:09.809658 7fc497ff76c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) +2025/10/01-10:19:09.809691 7fc497ff76c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end) diff --git a/packs-system/lf-vulnerabilities/MANIFEST-000423 b/packs-system/lf-vulnerabilities/MANIFEST-000435 similarity index 72% rename from packs-system/lf-vulnerabilities/MANIFEST-000423 rename to packs-system/lf-vulnerabilities/MANIFEST-000435 index 3f5810a399be0f685950b64c0a6f6d2b8bf03173..1fd96cd7aad68e5274d01656c683f60bc42da3c5 100644 GIT binary patch delta 41 scmdnMxPfs(pVC9A8A4nPj7(dYIT@I@GP7h&n#g4b64(k7*bWo`0O-aEq5uE@ delta 41 scmdnMxPfs(pOW<{v&mcxj7%$-IT@H&GP7i@Fj=w}B(M@Buo@@;0QHv&Z2$lO diff --git a/styles/character.less b/styles/character.less index 10fe65b..0d0e8ff 100644 --- a/styles/character.less +++ b/styles/character.less @@ -375,6 +375,9 @@ min-width: 2.5rem; max-width: 2.5rem; } + .ranged-attack-button { + font-size: 0.8rem; + } button { min-width: 9rem; } diff --git a/templates/character-combat.hbs b/templates/character-combat.hbs index 34d0d0d..eb4b046 100644 --- a/templates/character-combat.hbs +++ b/templates/character-combat.hbs @@ -6,11 +6,11 @@
- - @@ -22,23 +22,20 @@
- {{localize - "LETHALFANTASY.Label.grantedAttackDice"}} + {{localize + "LETHALFANTASY.Label.grantedAttackDice"}} {{formInput systemFields.granted.fields.attackDice value=system.granted.attackDice disabled=isPlayMode }}
- {{localize - "LETHALFANTASY.Label.grantedDefenseDice"}} + {{localize + "LETHALFANTASY.Label.grantedDefenseDice"}} {{formInput systemFields.granted.fields.defenseDice value=system.granted.defenseDice disabled=isPlayMode }}
- {{localize - "LETHALFANTASY.Label.grantedDamageDice"}} + {{localize + "LETHALFANTASY.Label.grantedDamageDice"}} {{formInput systemFields.granted.fields.damageDice value=system.granted.damageDice disabled=isPlayMode }}
@@ -69,8 +66,7 @@
{{#if (ne item.img "icons/svg/item-bag.svg")}} - + {{/if}}
{{item.name}}