Compare commits

..

5 Commits

Author SHA1 Message Date
uberwald 54421e4a83 MAnage spell/miracle spending points and favor/disfavor for shield rolls
Release Creation / build (release) Successful in 43s
2026-05-10 17:49:53 +02:00
uberwald ac44419b7a Corredction sur attack ranged 2026-05-03 15:12:25 +02:00
uberwald a3fc0a42b9 Corredction sur attack ranged
Release Creation / build (release) Successful in 1m19s
2026-05-03 10:06:44 +02:00
uberwald c8ce840e98 Fix ranged defense + HTH attacks
Release Creation / build (release) Successful in 1m17s
2026-05-02 08:35:22 +02:00
uberwald 55a040062a Fix ranged defense + HTH attacks
Release Creation / build (release) Successful in 1m19s
2026-05-01 23:55:29 +02:00
34 changed files with 318 additions and 97 deletions
+1 -1
View File
@@ -60,4 +60,4 @@ jobs:
manifest: "https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/system.json"
notes: "https://www.uberwald.me/gitea/public/fvtt-lethal-fantasy/raw/branch/main/changelog.md"
compatibility-minimum: "13"
compatibility-verified: "13"
compatibility-verified: "14"
+39
View File
@@ -1178,6 +1178,45 @@ i.lethalfantasy {
margin-left: 4px;
margin-right: 4px;
}
.lethalfantasy .tab.monster-combat .ranged-attacks {
grid-template-columns: 1fr;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .attack .name {
min-width: 10rem;
max-width: 10rem;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .attack .damage-dice {
width: 5rem;
max-width: 5rem;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range {
margin-top: 8px;
border-top: 1px solid var(--color-border-light-tertiary, #ccc);
padding-top: 6px;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range > label {
font-weight: bold;
margin-bottom: 4px;
display: block;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields .range-field {
display: flex;
flex-direction: column;
align-items: center;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields .range-field label {
font-size: 0.7rem;
white-space: nowrap;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields .range-field input {
width: 3.5rem;
text-align: center;
}
.lethalfantasy .tab.monster-combat .armors {
display: grid;
grid-template-columns: repeat(3, 1fr);
+8 -1
View File
@@ -382,7 +382,7 @@
"rollProgressionCount": "Roll progression count",
"rollProgressionDice": "Roll progression/Lethargy dice",
"earned": "Earned",
"divinityPoints": "Divinity points",
"divinityPoints": "Grace",
"aetherPoints": "Aether points",
"attacks": "Attacks",
"attackMode": "Attack Mode",
@@ -462,6 +462,13 @@
"notes": "Notes",
"pc": "PC",
"perception": "Perception",
"pointBlank": "Point blank",
"short": "Short",
"medium": "Medium",
"long": "Long",
"extreme": "Extreme",
"outOfSkill": "Out of skill",
"range": "Range",
"rangeDefenseDialog": "Ranged defense dialog",
"rangeDefenseRoll": "Ranged defense roll",
"rangedAttackDefense": "Ranged attack defense",
+74 -2
View File
@@ -265,9 +265,14 @@ Hooks.on(hookName, (message, html, data) => {
}
// Préparer le message de demande de défense
// Récupérer l'acteur attaquant pour vérifier le mode d'attaque
// isRanged: true si le monstre était en mode ranged (via rollTarget.attackMode stocké dans le roll)
// OU si l'attaquant utilisait une arme ranged (weapon-attack avec weaponType === "ranged")
const attacker = game.actors.get(attackerId)
const isRangedAttack = attacker?.type === "monster" && attacker.system.attackMode === "ranged"
const rollTargetOptions = message.rolls[0]?.options?.rollTarget
const attackerWeapon = rollTargetOptions?.weapon
const isRangedAttack = (rollTargetOptions?.attackMode === "ranged")
|| (attacker?.type === "monster" && attacker.system.attackMode === "ranged")
|| (attackerWeapon?.system?.weaponType === "ranged")
const defenseMsg = {
type: "requestDefense",
@@ -823,6 +828,73 @@ Hooks.on("createChatMessage", async (message) => {
}
})
// Hook: deduct aether when a spell-attack or spell-power roll is posted to chat
Hooks.on("createChatMessage", async (message) => {
if (!["spell-attack", "spell-power"].includes(message.rolls[0]?.options?.rollType)) return
const actorId = message.rolls[0]?.options?.actorId
if (!actorId) return
const actor = game.actors.get(actorId)
if (!actor) return
// Only the primary controller (player owner or GM) handles this
const activePlayerOwners = game.users.filter(u => u.active && !u.isGM && actor.testUserPermission(u, "OWNER"))
const isPrimary = activePlayerOwners.length > 0
? activePlayerOwners[0].id === game.user.id
: game.user.isGM
if (!isPrimary) return
const rollTarget = message.rolls[0]?.options?.rollTarget
const spellId = rollTarget?.id || rollTarget?._id
const spell = spellId ? actor.items.get(spellId) : null
if (!spell || spell.type !== "spell") return
const cost = Number(spell.system?.cost) || 0
if (cost <= 0) return
const currentAether = Number(actor.system.aetherPoints?.value) || 0
const newAether = Math.max(0, currentAether - cost)
await actor.update({ "system.aetherPoints.value": newAether })
await ChatMessage.create({
content: `<p>🔮 <strong>${actor.name}</strong> casts <em>${spell.name}</em> — spends <strong>${cost}</strong> Aether <span style="color:#888;">(${currentAether}${newAether})</span>.</p>`,
speaker: ChatMessage.getSpeaker({ actor })
})
})
// Hook: deduct grace when a miracle-attack or miracle-power roll is posted to chat
Hooks.on("createChatMessage", async (message) => {
if (!["miracle-attack", "miracle-power"].includes(message.rolls[0]?.options?.rollType)) return
const actorId = message.rolls[0]?.options?.actorId
if (!actorId) return
const actor = game.actors.get(actorId)
if (!actor) return
const activePlayerOwners = game.users.filter(u => u.active && !u.isGM && actor.testUserPermission(u, "OWNER"))
const isPrimary = activePlayerOwners.length > 0
? activePlayerOwners[0].id === game.user.id
: game.user.isGM
if (!isPrimary) return
const rollTarget = message.rolls[0]?.options?.rollTarget
const miracleId = rollTarget?.id || rollTarget?._id
const miracle = miracleId ? actor.items.get(miracleId) : null
if (!miracle || miracle.type !== "miracle") return
const cost = Number(miracle.system?.level) || 0
if (cost <= 0) return
const currentGrace = Number(actor.system.divinityPoints?.value) || 0
const newGrace = Math.max(0, currentGrace - cost)
await actor.update({ "system.divinityPoints.value": newGrace })
await ChatMessage.create({
content: `<p>✨ <strong>${actor.name}</strong> invokes <em>${miracle.name}</em> — spends <strong>${cost}</strong> Grace <span style="color:#888;">(${currentGrace}${newGrace})</span>.</p>`,
speaker: ChatMessage.getSpeaker({ actor })
})
})
// Hook pour appliquer automatiquement les dégâts si une cible est définie
Hooks.on("createChatMessage", async (message) => {
// Vérifier si c'est un message de dégâts avec un defenderId
+16
View File
@@ -198,6 +198,22 @@ export default class LethalFantasyActor extends Actor {
case "miracle-power":
rollTarget = this.items.find((i) => (i.type === "miracle" || i.type == "spell") && i.id === rollKey)
rollTarget.rollKey = rollKey
if (rollType === "spell-attack" || rollType === "spell-power") {
const cost = Number(rollTarget.system?.cost) || 0
const currentAether = Number(this.system.aetherPoints?.value) || 0
if (cost > currentAether) {
ui.notifications.warn(`${this.name} cannot cast ${rollTarget.name}: insufficient Aether (needs ${cost}, has ${currentAether}).`)
return
}
}
if (rollType === "miracle-attack" || rollType === "miracle-power") {
const cost = Number(rollTarget.system?.level) || 0
const currentGrace = Number(this.system.divinityPoints?.value) || 0
if (cost > currentGrace) {
ui.notifications.warn(`${this.name} cannot invoke ${rollTarget.name}: insufficient Grace (needs ${cost}, has ${currentGrace}).`)
return
}
}
break
case "shield-roll": {
rollTarget = this.items.find((i) => i.type === "shield" && i.id === rollKey)
+12 -3
View File
@@ -272,6 +272,7 @@ export default class LethalFantasyRoll extends Roll {
hasChangeDice = false
hasMaxValue = false
hasExplode = false
hasFavor = true
options.rollTarget.value = 0
} else if (options.rollType.includes("weapon-damage")) {
@@ -289,7 +290,11 @@ export default class LethalFantasyRoll extends Roll {
options.damageMedium = true
dice = options.rollTarget.weapon.system.damage.damageM
}
dice = dice.replace("E", "")
if (/NE$/i.test(dice)) {
hasMaxValue = false
hasExplode = false
}
dice = dice.replace(/NE$/i, "").replace("E", "")
baseFormula = dice
} else if (options.rollType.includes("monster-damage")) {
@@ -302,7 +307,10 @@ export default class LethalFantasyRoll extends Roll {
dice = options.rollTarget.damageDice
dice = dice.replace("E", "")
baseFormula = dice
if (options.rollTarget.noExplode) hasMaxValue = false
if (options.rollTarget.noExplode) {
hasMaxValue = false
hasExplode = false
}
}
@@ -498,7 +506,8 @@ export default class LethalFantasyRoll extends Roll {
rollContext.favor = "none"
}
maxValue = Number(baseFormula.match(/\d+$/)[0]) // Update the max value agains
const maxMatch = baseFormula ? baseFormula.match(/\d+$/) : null
maxValue = maxMatch ? Number(maxMatch[0]) : 0
const rollData = {
type: options.rollType,
+11 -2
View File
@@ -74,7 +74,6 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
damageDice: new fields.StringField({ required: true, nullable: false, initial: "1D6" }),
damageModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
enabled: new fields.BooleanField({ initial: true, required: true, nullable: false }),
range: new fields.StringField({ required: false, nullable: true, initial: "" }),
noExplode: new fields.BooleanField({ initial: initialNoExplode, required: true, nullable: false }),
}
return new fields.SchemaField(schema, { label })
@@ -143,6 +142,15 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
attack4: attackField("4")
})
schema.rangedWeaponRange = new fields.SchemaField({
pointBlank: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
short: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
medium: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
long: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
extreme: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
outOfSkill: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
})
return schema
}
@@ -184,6 +192,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
const attacksSet = this.attackMode === "ranged" ? this.rangedAttacks : this.attacks
rollTarget = foundry.utils.duplicate(attacksSet[rollKey])
rollTarget.rollKey = rollKey
rollTarget.attackMode = this.attackMode
if (rollType === "monster-defense") {
rollTarget.isRangedDefense = game.lethalFantasy?.nextDefenseData?.isRanged ?? false
}
@@ -261,7 +270,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
return
}
rollTarget = skill
rollTarget.weapon = weapon
rollTarget.weapon = foundry.utils.duplicate(weapon)
rollTarget.weaponSkillModifier = skill.weaponSkillModifier
rollTarget.rollKey = rollKey
rollTarget.combat = foundry.utils.duplicate(this.combat)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000583
MANIFEST-000587
+8 -8
View File
@@ -1,8 +1,8 @@
2026/05/01-23:33:08.433602 7f8fb27bf6c0 Recovering log #581
2026/05/01-23:33:08.476792 7f8fb27bf6c0 Delete type=3 #579
2026/05/01-23:33:08.476868 7f8fb27bf6c0 Delete type=0 #581
2026/05/01-23:33:55.878970 7f8d1bfff6c0 Level-0 table #586: started
2026/05/01-23:33:55.881418 7f8d1bfff6c0 Level-0 table #586: 0 bytes OK
2026/05/01-23:33:55.924908 7f8d1bfff6c0 Delete type=0 #584
2026/05/01-23:33:56.035970 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
2026/05/01-23:33:56.036022 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
2026/05/02-08:40:55.892385 7fd7557ee6c0 Recovering log #585
2026/05/02-08:40:55.903385 7fd7557ee6c0 Delete type=3 #583
2026/05/02-08:40:55.903442 7fd7557ee6c0 Delete type=0 #585
2026/05/02-08:41:12.057856 7fd7477fe6c0 Level-0 table #590: started
2026/05/02-08:41:12.057882 7fd7477fe6c0 Level-0 table #590: 0 bytes OK
2026/05/02-08:41:12.121845 7fd7477fe6c0 Delete type=0 #588
2026/05/02-08:41:12.122077 7fd7477fe6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
2026/05/02-08:41:12.122121 7fd7477fe6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
+8 -8
View File
@@ -1,8 +1,8 @@
2026/04/30-14:38:06.808992 7f3f35bff6c0 Recovering log #577
2026/04/30-14:38:06.818757 7f3f35bff6c0 Delete type=3 #575
2026/04/30-14:38:06.818831 7f3f35bff6c0 Delete type=0 #577
2026/04/30-14:38:35.518816 7f3ee77fe6c0 Level-0 table #582: started
2026/04/30-14:38:35.518836 7f3ee77fe6c0 Level-0 table #582: 0 bytes OK
2026/04/30-14:38:35.525869 7f3ee77fe6c0 Delete type=0 #580
2026/04/30-14:38:35.538258 7f3ee77fe6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
2026/04/30-14:38:35.538288 7f3ee77fe6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
2026/05/01-23:33:08.433602 7f8fb27bf6c0 Recovering log #581
2026/05/01-23:33:08.476792 7f8fb27bf6c0 Delete type=3 #579
2026/05/01-23:33:08.476868 7f8fb27bf6c0 Delete type=0 #581
2026/05/01-23:33:55.878970 7f8d1bfff6c0 Level-0 table #586: started
2026/05/01-23:33:55.881418 7f8d1bfff6c0 Level-0 table #586: 0 bytes OK
2026/05/01-23:33:55.924908 7f8d1bfff6c0 Delete type=0 #584
2026/05/01-23:33:56.035970 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
2026/05/01-23:33:56.036022 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000580
MANIFEST-000584
+8 -8
View File
@@ -1,8 +1,8 @@
2026/05/01-23:33:08.486839 7f8fb17bd6c0 Recovering log #578
2026/05/01-23:33:08.536613 7f8fb17bd6c0 Delete type=3 #576
2026/05/01-23:33:08.536667 7f8fb17bd6c0 Delete type=0 #578
2026/05/01-23:33:55.999594 7f8d1bfff6c0 Level-0 table #583: started
2026/05/01-23:33:55.999624 7f8d1bfff6c0 Level-0 table #583: 0 bytes OK
2026/05/01-23:33:56.035856 7f8d1bfff6c0 Delete type=0 #581
2026/05/01-23:33:56.036000 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
2026/05/01-23:33:56.036042 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
2026/05/02-08:40:55.909564 7fd747fff6c0 Recovering log #582
2026/05/02-08:40:55.919159 7fd747fff6c0 Delete type=3 #580
2026/05/02-08:40:55.919214 7fd747fff6c0 Delete type=0 #582
2026/05/02-08:41:11.999050 7fd7477fe6c0 Level-0 table #587: started
2026/05/02-08:41:11.999076 7fd7477fe6c0 Level-0 table #587: 0 bytes OK
2026/05/02-08:41:12.057672 7fd7477fe6c0 Delete type=0 #585
2026/05/02-08:41:12.122063 7fd7477fe6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
2026/05/02-08:41:12.122111 7fd7477fe6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
+8 -8
View File
@@ -1,8 +1,8 @@
2026/04/30-14:38:06.823818 7f3f353fe6c0 Recovering log #574
2026/04/30-14:38:06.834104 7f3f353fe6c0 Delete type=3 #572
2026/04/30-14:38:06.834187 7f3f353fe6c0 Delete type=0 #574
2026/04/30-14:38:35.525993 7f3ee77fe6c0 Level-0 table #579: started
2026/04/30-14:38:35.526019 7f3ee77fe6c0 Level-0 table #579: 0 bytes OK
2026/04/30-14:38:35.532067 7f3ee77fe6c0 Delete type=0 #577
2026/04/30-14:38:35.538267 7f3ee77fe6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
2026/04/30-14:38:35.538302 7f3ee77fe6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
2026/05/01-23:33:08.486839 7f8fb17bd6c0 Recovering log #578
2026/05/01-23:33:08.536613 7f8fb17bd6c0 Delete type=3 #576
2026/05/01-23:33:08.536667 7f8fb17bd6c0 Delete type=0 #578
2026/05/01-23:33:55.999594 7f8d1bfff6c0 Level-0 table #583: started
2026/05/01-23:33:55.999624 7f8d1bfff6c0 Level-0 table #583: 0 bytes OK
2026/05/01-23:33:56.035856 7f8d1bfff6c0 Delete type=0 #581
2026/05/01-23:33:56.036000 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
2026/05/01-23:33:56.036042 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000585
MANIFEST-000589
+8 -8
View File
@@ -1,8 +1,8 @@
2026/05/01-23:33:08.376215 7f8fb0fbc6c0 Recovering log #583
2026/05/01-23:33:08.417318 7f8fb0fbc6c0 Delete type=3 #581
2026/05/01-23:33:08.417396 7f8fb0fbc6c0 Delete type=0 #583
2026/05/01-23:33:55.962045 7f8d1bfff6c0 Level-0 table #588: started
2026/05/01-23:33:55.962068 7f8d1bfff6c0 Level-0 table #588: 0 bytes OK
2026/05/01-23:33:55.999439 7f8d1bfff6c0 Delete type=0 #586
2026/05/01-23:33:56.035992 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2026/05/01-23:33:56.036035 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2026/05/02-08:40:55.873571 7fd747fff6c0 Recovering log #587
2026/05/02-08:40:55.883892 7fd747fff6c0 Delete type=3 #585
2026/05/02-08:40:55.883950 7fd747fff6c0 Delete type=0 #587
2026/05/02-08:41:11.870087 7fd7477fe6c0 Level-0 table #592: started
2026/05/02-08:41:11.870140 7fd7477fe6c0 Level-0 table #592: 0 bytes OK
2026/05/02-08:41:11.937524 7fd7477fe6c0 Delete type=0 #590
2026/05/02-08:41:12.122025 7fd7477fe6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2026/05/02-08:41:12.122087 7fd7477fe6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
+8 -8
View File
@@ -1,8 +1,8 @@
2026/04/30-14:38:06.795186 7f3f353fe6c0 Recovering log #579
2026/04/30-14:38:06.805935 7f3f353fe6c0 Delete type=3 #577
2026/04/30-14:38:06.805994 7f3f353fe6c0 Delete type=0 #579
2026/04/30-14:38:35.512680 7f3ee77fe6c0 Level-0 table #584: started
2026/04/30-14:38:35.512729 7f3ee77fe6c0 Level-0 table #584: 0 bytes OK
2026/04/30-14:38:35.518704 7f3ee77fe6c0 Delete type=0 #582
2026/04/30-14:38:35.538247 7f3ee77fe6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2026/04/30-14:38:35.538281 7f3ee77fe6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2026/05/01-23:33:08.376215 7f8fb0fbc6c0 Recovering log #583
2026/05/01-23:33:08.417318 7f8fb0fbc6c0 Delete type=3 #581
2026/05/01-23:33:08.417396 7f8fb0fbc6c0 Delete type=0 #583
2026/05/01-23:33:55.962045 7f8d1bfff6c0 Level-0 table #588: started
2026/05/01-23:33:55.962068 7f8d1bfff6c0 Level-0 table #588: 0 bytes OK
2026/05/01-23:33:55.999439 7f8d1bfff6c0 Delete type=0 #586
2026/05/01-23:33:56.035992 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2026/05/01-23:33:56.036035 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000280
MANIFEST-000284
+8 -8
View File
@@ -1,8 +1,8 @@
2026/05/01-23:33:08.590994 7f8fb1fbe6c0 Recovering log #278
2026/05/01-23:33:08.636941 7f8fb1fbe6c0 Delete type=3 #276
2026/05/01-23:33:08.636992 7f8fb1fbe6c0 Delete type=0 #278
2026/05/01-23:33:56.204694 7f8d1bfff6c0 Level-0 table #283: started
2026/05/01-23:33:56.204728 7f8d1bfff6c0 Level-0 table #283: 0 bytes OK
2026/05/01-23:33:56.238272 7f8d1bfff6c0 Delete type=0 #281
2026/05/01-23:33:56.371888 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
2026/05/01-23:33:56.426259 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
2026/05/02-08:40:55.939668 7fd754fed6c0 Recovering log #282
2026/05/02-08:40:55.949715 7fd754fed6c0 Delete type=3 #280
2026/05/02-08:40:55.949784 7fd754fed6c0 Delete type=0 #282
2026/05/02-08:41:12.184448 7fd7477fe6c0 Level-0 table #287: started
2026/05/02-08:41:12.184496 7fd7477fe6c0 Level-0 table #287: 0 bytes OK
2026/05/02-08:41:12.252892 7fd7477fe6c0 Delete type=0 #285
2026/05/02-08:41:12.365481 7fd7477fe6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
2026/05/02-08:41:12.365509 7fd7477fe6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
+8 -8
View File
@@ -1,8 +1,8 @@
2026/04/30-14:38:06.849252 7f3f353fe6c0 Recovering log #274
2026/04/30-14:38:06.859072 7f3f353fe6c0 Delete type=3 #272
2026/04/30-14:38:06.859126 7f3f353fe6c0 Delete type=0 #274
2026/04/30-14:38:35.538433 7f3ee77fe6c0 Level-0 table #279: started
2026/04/30-14:38:35.538452 7f3ee77fe6c0 Level-0 table #279: 0 bytes OK
2026/04/30-14:38:35.544715 7f3ee77fe6c0 Delete type=0 #277
2026/04/30-14:38:35.567736 7f3ee77fe6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
2026/04/30-14:38:35.567785 7f3ee77fe6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
2026/05/01-23:33:08.590994 7f8fb1fbe6c0 Recovering log #278
2026/05/01-23:33:08.636941 7f8fb1fbe6c0 Delete type=3 #276
2026/05/01-23:33:08.636992 7f8fb1fbe6c0 Delete type=0 #278
2026/05/01-23:33:56.204694 7f8d1bfff6c0 Level-0 table #283: started
2026/05/01-23:33:56.204728 7f8d1bfff6c0 Level-0 table #283: 0 bytes OK
2026/05/01-23:33:56.238272 7f8d1bfff6c0 Delete type=0 #281
2026/05/01-23:33:56.371888 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
2026/05/01-23:33:56.426259 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000579
MANIFEST-000583
+8 -8
View File
@@ -1,8 +1,8 @@
2026/05/01-23:33:08.543693 7f8fb0fbc6c0 Recovering log #577
2026/05/01-23:33:08.586596 7f8fb0fbc6c0 Delete type=3 #575
2026/05/01-23:33:08.586670 7f8fb0fbc6c0 Delete type=0 #577
2026/05/01-23:33:55.925044 7f8d1bfff6c0 Level-0 table #582: started
2026/05/01-23:33:55.925074 7f8d1bfff6c0 Level-0 table #582: 0 bytes OK
2026/05/01-23:33:55.961939 7f8d1bfff6c0 Delete type=0 #580
2026/05/01-23:33:56.035982 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2026/05/01-23:33:56.036029 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2026/05/02-08:40:55.925402 7fd755fef6c0 Recovering log #581
2026/05/02-08:40:55.935869 7fd755fef6c0 Delete type=3 #579
2026/05/02-08:40:55.935924 7fd755fef6c0 Delete type=0 #581
2026/05/02-08:41:11.937698 7fd7477fe6c0 Level-0 table #586: started
2026/05/02-08:41:11.937727 7fd7477fe6c0 Level-0 table #586: 0 bytes OK
2026/05/02-08:41:11.998871 7fd7477fe6c0 Delete type=0 #584
2026/05/02-08:41:12.122041 7fd7477fe6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2026/05/02-08:41:12.122099 7fd7477fe6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
+8 -8
View File
@@ -1,8 +1,8 @@
2026/04/30-14:38:06.836968 7f3ee7fff6c0 Recovering log #573
2026/04/30-14:38:06.846980 7f3ee7fff6c0 Delete type=3 #571
2026/04/30-14:38:06.847050 7f3ee7fff6c0 Delete type=0 #573
2026/04/30-14:38:35.532186 7f3ee77fe6c0 Level-0 table #578: started
2026/04/30-14:38:35.532209 7f3ee77fe6c0 Level-0 table #578: 0 bytes OK
2026/04/30-14:38:35.538132 7f3ee77fe6c0 Delete type=0 #576
2026/04/30-14:38:35.538276 7f3ee77fe6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2026/04/30-14:38:35.538295 7f3ee77fe6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2026/05/01-23:33:08.543693 7f8fb0fbc6c0 Recovering log #577
2026/05/01-23:33:08.586596 7f8fb0fbc6c0 Delete type=3 #575
2026/05/01-23:33:08.586670 7f8fb0fbc6c0 Delete type=0 #577
2026/05/01-23:33:55.925044 7f8d1bfff6c0 Level-0 table #582: started
2026/05/01-23:33:55.925074 7f8d1bfff6c0 Level-0 table #582: 0 bytes OK
2026/05/01-23:33:55.961939 7f8d1bfff6c0 Delete type=0 #580
2026/05/01-23:33:56.035982 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2026/05/01-23:33:56.036029 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
+42
View File
@@ -410,6 +410,48 @@
}
}
.ranged-attacks {
grid-template-columns: 1fr;
.attack {
.name {
min-width: 10rem;
max-width: 10rem;
}
.damage-dice {
width: 5rem;
max-width: 5rem;
}
}
.ranged-weapon-range {
margin-top: 8px;
border-top: 1px solid var(--color-border-light-tertiary, #ccc);
padding-top: 6px;
> label {
font-weight: bold;
margin-bottom: 4px;
display: block;
}
.range-fields {
display: flex;
flex-wrap: wrap;
gap: 6px;
.range-field {
display: flex;
flex-direction: column;
align-items: center;
label {
font-size: 0.7rem;
white-space: nowrap;
}
input {
width: 3.5rem;
text-align: center;
}
}
}
}
}
.armors {
display: grid;
grid-template-columns: repeat(3, 1fr);
+30 -3
View File
@@ -101,9 +101,6 @@
<div class="numeric">
<input type="number" name="system.rangedAttacks.{{item.key}}.damageModifier" value="{{item.damageModifier}}" data-tooltip="Damage modifier"/>
</div>
<div class="range">
<input type="text" name="system.rangedAttacks.{{item.key}}.range" value="{{item.range}}" data-tooltip="Weapon range (e.g. 30/90/300 ft)" placeholder="Range" />
</div>
<div class="">
<input type="checkbox" name="system.rangedAttacks.{{item.key}}.noExplode" {{checked item.noExplode}} data-tooltip="No exploding dice on damage" />
</div>
@@ -128,6 +125,36 @@
</div>
{{/each}}
<div class="ranged-weapon-range">
<label>{{localize "LETHALFANTASY.Label.range"}}</label>
<div class="range-fields">
<div class="range-field">
<label>{{localize "LETHALFANTASY.Label.pointBlank"}}</label>
<input type="number" name="system.rangedWeaponRange.pointBlank" value="{{system.rangedWeaponRange.pointBlank}}" />
</div>
<div class="range-field">
<label>{{localize "LETHALFANTASY.Label.short"}}</label>
<input type="number" name="system.rangedWeaponRange.short" value="{{system.rangedWeaponRange.short}}" />
</div>
<div class="range-field">
<label>{{localize "LETHALFANTASY.Label.medium"}}</label>
<input type="number" name="system.rangedWeaponRange.medium" value="{{system.rangedWeaponRange.medium}}" />
</div>
<div class="range-field">
<label>{{localize "LETHALFANTASY.Label.long"}}</label>
<input type="number" name="system.rangedWeaponRange.long" value="{{system.rangedWeaponRange.long}}" />
</div>
<div class="range-field">
<label>{{localize "LETHALFANTASY.Label.extreme"}}</label>
<input type="number" name="system.rangedWeaponRange.extreme" value="{{system.rangedWeaponRange.extreme}}" />
</div>
<div class="range-field">
<label>{{localize "LETHALFANTASY.Label.outOfSkill"}}</label>
<input type="number" name="system.rangedWeaponRange.outOfSkill" value="{{system.rangedWeaponRange.outOfSkill}}" />
</div>
</div>
</div>
</div>
{{/if}}
</fieldset>