Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 42945d33db | |||
| 1bf88bac06 | |||
| 3ad5681539 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,4 +7,5 @@ styles/*.css
|
|||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
.history
|
.history
|
||||||
|
.github/
|
||||||
|
|
||||||
|
|||||||
28
lang/en.json
28
lang/en.json
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"COMBAT": {
|
"COMBAT": {
|
||||||
"Round": "Second {round}",
|
"Round": "Second {round}",
|
||||||
"Rounds": "Seconds",
|
"Rounds": "Seconds",
|
||||||
"RoundNext": "Next second"
|
"RoundNext": "Next second"
|
||||||
},
|
},
|
||||||
"LETHALFANTASY": {
|
"LETHALFANTASY": {
|
||||||
"Armor": {
|
"Armor": {
|
||||||
@@ -294,13 +294,13 @@
|
|||||||
"miracle-power": "Miracle - Power",
|
"miracle-power": "Miracle - Power",
|
||||||
"miracle-attack": "Miracle - Attack",
|
"miracle-attack": "Miracle - Attack",
|
||||||
"spell": "Spell",
|
"spell": "Spell",
|
||||||
"will":"Will",
|
"will": "Will",
|
||||||
"dodge":"Dodge",
|
"dodge": "Dodge",
|
||||||
"toughness":"Toughness",
|
"toughness": "Toughness",
|
||||||
"contagion":"Contagion",
|
"contagion": "Contagion",
|
||||||
"poison":"Poison",
|
"poison": "Poison",
|
||||||
"pain":"Pain",
|
"pain": "Pain",
|
||||||
"paincourage":"Pain/Courage",
|
"paincourage": "Pain/Courage",
|
||||||
"granted": "Granted Dice",
|
"granted": "Granted Dice",
|
||||||
"shields": "Shields",
|
"shields": "Shields",
|
||||||
"armorHitPoints": "Armor hit points",
|
"armorHitPoints": "Armor hit points",
|
||||||
@@ -320,7 +320,7 @@
|
|||||||
"aetherPoints": "Aether points",
|
"aetherPoints": "Aether points",
|
||||||
"attacks": "Attacks",
|
"attacks": "Attacks",
|
||||||
"monster": "Monster",
|
"monster": "Monster",
|
||||||
"Resist" :"Resist",
|
"Resist": "Resist",
|
||||||
"resist": "Resist",
|
"resist": "Resist",
|
||||||
"resistTorture": "Resist torture",
|
"resistTorture": "Resist torture",
|
||||||
"resistPerformance": "Resist performance",
|
"resistPerformance": "Resist performance",
|
||||||
@@ -428,7 +428,8 @@
|
|||||||
"weapons": "Weapons",
|
"weapons": "Weapons",
|
||||||
"wis": "WIS",
|
"wis": "WIS",
|
||||||
"weapon-damage-medium": "Weapon damage medium",
|
"weapon-damage-medium": "Weapon damage medium",
|
||||||
"weapon-damage-small": "Weapon damage small"
|
"weapon-damage-small": "Weapon damage small",
|
||||||
|
"combatProgressionStart": "Combat start threshold"
|
||||||
},
|
},
|
||||||
"Miracle": {
|
"Miracle": {
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
@@ -729,7 +730,8 @@
|
|||||||
"Tooltip": {
|
"Tooltip": {
|
||||||
"addEquipment": "New equipment",
|
"addEquipment": "New equipment",
|
||||||
"addSpell": "New spells",
|
"addSpell": "New spells",
|
||||||
"skill": "Skills list"
|
"skill": "Skills list",
|
||||||
|
"combatProgressionStart": "First attack of combat can succeed on a roll of 1 through this value. Resets to 1 for subsequent attacks."
|
||||||
},
|
},
|
||||||
"Vulnerability": {
|
"Vulnerability": {
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
|
|||||||
@@ -267,9 +267,13 @@ Hooks.on(hookName, (message, html, data) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Envoyer le message socket à l'utilisateur contrôlant le combatant
|
// Envoyer le message socket à l'utilisateur contrôlant le combatant
|
||||||
const owners = game.users.filter(u =>
|
// Only consider active (online) users; fall back to any active GM for unowned/GM monsters.
|
||||||
combatant.actor.testUserPermission(u, "OWNER")
|
let owners = game.users.filter(u =>
|
||||||
|
u.active && combatant.actor.testUserPermission(u, "OWNER")
|
||||||
)
|
)
|
||||||
|
if (owners.length === 0) {
|
||||||
|
owners = game.users.filter(u => u.active && u.isGM)
|
||||||
|
}
|
||||||
|
|
||||||
// Récupérer l'acteur attaquant pour vérifier qui l'a lancé
|
// Récupérer l'acteur attaquant pour vérifier qui l'a lancé
|
||||||
const attacker = game.actors.get(attackerId)
|
const attacker = game.actors.get(attackerId)
|
||||||
@@ -313,6 +317,7 @@ Hooks.on(hookName, (message, html, data) => {
|
|||||||
const attackKey = button.data("attack-key")
|
const attackKey = button.data("attack-key")
|
||||||
let attackerId = button.data("attacker-id")
|
let attackerId = button.data("attacker-id")
|
||||||
const defenderId = button.data("defender-id")
|
const defenderId = button.data("defender-id")
|
||||||
|
const defenderTokenId = button.data("defender-token-id") || null
|
||||||
const damageType = button.data("damage-type")
|
const damageType = button.data("damage-type")
|
||||||
const damageFormula = button.data("damage-formula")
|
const damageFormula = button.data("damage-formula")
|
||||||
const damageModifier = button.data("damage-modifier")
|
const damageModifier = button.data("damage-modifier")
|
||||||
@@ -327,7 +332,7 @@ Hooks.on(hookName, (message, html, data) => {
|
|||||||
|
|
||||||
// Pour les boutons de résultat de combat (monster damage)
|
// Pour les boutons de résultat de combat (monster damage)
|
||||||
if (damageType === "monster" && attackKey) {
|
if (damageType === "monster" && attackKey) {
|
||||||
await actor.system.prepareMonsterRoll("monster-damage", attackKey, undefined, undefined, undefined, defenderId)
|
await actor.system.prepareMonsterRoll("monster-damage", attackKey, undefined, undefined, undefined, defenderId, defenderTokenId)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -346,7 +351,7 @@ Hooks.on(hookName, (message, html, data) => {
|
|||||||
|
|
||||||
// Lancer les dégâts avec la bonne méthode
|
// Lancer les dégâts avec la bonne méthode
|
||||||
const rollType = damageType === "small" ? "weapon-damage-small" : "weapon-damage-medium"
|
const rollType = damageType === "small" ? "weapon-damage-small" : "weapon-damage-medium"
|
||||||
await actor.prepareRoll(rollType, weaponId, undefined, defenderId)
|
await actor.prepareRoll(rollType, weaponId, undefined, defenderId, defenderTokenId)
|
||||||
})
|
})
|
||||||
|
|
||||||
// Masquer les boutons de dommages dans les messages de résultat de combat si l'utilisateur n'est pas l'attaquant
|
// Masquer les boutons de dommages dans les messages de résultat de combat si l'utilisateur n'est pas l'attaquant
|
||||||
@@ -405,7 +410,7 @@ Hooks.on("createChatMessage", async (message) => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const { attackerId, attackRoll, attackerName, defenderName, attackWeaponId, attackRollType, attackRollKey, defenderId } = attackData
|
const { attackerId, attackRoll, attackerName, defenderName, attackWeaponId, attackRollType, attackRollKey, defenderId, defenderTokenId } = attackData
|
||||||
let defenseRoll = message.rolls[0]?.options?.rollTotal || message.rolls[0]?.total || 0
|
let defenseRoll = message.rolls[0]?.options?.rollTotal || message.rolls[0]?.total || 0
|
||||||
|
|
||||||
console.log("Processing defense:", { attackRoll, defenseRoll, attackerId, defenderId })
|
console.log("Processing defense:", { attackRoll, defenseRoll, attackerId, defenderId })
|
||||||
@@ -483,6 +488,7 @@ Hooks.on("createChatMessage", async (message) => {
|
|||||||
attackRollKey,
|
attackRollKey,
|
||||||
defenderName,
|
defenderName,
|
||||||
defenderId,
|
defenderId,
|
||||||
|
defenderTokenId,
|
||||||
defenseRoll
|
defenseRoll
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -508,7 +514,7 @@ Hooks.on("createChatMessage", async (message) => {
|
|||||||
// 1. Si l'attaquant a un propriétaire joueur, seul ce joueur applique
|
// 1. Si l'attaquant a un propriétaire joueur, seul ce joueur applique
|
||||||
// 2. Si l'attaquant n'a que le MJ comme propriétaire (monstre), seul le MJ applique
|
// 2. Si l'attaquant n'a que le MJ comme propriétaire (monstre), seul le MJ applique
|
||||||
const attackerOwners = attacker ? game.users.filter(u =>
|
const attackerOwners = attacker ? game.users.filter(u =>
|
||||||
!u.isGM && attacker.testUserPermission(u, "OWNER")
|
u.active && !u.isGM && attacker.testUserPermission(u, "OWNER")
|
||||||
) : []
|
) : []
|
||||||
|
|
||||||
let shouldApplyDamage = false
|
let shouldApplyDamage = false
|
||||||
@@ -546,12 +552,33 @@ Hooks.on("createChatMessage", async (message) => {
|
|||||||
|
|
||||||
// Calculer les DR
|
// Calculer les DR
|
||||||
const armorDR = defender.computeDamageReduction() || 0
|
const armorDR = defender.computeDamageReduction() || 0
|
||||||
|
|
||||||
// Appliquer les dégâts avec armure DR par défaut
|
|
||||||
const finalDamage = Math.max(0, damageTotal - armorDR)
|
const finalDamage = Math.max(0, damageTotal - armorDR)
|
||||||
await defender.applyDamage(-finalDamage)
|
|
||||||
|
|
||||||
// Créer un message de confirmation
|
// Prefer the token ID stored in roll options (set at attack time when the exact token is known).
|
||||||
|
// For unlinked tokens (default for monsters), this ensures we target the right instance even
|
||||||
|
// when multiple unlinked copies of the same monster type are in combat.
|
||||||
|
const rollDefenderTokenId = message.rolls[0]?.options?.defenderTokenId
|
||||||
|
const defenderCombatant = game.combat?.combatants?.find(c => c.actorId === defender.id)
|
||||||
|
const defenderTokenId = rollDefenderTokenId
|
||||||
|
?? defenderCombatant?.token?.id
|
||||||
|
?? canvas.tokens?.placeables?.find(t => t.actor?.id === defender.id)?.id
|
||||||
|
?? null
|
||||||
|
|
||||||
|
// Apply damage. If the current user does not own the defender (e.g. player hitting a GM monster),
|
||||||
|
// route the HP update to the GM via socket. The confirmation message is still created here
|
||||||
|
// since all users can create chat messages.
|
||||||
|
if (defender.isOwner) {
|
||||||
|
// Resolve the token actor: prefer lookup by token ID (exact match for unlinked monsters),
|
||||||
|
// fall back to combatant actor, then base world actor.
|
||||||
|
const tokenActor = (defenderTokenId
|
||||||
|
? canvas.tokens?.placeables?.find(t => t.id === defenderTokenId)?.actor
|
||||||
|
: defenderCombatant?.actor) ?? defender
|
||||||
|
await tokenActor.applyDamage(-finalDamage)
|
||||||
|
} else {
|
||||||
|
game.socket.emit(`system.${SYSTEM.id}`, { type: "applyDamage", actorId: defender.id, tokenId: defenderTokenId, damage: -finalDamage })
|
||||||
|
}
|
||||||
|
|
||||||
|
// Créer un message de confirmation (visible to GM only)
|
||||||
const messageContent = await foundry.applications.handlebars.renderTemplate(
|
const messageContent = await foundry.applications.handlebars.renderTemplate(
|
||||||
"systems/fvtt-lethal-fantasy/templates/damage-applied-message.hbs",
|
"systems/fvtt-lethal-fantasy/templates/damage-applied-message.hbs",
|
||||||
{
|
{
|
||||||
@@ -566,7 +593,8 @@ Hooks.on("createChatMessage", async (message) => {
|
|||||||
|
|
||||||
await ChatMessage.create({
|
await ChatMessage.create({
|
||||||
content: messageContent,
|
content: messageContent,
|
||||||
speaker: ChatMessage.getSpeaker({ actor: defender })
|
speaker: ChatMessage.getSpeaker({ actor: defender }),
|
||||||
|
whisper: ChatMessage.getWhisperRecipients("GM")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ export default class LethalFantasyActor extends Actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* *************************************************/
|
/* *************************************************/
|
||||||
async prepareRoll(rollType, rollKey, rollDice, defenderId) {
|
async prepareRoll(rollType, rollKey, rollDice, defenderId, defenderTokenId) {
|
||||||
console.log("Preparing roll", rollType, rollKey, rollDice, defenderId)
|
console.log("Preparing roll", rollType, rollKey, rollDice, defenderId)
|
||||||
let rollTarget
|
let rollTarget
|
||||||
switch (rollType) {
|
switch (rollType) {
|
||||||
@@ -268,7 +268,7 @@ export default class LethalFantasyActor extends Actor {
|
|||||||
rollTarget.magicUser = this.system.biodata.magicUser
|
rollTarget.magicUser = this.system.biodata.magicUser
|
||||||
rollTarget.actorModifiers = foundry.utils.duplicate(this.system.modifiers)
|
rollTarget.actorModifiers = foundry.utils.duplicate(this.system.modifiers)
|
||||||
rollTarget.actorLevel = this.system.biodata.level
|
rollTarget.actorLevel = this.system.biodata.level
|
||||||
await this.system.roll(rollType, rollTarget, defenderId)
|
await this.system.roll(rollType, rollTarget, defenderId, defenderTokenId)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -620,6 +620,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
rollBase.options.badResult = badResult
|
rollBase.options.badResult = badResult
|
||||||
rollBase.options.rollData = foundry.utils.duplicate(rollData)
|
rollBase.options.rollData = foundry.utils.duplicate(rollData)
|
||||||
rollBase.options.defenderId = options.defenderId
|
rollBase.options.defenderId = options.defenderId
|
||||||
|
rollBase.options.defenderTokenId = options.defenderTokenId
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A hook event that fires after the roll has been made.
|
* A hook event that fires after the roll has been made.
|
||||||
@@ -681,7 +682,15 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
rejectClose: false // Click on Close button will not launch an error
|
rejectClose: false // Click on Close button will not launch an error
|
||||||
})
|
})
|
||||||
|
|
||||||
let initRoll = new Roll(`min(${rollContext.initiativeDice}, ${options.maxInit})`, options.data, rollContext)
|
if (!rollContext) return
|
||||||
|
|
||||||
|
// When the value is a plain number (e.g. "1" for Declared Ready on Alert), wrapping it in
|
||||||
|
// min(1, maxInit) produces a dice-less formula that FoundryVTT cannot evaluate to a valid
|
||||||
|
// total. Use the constant directly; min() is only needed for actual dice expressions.
|
||||||
|
const isDiceFormula = /[dD]/.test(rollContext.initiativeDice)
|
||||||
|
const formula = isDiceFormula ? `min(${rollContext.initiativeDice}, ${options.maxInit})` : rollContext.initiativeDice
|
||||||
|
|
||||||
|
let initRoll = new Roll(formula, options.data)
|
||||||
await initRoll.evaluate()
|
await initRoll.evaluate()
|
||||||
let msg = await initRoll.toMessage({ flavor: `Initiative for ${options.actorName}` }, { rollMode: rollContext.visibility })
|
let msg = await initRoll.toMessage({ flavor: `Initiative for ${options.actorName}` }, { rollMode: rollContext.visibility })
|
||||||
if (game?.dice3d) {
|
if (game?.dice3d) {
|
||||||
@@ -690,7 +699,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
|
|
||||||
if (options.combatId && options.combatantId) {
|
if (options.combatId && options.combatantId) {
|
||||||
let combat = game.combats.get(options.combatId)
|
let combat = game.combats.get(options.combatId)
|
||||||
combat.updateEmbeddedDocuments("Combatant", [{ _id: options.combatantId, initiative: initRoll.total, 'system.progressionCount': 0 }]);
|
await combat.updateEmbeddedDocuments("Combatant", [{ _id: options.combatantId, initiative: initRoll.total, 'system.progressionCount': 0, [`flags.${SYSTEM.id}.firstActionTaken`]: false }])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -827,7 +836,11 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
let selectedItem = combatant.actor.items.find(i => i.id === selectedChoice)
|
let selectedItem = combatant.actor.items.find(i => i.id === selectedChoice)
|
||||||
// Setup flag for combat action usage
|
// Setup flag for combat action usage
|
||||||
let actionItem = foundry.utils.duplicate(selectedItem)
|
let actionItem = foundry.utils.duplicate(selectedItem)
|
||||||
actionItem.progressionCount = 1
|
// First action of this combat: use the class-based starting threshold;
|
||||||
|
// all subsequent actions reset to 1 (normal progression).
|
||||||
|
const firstActionTaken = combatant.getFlag(SYSTEM.id, "firstActionTaken")
|
||||||
|
actionItem.progressionCount = firstActionTaken ? 1 : (combatant.actor.system.combat?.combatProgressionStart ?? 1)
|
||||||
|
if (!firstActionTaken) await combatant.setFlag(SYSTEM.id, "firstActionTaken", true)
|
||||||
actionItem.rangedMode = rangedMode
|
actionItem.rangedMode = rangedMode
|
||||||
actionItem.castingTime = 1
|
actionItem.castingTime = 1
|
||||||
actionItem.spellStatus = "castingTime"
|
actionItem.spellStatus = "castingTime"
|
||||||
|
|||||||
@@ -155,6 +155,7 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod
|
|||||||
defenseBonus: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
defenseBonus: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||||
damageModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
damageModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||||
armorHitPoints: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
armorHitPoints: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||||
|
combatProgressionStart: new fields.NumberField({ ...requiredInteger, initial: 1, min: 1 }),
|
||||||
})
|
})
|
||||||
|
|
||||||
const moneyField = (label) => {
|
const moneyField = (label) => {
|
||||||
@@ -273,7 +274,7 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod
|
|||||||
* @param {"="|"+"|"++"|"-"|"--"} rollAdvantage If there is an avantage (+), a disadvantage (-), a double advantage (++), a double disadvantage (--) or a normal roll (=).
|
* @param {"="|"+"|"++"|"-"|"--"} rollAdvantage If there is an avantage (+), a disadvantage (-), a double advantage (++), a double disadvantage (--) or a normal roll (=).
|
||||||
* @returns {Promise<null>} - A promise that resolves to null if the roll is cancelled.
|
* @returns {Promise<null>} - A promise that resolves to null if the roll is cancelled.
|
||||||
*/
|
*/
|
||||||
async roll(rollType, rollTarget, defenderId) {
|
async roll(rollType, rollTarget, defenderId, defenderTokenId) {
|
||||||
const hasTarget = false
|
const hasTarget = false
|
||||||
let roll = await LethalFantasyRoll.prompt({
|
let roll = await LethalFantasyRoll.prompt({
|
||||||
rollType,
|
rollType,
|
||||||
@@ -283,7 +284,8 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod
|
|||||||
actorImage: this.parent.img,
|
actorImage: this.parent.img,
|
||||||
hasTarget,
|
hasTarget,
|
||||||
target: false,
|
target: false,
|
||||||
defenderId
|
defenderId,
|
||||||
|
defenderTokenId
|
||||||
})
|
})
|
||||||
if (!roll) return null
|
if (!roll) return null
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
|||||||
* @param {"="|"+"|"++"|"-"|"--"} rollAdvantage If there is an avantage (+), a disadvantage (-), a double advantage (++), a double disadvantage (--) or a normal roll (=).
|
* @param {"="|"+"|"++"|"-"|"--"} rollAdvantage If there is an avantage (+), a disadvantage (-), a double advantage (++), a double disadvantage (--) or a normal roll (=).
|
||||||
* @returns {Promise<null>} - A promise that resolves to null if the roll is cancelled.
|
* @returns {Promise<null>} - A promise that resolves to null if the roll is cancelled.
|
||||||
*/
|
*/
|
||||||
async roll(rollType, rollTarget, defenderId = undefined) {
|
async roll(rollType, rollTarget, defenderId = undefined, defenderTokenId = undefined) {
|
||||||
const hasTarget = false
|
const hasTarget = false
|
||||||
let roll = await LethalFantasyRoll.prompt({
|
let roll = await LethalFantasyRoll.prompt({
|
||||||
rollType,
|
rollType,
|
||||||
@@ -151,14 +151,15 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
|||||||
actorImage: this.parent.img,
|
actorImage: this.parent.img,
|
||||||
hasTarget,
|
hasTarget,
|
||||||
target: false,
|
target: false,
|
||||||
defenderId
|
defenderId,
|
||||||
|
defenderTokenId
|
||||||
})
|
})
|
||||||
if (!roll) return null
|
if (!roll) return null
|
||||||
|
|
||||||
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
||||||
}
|
}
|
||||||
|
|
||||||
async prepareMonsterRoll(rollType, rollKey, rollDice = undefined, tokenId = undefined, damageModifier = undefined, defenderId = undefined) {
|
async prepareMonsterRoll(rollType, rollKey, rollDice = undefined, tokenId = undefined, damageModifier = undefined, defenderId = undefined, defenderTokenId = undefined) {
|
||||||
let rollTarget
|
let rollTarget
|
||||||
switch (rollType) {
|
switch (rollType) {
|
||||||
case "monster-attack":
|
case "monster-attack":
|
||||||
@@ -254,7 +255,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
|||||||
if (rollTarget) {
|
if (rollTarget) {
|
||||||
rollTarget.tokenId = tokenId
|
rollTarget.tokenId = tokenId
|
||||||
console.log(rollTarget)
|
console.log(rollTarget)
|
||||||
await this.roll(rollType, rollTarget, defenderId)
|
await this.roll(rollType, rollTarget, defenderId, defenderTokenId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -113,6 +113,16 @@ export default class LethalFantasyUtils {
|
|||||||
console.log(`handleSocketEvent !`, msg)
|
console.log(`handleSocketEvent !`, msg)
|
||||||
let actor
|
let actor
|
||||||
switch (msg.type) {
|
switch (msg.type) {
|
||||||
|
case "applyDamage":
|
||||||
|
if (game.user.isGM) {
|
||||||
|
// Prefer the specific token actor (correct for unlinked monsters); fall back to world actor.
|
||||||
|
actor = msg.tokenId
|
||||||
|
? canvas.tokens?.placeables?.find(t => t.id === msg.tokenId)?.actor
|
||||||
|
: (game.combat?.combatants?.find(c => c.actorId === msg.actorId)?.actor
|
||||||
|
?? game.actors.get(msg.actorId))
|
||||||
|
if (actor) actor.applyDamage(msg.damage)
|
||||||
|
}
|
||||||
|
break
|
||||||
case "rollInitiative":
|
case "rollInitiative":
|
||||||
actor = game.actors.get(msg.actorId)
|
actor = game.actors.get(msg.actorId)
|
||||||
actor.system.rollInitiative(msg.combatId, msg.combatantId)
|
actor.system.rollInitiative(msg.combatId, msg.combatantId)
|
||||||
@@ -206,6 +216,18 @@ export default class LethalFantasyUtils {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Resolve the specific token ID now while we still have combatant/token context.
|
||||||
|
// This is passed through to the damage roll so the GM-side socket handler can find the
|
||||||
|
// correct synthetic actor for unlinked tokens (avoids wrong-instance damage with multiple
|
||||||
|
// unlinked copies of the same monster).
|
||||||
|
const defenderTokenId = (() => {
|
||||||
|
if (game.combat && combatantId) {
|
||||||
|
const cbt = game.combat.combatants.get(combatantId)
|
||||||
|
if (cbt?.token?.id) return cbt.token.id
|
||||||
|
}
|
||||||
|
return tokenId ?? canvas.tokens?.placeables?.find(t => t.actor?.id === defender.id)?.id ?? null
|
||||||
|
})()
|
||||||
|
|
||||||
const isMonster = defender.type === "monster"
|
const isMonster = defender.type === "monster"
|
||||||
|
|
||||||
// Pour les monstres, récupérer les attaques activées
|
// Pour les monstres, récupérer les attaques activées
|
||||||
@@ -267,11 +289,10 @@ export default class LethalFantasyUtils {
|
|||||||
attackWeaponId,
|
attackWeaponId,
|
||||||
attackRollType,
|
attackRollType,
|
||||||
attackRollKey,
|
attackRollKey,
|
||||||
defenderId: defender.id
|
defenderId: defender.id,
|
||||||
|
defenderTokenId
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Storing defense data for monster:", defender.id)
|
|
||||||
|
|
||||||
defender.system.prepareMonsterRoll("monster-defense", result)
|
defender.system.prepareMonsterRoll("monster-defense", result)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
@@ -337,7 +358,8 @@ export default class LethalFantasyUtils {
|
|||||||
attackWeaponId,
|
attackWeaponId,
|
||||||
attackRollType,
|
attackRollType,
|
||||||
attackRollKey,
|
attackRollKey,
|
||||||
defenderId: defender.id
|
defenderId: defender.id,
|
||||||
|
defenderTokenId
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Storing defense data for character:", defender.id)
|
console.log("Storing defense data for character:", defender.id)
|
||||||
@@ -526,10 +548,10 @@ export default class LethalFantasyUtils {
|
|||||||
if (data.attackRollType === "weapon-attack") {
|
if (data.attackRollType === "weapon-attack") {
|
||||||
damageButton = `
|
damageButton = `
|
||||||
<div class="attack-result-damage">
|
<div class="attack-result-damage">
|
||||||
<button class="roll-damage-btn" data-attacker-id="${data.attackerId}" data-defender-id="${data.defenderId}" data-weapon-id="${data.attackWeaponId}" data-damage-type="small">
|
<button class="roll-damage-btn" data-attacker-id="${data.attackerId}" data-defender-id="${data.defenderId}" data-defender-token-id="${data.defenderTokenId || ""}" data-weapon-id="${data.attackWeaponId}" data-damage-type="small">
|
||||||
<i class="fa-solid fa-dice-d6"></i> Damage (Small)
|
<i class="fa-solid fa-dice-d6"></i> Damage (Small)
|
||||||
</button>
|
</button>
|
||||||
<button class="roll-damage-btn" data-attacker-id="${data.attackerId}" data-defender-id="${data.defenderId}" data-weapon-id="${data.attackWeaponId}" data-damage-type="medium">
|
<button class="roll-damage-btn" data-attacker-id="${data.attackerId}" data-defender-id="${data.defenderId}" data-defender-token-id="${data.defenderTokenId || ""}" data-weapon-id="${data.attackWeaponId}" data-damage-type="medium">
|
||||||
<i class="fa-solid fa-dice-d20"></i> Damage (Medium)
|
<i class="fa-solid fa-dice-d20"></i> Damage (Medium)
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -537,7 +559,7 @@ export default class LethalFantasyUtils {
|
|||||||
} else if (data.attackRollType === "monster-attack") {
|
} else if (data.attackRollType === "monster-attack") {
|
||||||
damageButton = `
|
damageButton = `
|
||||||
<div class="attack-result-damage">
|
<div class="attack-result-damage">
|
||||||
<button class="roll-damage-btn" data-attacker-id="${data.attackerId}" data-defender-id="${data.defenderId}" data-attack-key="${data.attackRollKey}" data-damage-type="monster">
|
<button class="roll-damage-btn" data-attacker-id="${data.attackerId}" data-defender-id="${data.defenderId}" data-defender-token-id="${data.defenderTokenId || ""}" data-attack-key="${data.attackRollKey}" data-damage-type="monster">
|
||||||
<i class="fa-solid fa-burst"></i> Damage
|
<i class="fa-solid fa-burst"></i> Damage
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
MANIFEST-000539
|
MANIFEST-000543
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/02/06-21:03:10.117032 7f71b6ffd6c0 Recovering log #537
|
2026/04/07-20:41:02.007080 7f6820dfe6c0 Recovering log #541
|
||||||
2026/02/06-21:03:10.127068 7f71b6ffd6c0 Delete type=3 #535
|
2026/04/07-20:41:02.061052 7f6820dfe6c0 Delete type=3 #539
|
||||||
2026/02/06-21:03:10.127128 7f71b6ffd6c0 Delete type=0 #537
|
2026/04/07-20:41:02.061103 7f6820dfe6c0 Delete type=0 #541
|
||||||
2026/02/06-21:51:23.216143 7f71b67fc6c0 Level-0 table #542: started
|
2026/04/07-20:44:04.752043 7f656afef6c0 Level-0 table #546: started
|
||||||
2026/02/06-21:51:23.216190 7f71b67fc6c0 Level-0 table #542: 0 bytes OK
|
2026/04/07-20:44:04.752063 7f656afef6c0 Level-0 table #546: 0 bytes OK
|
||||||
2026/02/06-21:51:23.251149 7f71b67fc6c0 Delete type=0 #540
|
2026/04/07-20:44:04.788614 7f656afef6c0 Delete type=0 #544
|
||||||
2026/02/06-21:51:23.327713 7f71b67fc6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
2026/04/07-20:44:04.864197 7f656afef6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||||
2026/02/06-21:51:23.327750 7f71b67fc6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
2026/04/07-20:44:04.864237 7f656afef6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/02/04-08:49:16.805619 7f3bddbff6c0 Recovering log #533
|
2026/02/06-21:03:10.117032 7f71b6ffd6c0 Recovering log #537
|
||||||
2026/02/04-08:49:16.866468 7f3bddbff6c0 Delete type=3 #531
|
2026/02/06-21:03:10.127068 7f71b6ffd6c0 Delete type=3 #535
|
||||||
2026/02/04-08:49:16.866605 7f3bddbff6c0 Delete type=0 #533
|
2026/02/06-21:03:10.127128 7f71b6ffd6c0 Delete type=0 #537
|
||||||
2026/02/04-08:52:25.382505 7f3946fff6c0 Level-0 table #538: started
|
2026/02/06-21:51:23.216143 7f71b67fc6c0 Level-0 table #542: started
|
||||||
2026/02/04-08:52:25.382568 7f3946fff6c0 Level-0 table #538: 0 bytes OK
|
2026/02/06-21:51:23.216190 7f71b67fc6c0 Level-0 table #542: 0 bytes OK
|
||||||
2026/02/04-08:52:25.390046 7f3946fff6c0 Delete type=0 #536
|
2026/02/06-21:51:23.251149 7f71b67fc6c0 Delete type=0 #540
|
||||||
2026/02/04-08:52:25.403667 7f3946fff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
2026/02/06-21:51:23.327713 7f71b67fc6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||||
2026/02/04-08:52:25.403757 7f3946fff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
2026/02/06-21:51:23.327750 7f71b67fc6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
MANIFEST-000536
|
MANIFEST-000540
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/02/06-21:03:10.133019 7f71b7fff6c0 Recovering log #534
|
2026/04/07-20:41:02.075476 7f67ebfff6c0 Recovering log #538
|
||||||
2026/02/06-21:03:10.144336 7f71b7fff6c0 Delete type=3 #532
|
2026/04/07-20:41:02.123121 7f67ebfff6c0 Delete type=3 #536
|
||||||
2026/02/06-21:03:10.144427 7f71b7fff6c0 Delete type=0 #534
|
2026/04/07-20:41:02.123187 7f67ebfff6c0 Delete type=0 #538
|
||||||
2026/02/06-21:51:23.291316 7f71b67fc6c0 Level-0 table #539: started
|
2026/04/07-20:44:04.788736 7f656afef6c0 Level-0 table #543: started
|
||||||
2026/02/06-21:51:23.291356 7f71b67fc6c0 Level-0 table #539: 0 bytes OK
|
2026/04/07-20:44:04.788765 7f656afef6c0 Level-0 table #543: 0 bytes OK
|
||||||
2026/02/06-21:51:23.327518 7f71b67fc6c0 Delete type=0 #537
|
2026/04/07-20:44:04.826947 7f656afef6c0 Delete type=0 #541
|
||||||
2026/02/06-21:51:23.327733 7f71b67fc6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
2026/04/07-20:44:04.864207 7f656afef6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||||
2026/02/06-21:51:23.327757 7f71b67fc6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
2026/04/07-20:44:04.864245 7f656afef6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/02/04-08:49:16.884043 7f3bdd3fe6c0 Recovering log #530
|
2026/02/06-21:03:10.133019 7f71b7fff6c0 Recovering log #534
|
||||||
2026/02/04-08:49:16.942005 7f3bdd3fe6c0 Delete type=3 #528
|
2026/02/06-21:03:10.144336 7f71b7fff6c0 Delete type=3 #532
|
||||||
2026/02/04-08:49:16.942138 7f3bdd3fe6c0 Delete type=0 #530
|
2026/02/06-21:03:10.144427 7f71b7fff6c0 Delete type=0 #534
|
||||||
2026/02/04-08:52:25.418216 7f3946fff6c0 Level-0 table #535: started
|
2026/02/06-21:51:23.291316 7f71b67fc6c0 Level-0 table #539: started
|
||||||
2026/02/04-08:52:25.418276 7f3946fff6c0 Level-0 table #535: 0 bytes OK
|
2026/02/06-21:51:23.291356 7f71b67fc6c0 Level-0 table #539: 0 bytes OK
|
||||||
2026/02/04-08:52:25.424939 7f3946fff6c0 Delete type=0 #533
|
2026/02/06-21:51:23.327518 7f71b67fc6c0 Delete type=0 #537
|
||||||
2026/02/04-08:52:25.432353 7f3946fff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
2026/02/06-21:51:23.327733 7f71b67fc6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||||
2026/02/04-08:52:25.432442 7f3946fff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
2026/02/06-21:51:23.327757 7f71b67fc6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
MANIFEST-000541
|
MANIFEST-000545
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/02/06-21:03:10.101791 7f71b77fe6c0 Recovering log #539
|
2026/04/07-20:41:01.946718 7f67eb7fe6c0 Recovering log #543
|
||||||
2026/02/06-21:03:10.111914 7f71b77fe6c0 Delete type=3 #537
|
2026/04/07-20:41:01.999435 7f67eb7fe6c0 Delete type=3 #541
|
||||||
2026/02/06-21:03:10.111991 7f71b77fe6c0 Delete type=0 #539
|
2026/04/07-20:41:01.999504 7f67eb7fe6c0 Delete type=0 #543
|
||||||
2026/02/06-21:51:23.251285 7f71b67fc6c0 Level-0 table #544: started
|
2026/04/07-20:44:04.712609 7f656afef6c0 Level-0 table #548: started
|
||||||
2026/02/06-21:51:23.251325 7f71b67fc6c0 Level-0 table #544: 0 bytes OK
|
2026/04/07-20:44:04.712651 7f656afef6c0 Level-0 table #548: 0 bytes OK
|
||||||
2026/02/06-21:51:23.291180 7f71b67fc6c0 Delete type=0 #542
|
2026/04/07-20:44:04.751939 7f656afef6c0 Delete type=0 #546
|
||||||
2026/02/06-21:51:23.327724 7f71b67fc6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
2026/04/07-20:44:04.864184 7f656afef6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||||
2026/02/06-21:51:23.327764 7f71b67fc6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
2026/04/07-20:44:04.864223 7f656afef6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/02/04-08:49:16.723698 7f3bdcbfd6c0 Recovering log #535
|
2026/02/06-21:03:10.101791 7f71b77fe6c0 Recovering log #539
|
||||||
2026/02/04-08:49:16.780187 7f3bdcbfd6c0 Delete type=3 #533
|
2026/02/06-21:03:10.111914 7f71b77fe6c0 Delete type=3 #537
|
||||||
2026/02/04-08:49:16.780329 7f3bdcbfd6c0 Delete type=0 #535
|
2026/02/06-21:03:10.111991 7f71b77fe6c0 Delete type=0 #539
|
||||||
2026/02/04-08:52:25.375521 7f3946fff6c0 Level-0 table #540: started
|
2026/02/06-21:51:23.251285 7f71b67fc6c0 Level-0 table #544: started
|
||||||
2026/02/04-08:52:25.375622 7f3946fff6c0 Level-0 table #540: 0 bytes OK
|
2026/02/06-21:51:23.251325 7f71b67fc6c0 Level-0 table #544: 0 bytes OK
|
||||||
2026/02/04-08:52:25.382202 7f3946fff6c0 Delete type=0 #538
|
2026/02/06-21:51:23.291180 7f71b67fc6c0 Delete type=0 #542
|
||||||
2026/02/04-08:52:25.403638 7f3946fff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
2026/02/06-21:51:23.327724 7f71b67fc6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||||
2026/02/04-08:52:25.403738 7f3946fff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
2026/02/06-21:51:23.327764 7f71b67fc6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
MANIFEST-000236
|
MANIFEST-000240
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/02/06-21:03:10.160494 7f71b6ffd6c0 Recovering log #234
|
2026/04/07-20:41:02.201674 7f6820dfe6c0 Recovering log #238
|
||||||
2026/02/06-21:03:10.170771 7f71b6ffd6c0 Delete type=3 #232
|
2026/04/07-20:41:02.254572 7f6820dfe6c0 Delete type=3 #236
|
||||||
2026/02/06-21:03:10.170846 7f71b6ffd6c0 Delete type=0 #234
|
2026/04/07-20:41:02.254638 7f6820dfe6c0 Delete type=0 #238
|
||||||
2026/02/06-21:51:23.435610 7f71b67fc6c0 Level-0 table #239: started
|
2026/04/07-20:44:04.827060 7f656afef6c0 Level-0 table #243: started
|
||||||
2026/02/06-21:51:23.435649 7f71b67fc6c0 Level-0 table #239: 0 bytes OK
|
2026/04/07-20:44:04.827088 7f656afef6c0 Level-0 table #243: 0 bytes OK
|
||||||
2026/02/06-21:51:23.473038 7f71b67fc6c0 Delete type=0 #237
|
2026/04/07-20:44:04.864062 7f656afef6c0 Delete type=0 #241
|
||||||
2026/02/06-21:51:23.473211 7f71b67fc6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
2026/04/07-20:44:04.864215 7f656afef6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||||
2026/02/06-21:51:23.473250 7f71b67fc6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
2026/04/07-20:44:04.864230 7f656afef6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/02/04-08:49:17.043224 7f3bc7fff6c0 Recovering log #230
|
2026/02/06-21:03:10.160494 7f71b6ffd6c0 Recovering log #234
|
||||||
2026/02/04-08:49:17.105842 7f3bc7fff6c0 Delete type=3 #228
|
2026/02/06-21:03:10.170771 7f71b6ffd6c0 Delete type=3 #232
|
||||||
2026/02/04-08:49:17.106088 7f3bc7fff6c0 Delete type=0 #230
|
2026/02/06-21:03:10.170846 7f71b6ffd6c0 Delete type=0 #234
|
||||||
2026/02/04-08:52:25.396931 7f3946fff6c0 Level-0 table #235: started
|
2026/02/06-21:51:23.435610 7f71b67fc6c0 Level-0 table #239: started
|
||||||
2026/02/04-08:52:25.396997 7f3946fff6c0 Level-0 table #235: 0 bytes OK
|
2026/02/06-21:51:23.435649 7f71b67fc6c0 Level-0 table #239: 0 bytes OK
|
||||||
2026/02/04-08:52:25.403390 7f3946fff6c0 Delete type=0 #233
|
2026/02/06-21:51:23.473038 7f71b67fc6c0 Delete type=0 #237
|
||||||
2026/02/04-08:52:25.403717 7f3946fff6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
2026/02/06-21:51:23.473211 7f71b67fc6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||||
2026/02/04-08:52:25.403823 7f3946fff6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
2026/02/06-21:51:23.473250 7f71b67fc6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
MANIFEST-000535
|
MANIFEST-000539
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/02/06-21:03:10.146976 7f71b77fe6c0 Recovering log #533
|
2026/04/07-20:41:02.136268 7f67eb7fe6c0 Recovering log #537
|
||||||
2026/02/06-21:03:10.156549 7f71b77fe6c0 Delete type=3 #531
|
2026/04/07-20:41:02.189277 7f67eb7fe6c0 Delete type=3 #535
|
||||||
2026/02/06-21:03:10.156610 7f71b77fe6c0 Delete type=0 #533
|
2026/04/07-20:41:02.189349 7f67eb7fe6c0 Delete type=0 #537
|
||||||
2026/02/06-21:51:23.327858 7f71b67fc6c0 Level-0 table #538: started
|
2026/04/07-20:44:04.864322 7f656afef6c0 Level-0 table #542: started
|
||||||
2026/02/06-21:51:23.327892 7f71b67fc6c0 Level-0 table #538: 0 bytes OK
|
2026/04/07-20:44:04.864350 7f656afef6c0 Level-0 table #542: 0 bytes OK
|
||||||
2026/02/06-21:51:23.359727 7f71b67fc6c0 Delete type=0 #536
|
2026/04/07-20:44:04.894847 7f656afef6c0 Delete type=0 #540
|
||||||
2026/02/06-21:51:23.473179 7f71b67fc6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
2026/04/07-20:44:05.055029 7f656afef6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||||
2026/02/06-21:51:23.473221 7f71b67fc6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
2026/04/07-20:44:05.055068 7f656afef6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/02/04-08:49:16.956252 7f3bdcbfd6c0 Recovering log #529
|
2026/02/06-21:03:10.146976 7f71b77fe6c0 Recovering log #533
|
||||||
2026/02/04-08:49:17.018344 7f3bdcbfd6c0 Delete type=3 #527
|
2026/02/06-21:03:10.156549 7f71b77fe6c0 Delete type=3 #531
|
||||||
2026/02/04-08:49:17.018475 7f3bdcbfd6c0 Delete type=0 #529
|
2026/02/06-21:03:10.156610 7f71b77fe6c0 Delete type=0 #533
|
||||||
2026/02/04-08:52:25.390221 7f3946fff6c0 Level-0 table #534: started
|
2026/02/06-21:51:23.327858 7f71b67fc6c0 Level-0 table #538: started
|
||||||
2026/02/04-08:52:25.390273 7f3946fff6c0 Level-0 table #534: 0 bytes OK
|
2026/02/06-21:51:23.327892 7f71b67fc6c0 Level-0 table #538: 0 bytes OK
|
||||||
2026/02/04-08:52:25.396704 7f3946fff6c0 Delete type=0 #532
|
2026/02/06-21:51:23.359727 7f71b67fc6c0 Delete type=0 #536
|
||||||
2026/02/04-08:52:25.403694 7f3946fff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
2026/02/06-21:51:23.473179 7f71b67fc6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||||
2026/02/04-08:52:25.403801 7f3946fff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
2026/02/06-21:51:23.473221 7f71b67fc6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
Binary file not shown.
@@ -21,6 +21,11 @@
|
|||||||
<a data-action="armorHitPointsMinus"><i class="fa-solid fa-hexagon-minus"></i></a>
|
<a data-action="armorHitPointsMinus"><i class="fa-solid fa-hexagon-minus"></i></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flexrow armor-hp">
|
||||||
|
<span class="name" data-tooltip="{{localize 'LETHALFANTASY.Tooltip.combatProgressionStart'}}">{{localize "LETHALFANTASY.Label.combatProgressionStart"}}</span>
|
||||||
|
{{formInput systemFields.combat.fields.combatProgressionStart value=system.combat.combatProgressionStart disabled=isPlayMode }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="flexrow granted">
|
<div class="flexrow granted">
|
||||||
<span class="">{{localize
|
<span class="">{{localize
|
||||||
"LETHALFANTASY.Label.grantedAttackDice"}}</a></span>
|
"LETHALFANTASY.Label.grantedAttackDice"}}</a></span>
|
||||||
|
|||||||
Reference in New Issue
Block a user