Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 96306623e5 | |||
| 7279cd752d | |||
| db3e8b5d35 |
@@ -2634,6 +2634,21 @@ i.lethalfantasy {
|
||||
max-width: 8rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
.dialog-warning {
|
||||
margin: 0.4rem 0.2rem 0.2rem;
|
||||
padding: 0.35rem 0.5rem;
|
||||
border-left: 3px solid #c8941a;
|
||||
background: rgba(200, 148, 26, 0.12);
|
||||
border-radius: 3px;
|
||||
font-family: var(--font-secondary);
|
||||
font-size: calc(var(--font-size-standard) * 0.9);
|
||||
color: #7a5400;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.dialog-warning i {
|
||||
color: #c8941a;
|
||||
margin-right: 0.4rem;
|
||||
}
|
||||
.lethalfantasy.dice-roll,
|
||||
.fvtt-lethal-fantasy.dice-roll,
|
||||
.message.lethalfantasy.dice-roll,
|
||||
|
||||
+66
-3
@@ -507,7 +507,40 @@
|
||||
"weapon-damage-small": "Weapon damage small",
|
||||
"combatProgressionStart": "Combat start threshold",
|
||||
"miracle": "Miracle",
|
||||
"titleStandard": "Standard Roll"
|
||||
"titleStandard": "Standard Roll",
|
||||
"privateRoll": "Private Roll",
|
||||
"current": "Current",
|
||||
"max": "Max",
|
||||
"speed": "Speed",
|
||||
"bonuses": "Bonuses",
|
||||
"handToHandAttacks": "Hand To Hand Attacks",
|
||||
"beyondSkill": "Beyond Skill",
|
||||
"letItFly": "Let It Fly!",
|
||||
"class": "Class",
|
||||
"mortal": "Mortal",
|
||||
"alignment": "Alignment",
|
||||
"age": "Age",
|
||||
"height": "Height",
|
||||
"weight": "Weight",
|
||||
"eyes": "Eyes",
|
||||
"hair": "Hair",
|
||||
"magicUser": "Magic User",
|
||||
"clericUser": "Cleric User",
|
||||
"lastHdRoll": "Last HD roll",
|
||||
"naturalDR": "Natural DR",
|
||||
"magicalDR": "Magical DR",
|
||||
"saveBonus": "Save bonus (1/5 levels)",
|
||||
"spellBonus": "Spell bonus (1/5 levels)",
|
||||
"miracleBonus": "Miracle bonus (1/5 levels)",
|
||||
"devPointsTotal": "Dev. Points (Total)",
|
||||
"devPointsRem": "Dev. Points (Rem.)",
|
||||
"length": "Length",
|
||||
"vision": "Vision",
|
||||
"damageType": "Damage Type",
|
||||
"components": "Components",
|
||||
"coverRanged": "Cover vs ranged attacks",
|
||||
"standing": "Standing",
|
||||
"crouching": "Crouching"
|
||||
},
|
||||
"Miracle": {
|
||||
"FIELDS": {
|
||||
@@ -563,6 +596,15 @@
|
||||
},
|
||||
"savingThrow": {
|
||||
"label": "Saving throw"
|
||||
},
|
||||
"damageDiceOverpowered": {
|
||||
"label": "Overpowered Damage Dice"
|
||||
},
|
||||
"damageDiceOverpowered2": {
|
||||
"label": "Overpowered 2 Damage Dice"
|
||||
},
|
||||
"damageDice": {
|
||||
"label": "Damage Dice"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -684,7 +726,8 @@
|
||||
"label": "Min"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"autoDestruction": "Auto-Destruction"
|
||||
},
|
||||
"Skill": {
|
||||
"Category": {
|
||||
@@ -809,6 +852,12 @@
|
||||
},
|
||||
"damageDice": {
|
||||
"label": "Damage dice"
|
||||
},
|
||||
"damageDiceOverpowered": {
|
||||
"label": "Overpowered Damage Dice"
|
||||
},
|
||||
"damageDiceOverpowered2": {
|
||||
"label": "Overpowered 2 Damage Dice"
|
||||
}
|
||||
},
|
||||
"Range": {
|
||||
@@ -843,7 +892,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Warning": {},
|
||||
"Warning": {
|
||||
"defenseShieldOrder": "To avoid a hit without using the shield, roll Grit or Luck first — then roll the shield."
|
||||
},
|
||||
"Weapon": {
|
||||
"FIELDS": {
|
||||
"isAgile": {
|
||||
@@ -988,6 +1039,18 @@
|
||||
"diceResult": "Dice result",
|
||||
"progressionCount": "Progression count:"
|
||||
},
|
||||
"Combat": {
|
||||
"RollMonsters": "Roll Monsters",
|
||||
"monstersNotRolledTitle": "Monsters Not Rolled",
|
||||
"monstersNotRolledMsg": "Monsters have not rolled this second. Proceed anyway?",
|
||||
"proceedYes": "Proceed",
|
||||
"proceedNo": "Cancel",
|
||||
"spellDRDialogTitle": "Spell Damage — Apply DR?",
|
||||
"spellDRDialogMsg": "Enter a damage reduction value to subtract, or click No DR to apply full damage.",
|
||||
"spellDRLabel": "DR:",
|
||||
"spellNoDR": "No DR",
|
||||
"spellApplyDR": "Apply DR"
|
||||
},
|
||||
"EquipmentCategories": {
|
||||
"ClassKit": "Class Kit",
|
||||
"Clothing": "Clothing",
|
||||
|
||||
+104
-100
@@ -129,93 +129,76 @@ Hooks.once("ready", function () {
|
||||
}
|
||||
})
|
||||
|
||||
// Test if version below 13
|
||||
let hookName = "renderChatMessage"
|
||||
if (foundry.utils.isNewerVersion(game.version, "12.0",)) {
|
||||
hookName = "renderChatMessageHTML"
|
||||
}
|
||||
Hooks.on(hookName, (message, html, data) => {
|
||||
Hooks.on("renderChatMessageHTML", (message, html, data) => {
|
||||
const typeMessage = data.message.flags.lethalFantasy?.typeMessage
|
||||
// Message de demande de jet de dés
|
||||
if (typeMessage === "askRoll") {
|
||||
// Affichage des boutons de jet de dés uniquement pour les joueurs
|
||||
if (game.user.isGM) {
|
||||
html.find(".ask-roll-dice").each((i, btn) => {
|
||||
for (const btn of html.querySelectorAll(".ask-roll-dice")) {
|
||||
btn.style.display = "none"
|
||||
})
|
||||
}
|
||||
} else {
|
||||
html.find(".ask-roll-dice").click((event) => {
|
||||
const btn = $(event.currentTarget)
|
||||
const type = btn.data("type")
|
||||
const value = btn.data("value")
|
||||
const avantage = btn.data("avantage") ?? "="
|
||||
for (const btn of html.querySelectorAll(".ask-roll-dice")) {
|
||||
btn.addEventListener("click", () => {
|
||||
const type = btn.dataset.type
|
||||
const value = btn.dataset.value
|
||||
const avantage = btn.dataset.avantage ?? "="
|
||||
const character = game.user.character
|
||||
if (type === SYSTEM.ROLL_TYPE.RESOURCE) character.rollResource(value)
|
||||
else if (type === SYSTEM.ROLL_TYPE.SAVE) character.rollSave(value, avantage)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Gestion du survol et du clic sur les boutons de dégâts pour les GMs
|
||||
if (game.user.isGM) {
|
||||
// Show damage buttons only for GM
|
||||
$(html).find(".li-apply-wounds").each((i, btn) => {
|
||||
for (const btn of html.querySelectorAll(".li-apply-wounds")) {
|
||||
btn.style.display = "block"
|
||||
})
|
||||
}
|
||||
|
||||
$(html).find(".apply-wounds-btn").hover(
|
||||
function (event) {
|
||||
// Mouse enter - select the token and pan to it
|
||||
let combatantId = $(this).data("combatant-id")
|
||||
for (const btn of html.querySelectorAll(".apply-wounds-btn")) {
|
||||
btn.addEventListener("mouseenter", () => {
|
||||
const combatantId = btn.dataset.combatantId
|
||||
if (combatantId && game.combat) {
|
||||
let combatant = game.combat.combatants.get(combatantId)
|
||||
const combatant = game.combat.combatants.get(combatantId)
|
||||
if (combatant?.token) {
|
||||
let token = canvas.tokens.get(combatant.token.id)
|
||||
const token = canvas.tokens.get(combatant.token.id)
|
||||
if (token) {
|
||||
token.control({ releaseOthers: true })
|
||||
canvas.animatePan(token.center)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
function (event) {
|
||||
// Mouse leave - release selection
|
||||
canvas.tokens.releaseAll()
|
||||
}
|
||||
)
|
||||
|
||||
$(html).find(".apply-wounds-btn").click((event) => {
|
||||
LethalFantasyUtils.applyDamage(message, event)
|
||||
})
|
||||
btn.addEventListener("mouseleave", () => canvas.tokens.releaseAll())
|
||||
btn.addEventListener("click", event => LethalFantasyUtils.applyDamage(message, event))
|
||||
}
|
||||
}
|
||||
|
||||
// Gestion du survol et du clic sur les boutons de défense
|
||||
$(html).find(".request-defense-btn").hover(
|
||||
function (event) {
|
||||
// Mouse enter - select the token and pan to it
|
||||
let tokenId = $(this).data("token-id")
|
||||
for (const btn of html.querySelectorAll(".request-defense-btn")) {
|
||||
btn.addEventListener("mouseenter", () => {
|
||||
const tokenId = btn.dataset.tokenId
|
||||
if (tokenId) {
|
||||
let token = canvas.tokens.get(tokenId)
|
||||
const token = canvas.tokens.get(tokenId)
|
||||
if (token) {
|
||||
token.control({ releaseOthers: true })
|
||||
canvas.animatePan(token.center)
|
||||
}
|
||||
}
|
||||
},
|
||||
function (event) {
|
||||
// Mouse leave - release selection
|
||||
canvas.tokens.releaseAll()
|
||||
}
|
||||
)
|
||||
})
|
||||
btn.addEventListener("mouseleave", () => canvas.tokens.releaseAll())
|
||||
|
||||
// Gestionnaire pour les boutons de demande de défense
|
||||
$(html).find(".request-defense-btn").off("click").on("click", (event) => {
|
||||
btn.addEventListener("click", event => {
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
|
||||
const button = $(event.currentTarget)
|
||||
const combatantId = button.data("combatant-id")
|
||||
const tokenId = button.data("token-id")
|
||||
const combatantId = btn.dataset.combatantId
|
||||
const tokenId = btn.dataset.tokenId
|
||||
|
||||
// Récupérer le combattant soit du combat, soit directement du token
|
||||
let combatant = null
|
||||
@@ -276,27 +259,25 @@ Hooks.on(hookName, (message, html, data) => {
|
||||
|
||||
const defenseMsg = {
|
||||
type: "requestDefense",
|
||||
attackerName: attackerName,
|
||||
attackerId: attackerId,
|
||||
defenderName: defenderName,
|
||||
weaponName: weaponName,
|
||||
attackRoll: attackRoll,
|
||||
attackWeaponId: attackWeaponId,
|
||||
attackRollType: attackRollType,
|
||||
attackRollKey: attackRollKey,
|
||||
attackD30result: attackD30result,
|
||||
attackD30message: attackD30message,
|
||||
attackRerollContext: attackRerollContext,
|
||||
combatantId: combatantId,
|
||||
tokenId: tokenId,
|
||||
attackerName,
|
||||
attackerId,
|
||||
defenderName,
|
||||
weaponName,
|
||||
attackRoll,
|
||||
attackWeaponId,
|
||||
attackRollType,
|
||||
attackRollKey,
|
||||
attackD30result,
|
||||
attackD30message,
|
||||
attackRerollContext,
|
||||
combatantId,
|
||||
tokenId,
|
||||
isRanged: isRangedAttack
|
||||
}
|
||||
|
||||
// Envoyer le message socket à l'utilisateur contrôlant le combatant
|
||||
// Only consider active (online) users; fall back to any active GM for unowned/GM monsters.
|
||||
let owners = game.users.filter(u =>
|
||||
u.active && 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)
|
||||
}
|
||||
@@ -322,10 +303,7 @@ Hooks.on(hookName, (message, html, data) => {
|
||||
messageSent = true
|
||||
} else {
|
||||
// Sinon, envoyer via socket
|
||||
game.socket.emit(`system.${SYSTEM.id}`, {
|
||||
...defenseMsg,
|
||||
userId: owner.id
|
||||
})
|
||||
game.socket.emit(`system.${SYSTEM.id}`, { ...defenseMsg, userId: owner.id })
|
||||
messageSent = true
|
||||
}
|
||||
})
|
||||
@@ -335,47 +313,74 @@ Hooks.on(hookName, (message, html, data) => {
|
||||
ui.notifications.info(`Defense request sent to ${defenderName}'s controller`)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Gestionnaire pour les boutons de jet de dégâts (armes et résultats de combat)
|
||||
$(html).find(".damage-roll-btn, .roll-damage-btn").off("click").on("click", async (event) => {
|
||||
for (const btn of html.querySelectorAll(".damage-roll-btn, .roll-damage-btn")) {
|
||||
btn.addEventListener("click", async event => {
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
|
||||
const button = $(event.currentTarget)
|
||||
const weaponId = button.data("weapon-id")
|
||||
const attackKey = button.data("attack-key")
|
||||
let attackerId = button.data("attacker-id")
|
||||
const defenderId = button.data("defender-id")
|
||||
const defenderTokenId = button.data("defender-token-id") || null
|
||||
const extraShieldDr = Number(button.data("extra-shield-dr") || 0)
|
||||
const damageType = button.data("damage-type")
|
||||
const damageFormula = button.data("damage-formula")
|
||||
const damageModifier = button.data("damage-modifier")
|
||||
const isMonster = button.data("is-monster")
|
||||
const weaponId = btn.dataset.weaponId
|
||||
const attackKey = btn.dataset.attackKey
|
||||
const attackerId = btn.dataset.attackerId
|
||||
const defenderId = btn.dataset.defenderId
|
||||
const defenderTokenId = btn.dataset.defenderTokenId || null
|
||||
const extraShieldDr = Number(btn.dataset.extraShieldDr || 0)
|
||||
const damageType = btn.dataset.damageType
|
||||
const damageFormula = btn.dataset.damageFormula
|
||||
const damageModifier = btn.dataset.damageModifier
|
||||
const isMonster = btn.dataset.isMonster
|
||||
|
||||
// Récupérer l'acteur (soit depuis le message, soit depuis attackerId)
|
||||
let actor = attackerId ? game.actors.get(attackerId) : game.actors.get(message.rolls[0]?.actorId)
|
||||
const actor = attackerId ? game.actors.get(attackerId) : game.actors.get(message.rolls[0]?.actorId)
|
||||
if (!actor) {
|
||||
ui.notifications.error("Actor not found")
|
||||
return
|
||||
}
|
||||
|
||||
// Pour les sorts, rouler les dés de dégâts avec option bypass DR
|
||||
// Pour les sorts, rouler les dés de dégâts avec DR manuelle optionnelle
|
||||
if (damageType === "spell" && damageFormula) {
|
||||
const bypassArmor = await foundry.applications.api.DialogV2.confirm({
|
||||
window: { title: "Spell Damage" },
|
||||
const manualDR = await foundry.applications.api.DialogV2.wait({
|
||||
window: { title: game.i18n.localize("LETHALFANTASY.Combat.spellDRDialogTitle") },
|
||||
classes: ["lethalfantasy"],
|
||||
content: "<p>Does this spell's damage bypass armor DR?</p>",
|
||||
yes: { label: "Yes (ignore armor)", icon: "fa-solid fa-wand-magic-sparkles" },
|
||||
no: { label: "No (apply armor DR)", icon: "fa-solid fa-shield" }
|
||||
position: { width: 320 },
|
||||
content: `<div style="padding:0.5rem 0">
|
||||
<p style="margin-bottom:0.6rem">${game.i18n.localize("LETHALFANTASY.Combat.spellDRDialogMsg")}</p>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem">
|
||||
<label style="font-weight:bold">${game.i18n.localize("LETHALFANTASY.Combat.spellDRLabel")}</label>
|
||||
<input type="number" name="manualDr" value="0" min="0" style="width:5rem"/>
|
||||
</div>
|
||||
</div>`,
|
||||
buttons: [
|
||||
{
|
||||
action: "noDR",
|
||||
label: game.i18n.localize("LETHALFANTASY.Combat.spellNoDR"),
|
||||
icon: "fa-solid fa-wand-magic-sparkles",
|
||||
callback: () => 0
|
||||
},
|
||||
{
|
||||
action: "applyDR",
|
||||
label: game.i18n.localize("LETHALFANTASY.Combat.spellApplyDR"),
|
||||
icon: "fa-solid fa-shield",
|
||||
callback: (event, button, dialog) => Number(dialog.querySelector("[name='manualDr']")?.value) || 0
|
||||
},
|
||||
{
|
||||
action: "cancel",
|
||||
label: game.i18n.localize("LETHALFANTASY.Combat.proceedNo"),
|
||||
callback: () => null
|
||||
}
|
||||
],
|
||||
rejectClose: false
|
||||
})
|
||||
if (manualDR === null) return
|
||||
const rollOpts = {
|
||||
type: "spell-damage",
|
||||
rollType: "spell-damage",
|
||||
rollName: damageFormula,
|
||||
isDamage: true,
|
||||
rollData: { isDamage: true },
|
||||
bypassArmor: bypassArmor ?? false,
|
||||
manualDR: manualDR,
|
||||
defenderId,
|
||||
defenderTokenId,
|
||||
actorId: actor.id,
|
||||
@@ -413,26 +418,21 @@ Hooks.on(hookName, (message, html, data) => {
|
||||
const rollType = damageType === "small" ? "weapon-damage-small" : "weapon-damage-medium"
|
||||
await actor.prepareRoll(rollType, weaponId, undefined, defenderId, defenderTokenId, extraShieldDr)
|
||||
})
|
||||
}
|
||||
|
||||
// Masquer les boutons de dommages dans les messages de résultat de combat si l'utilisateur n'est pas l'attaquant
|
||||
$(html).find(".roll-damage-btn").each(function() {
|
||||
const button = $(this)
|
||||
const attackerId = button.data("attacker-id")
|
||||
|
||||
for (const btn of html.querySelectorAll(".roll-damage-btn")) {
|
||||
const attackerId = btn.dataset.attackerId
|
||||
if (attackerId) {
|
||||
const attacker = game.actors.get(attackerId)
|
||||
// Masquer le bouton si l'utilisateur n'est pas GM et ne possède pas l'attaquant
|
||||
if (!game.user.isGM && !attacker?.testUserPermission(game.user, "OWNER")) {
|
||||
button.hide()
|
||||
btn.style.display = "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Hooks.on("getCombatTrackerEntryContext", (html, options) => {
|
||||
LethalFantasyUtils.pushCombatOptions(html, options);
|
||||
});
|
||||
|
||||
// Hook pour ajouter les données d'attaque au message de défense
|
||||
Hooks.on("preCreateChatMessage", (message) => {
|
||||
const rollType = message.rolls[0]?.options?.rollType
|
||||
@@ -948,12 +948,14 @@ Hooks.on("createChatMessage", async (message) => {
|
||||
const damageTotal = message.rolls[0]?.options?.rollTotal || message.rolls[0]?.total || 0
|
||||
const weaponName = message.rolls[0]?.options?.rollName || "Unknown Weapon"
|
||||
const attackerName = message.rolls[0]?.options?.actorName || "Unknown Attacker"
|
||||
const rollType = message.rolls[0]?.options?.rollType
|
||||
|
||||
// Calculer les DR
|
||||
const bypassArmor = message.rolls[0]?.options?.bypassArmor || false
|
||||
const armorDR = bypassArmor ? 0 : (defender.computeDamageReduction() || 0)
|
||||
// Calculer les DR — les sorts utilisent une DR manuelle saisie par l'utilisateur
|
||||
const isSpellDamage = rollType === "spell-damage"
|
||||
const manualDR = message.rolls[0]?.options?.manualDR ?? 0
|
||||
const extraShieldDr = Number(message.rolls[0]?.options?.extraShieldDr) || 0
|
||||
const totalDR = armorDR + extraShieldDr
|
||||
const armorDR = isSpellDamage ? manualDR : (defender.computeDamageReduction() || 0)
|
||||
const totalDR = isSpellDamage ? manualDR : armorDR + extraShieldDr
|
||||
const finalDamage = Math.max(0, damageTotal - totalDR)
|
||||
|
||||
// Prefer the token ID stored in roll options (set at attack time when the exact token is known).
|
||||
@@ -986,7 +988,9 @@ Hooks.on("createChatMessage", async (message) => {
|
||||
{
|
||||
targetName: defender.name,
|
||||
damage: finalDamage,
|
||||
drText: bypassArmor ? "Armor DR bypassed (spell)" : (totalDR > 0 ? `Armor DR: ${armorDR}${extraShieldDr > 0 ? ` + Shield DR: ${extraShieldDr}` : ""}` : ""),
|
||||
drText: isSpellDamage
|
||||
? (manualDR > 0 ? `Spell DR: ${manualDR}` : "No DR applied")
|
||||
: (totalDR > 0 ? `Armor DR: ${armorDR}${extraShieldDr > 0 ? ` + Shield DR: ${extraShieldDr}` : ""}` : ""),
|
||||
weaponName: weaponName,
|
||||
attackerName: attackerName,
|
||||
rawDamage: damageTotal
|
||||
|
||||
@@ -18,6 +18,7 @@ export class LethalFantasyCombatTracker extends foundry.applications.sidebar.tab
|
||||
actions: {
|
||||
initiativePlus: LethalFantasyCombatTracker.#initiativePlus,
|
||||
initiativeMinus: LethalFantasyCombatTracker.#initiativeMinus,
|
||||
rollMonsterProgression: LethalFantasyCombatTracker.#rollMonsterProgression,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -49,6 +50,15 @@ export class LethalFantasyCombatTracker extends foundry.applications.sidebar.tab
|
||||
c.update({ 'initiative': newInit });
|
||||
}
|
||||
|
||||
/**
|
||||
* Roll progression dice for all monster combatants that are eligible this round.
|
||||
* @param {Event} ev Click event.
|
||||
*/
|
||||
static async #rollMonsterProgression(ev) {
|
||||
ev.preventDefault();
|
||||
await game.combat.rollMonsterProgression();
|
||||
}
|
||||
|
||||
activateListeners(html) {
|
||||
super.activateListeners(html);
|
||||
// Display Combat settings
|
||||
@@ -109,18 +119,12 @@ export class LethalFantasyCombat extends Combat {
|
||||
}
|
||||
|
||||
async rollInitiative(ids, options) {
|
||||
console.log("%%%%%%%%% Roll Initiative", ids, options);
|
||||
|
||||
ids = typeof ids === "string" ? [ids] : ids;
|
||||
let messages = [];
|
||||
let rollMode = game.settings.get("core", "rollMode");
|
||||
|
||||
let updates = [];
|
||||
for (let cId of ids) {
|
||||
const c = this.combatants.get(cId);
|
||||
const playerOwner = game.users.find(u => u.active && !u.isGM && u.character?.id === c.actor.id);
|
||||
if (game.user.isGM && playerOwner) {
|
||||
console.log("Rolling initiative for", c.actor.name);
|
||||
game.socket.emit(`system.${SYSTEM.id}`, { type: "rollInitiative", userId: playerOwner.id, actorId: c.actor.id, combatId: this.id, combatantId: c.id });
|
||||
} else {
|
||||
await c.actor.system.rollInitiative(this.id, c.id);
|
||||
@@ -130,6 +134,36 @@ export class LethalFantasyCombat extends Combat {
|
||||
return this;
|
||||
}
|
||||
|
||||
/** Roll progression dice for all eligible monster combatants this round. Called manually by the GM. */
|
||||
async rollMonsterProgression() {
|
||||
const currentRound = this.round;
|
||||
const monsters = this.combatants.filter(c => c.actor?.type === "monster" && !c.isDefeated);
|
||||
|
||||
if (monsters.length === 0) {
|
||||
ui.notifications.warn("No monsters in combat.");
|
||||
return;
|
||||
}
|
||||
|
||||
let rolled = 0;
|
||||
for (let c of monsters) {
|
||||
if (c.initiative !== null && currentRound >= c.initiative) {
|
||||
await c.actor.system.rollProgressionDice(this.id, c.id);
|
||||
rolled++;
|
||||
}
|
||||
}
|
||||
|
||||
if (rolled === 0) {
|
||||
const earliest = monsters.reduce((min, c) => (c.initiative !== null && c.initiative < min) ? c.initiative : min, Infinity);
|
||||
if (earliest === Infinity) {
|
||||
ui.notifications.warn("Monsters have no initiative set. Roll initiative first.");
|
||||
} else {
|
||||
ui.notifications.info(`No monsters act yet — earliest monster initiative is ${earliest} (current round: ${currentRound}).`);
|
||||
}
|
||||
} else {
|
||||
this._monsterProgressionRolledRound = currentRound;
|
||||
}
|
||||
}
|
||||
|
||||
resetProgression(cId) {
|
||||
let c = this.combatants.get(cId);
|
||||
c.update({ 'system.progressionCount': 0 });
|
||||
@@ -151,15 +185,12 @@ export class LethalFantasyCombat extends Combat {
|
||||
}
|
||||
|
||||
async nextTurn() {
|
||||
console.log("NEXT TURN");
|
||||
|
||||
let turn = this.turn ?? -1;
|
||||
let skipDefeated = this.settings.skipDefeated;
|
||||
|
||||
// Determine the next turn number
|
||||
let next = null;
|
||||
for (let [i, t] of this.turns.entries()) {
|
||||
console.log("Turn", t);
|
||||
if (i <= turn) continue;
|
||||
if (skipDefeated && t.isDefeated) continue;
|
||||
next = i;
|
||||
@@ -183,7 +214,6 @@ export class LethalFantasyCombat extends Combat {
|
||||
this.turnsDone = false
|
||||
|
||||
let turn = this.turn === null ? null : 0; // Preserve the fact that it's no-one's turn currently.
|
||||
console.log("ROUND", this);
|
||||
|
||||
let advanceTime = Math.max(this.turns.length - this.turn, 0) * CONFIG.time.turnTime;
|
||||
advanceTime += CONFIG.time.roundTime;
|
||||
@@ -201,8 +231,24 @@ export class LethalFantasyCombat extends Combat {
|
||||
return this;
|
||||
}
|
||||
|
||||
// Warn if eligible monsters have not rolled progression dice this round
|
||||
const eligibleMonsters = this.combatants.filter(
|
||||
c => c.actor?.type === "monster" && !c.isDefeated && c.initiative !== null && this.round >= c.initiative
|
||||
);
|
||||
if (eligibleMonsters.length > 0 && this._monsterProgressionRolledRound !== this.round) {
|
||||
const proceed = await foundry.applications.api.DialogV2.confirm({
|
||||
window: { title: game.i18n.localize("LETHALFANTASY.Combat.monstersNotRolledTitle") },
|
||||
content: `<p>${game.i18n.localize("LETHALFANTASY.Combat.monstersNotRolledMsg")}</p>`,
|
||||
yes: { label: game.i18n.localize("LETHALFANTASY.Combat.proceedYes") },
|
||||
no: { label: game.i18n.localize("LETHALFANTASY.Combat.proceedNo") },
|
||||
rejectClose: false,
|
||||
});
|
||||
if (!proceed) return this;
|
||||
}
|
||||
|
||||
for (let c of this.combatants) {
|
||||
if (nextRound >= c.initiative) {
|
||||
if (c.actor.type === "monster") continue; // Monsters roll manually via the "Roll Monsters" button
|
||||
const playerOwner = game.users.find(u => u.active && !u.isGM && u.character?.id === c.actor.id);
|
||||
if (game.user.isGM && playerOwner) {
|
||||
game.socket.emit(`system.${SYSTEM.id}`, { type: "rollProgressionDice", userId: playerOwner.id, progressionCount: c.system.progressionCount + 1, actorId: c.actor.id, combatId: this.id, combatantId: c.id });
|
||||
|
||||
@@ -142,11 +142,14 @@ export async function rollFreeDie(dieType, count = 1, explode = false) {
|
||||
`
|
||||
|
||||
const rollMode = game.settings.get("core", "rollMode")
|
||||
// Normalize old-style rollMode keys (v12/v13) to new-style (v14), fallback to "public"
|
||||
const modeMap = { publicroll: "public", gmroll: "gm", blindroll: "blind", selfroll: "self" }
|
||||
const mode = modeMap[rollMode] ?? rollMode ?? "public"
|
||||
const msgData = {
|
||||
speaker: ChatMessage.getSpeaker(),
|
||||
content,
|
||||
sound: CONFIG.sounds.dice,
|
||||
mode,
|
||||
}
|
||||
ChatMessage.applyRollMode(msgData, rollMode)
|
||||
await ChatMessage.create(msgData)
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ export default class LethalFantasyCharacterSheet extends LethalFantasyActorSheet
|
||||
})
|
||||
if (!roll) return null
|
||||
|
||||
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
||||
await roll.toMessage({}, { messageMode: roll.options.rollMode })
|
||||
}
|
||||
|
||||
static async #onRollInitiative(event, target) {
|
||||
@@ -259,9 +259,11 @@ export default class LethalFantasyCharacterSheet extends LethalFantasyActorSheet
|
||||
|
||||
async _onRoll(event, target) {
|
||||
if (this.isEditMode) return
|
||||
const rollType = event.target.dataset.rollType
|
||||
let rollKey = event.target.dataset.rollKey;
|
||||
let rollDice = event.target.dataset?.rollDice;
|
||||
const el = event.currentTarget
|
||||
const rollType = el.dataset.rollType
|
||||
if (!rollType) return
|
||||
let rollKey = el.dataset.rollKey
|
||||
let rollDice = el.dataset.rollDice
|
||||
|
||||
this.actor.prepareRoll(rollType, rollKey, rollDice)
|
||||
|
||||
|
||||
@@ -111,11 +111,13 @@ export default class LethalFantasyMonsterSheet extends LethalFantasyActorSheet {
|
||||
})
|
||||
if (!roll) return null
|
||||
|
||||
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
||||
await roll.toMessage({}, { messageMode: roll.options.rollMode })
|
||||
}
|
||||
|
||||
static async #onRollInitiative(event, target) {
|
||||
await this.document.system.rollInitiative(event, target)
|
||||
const combat = game.combat
|
||||
const combatant = combat?.combatants.find(c => c.actorId === this.document.id)
|
||||
await this.document.system.rollInitiative(combat?.id, combatant?.id)
|
||||
}
|
||||
|
||||
getBestWeaponClassSkill(skills, rollType, multiplier = 1.0) {
|
||||
|
||||
@@ -279,7 +279,7 @@ export default class LethalFantasyActor extends Actor {
|
||||
break
|
||||
default:
|
||||
ui.notifications.error(game.i18n.localize("LETHALFANTASY.Notifications.rollTypeNotFound") + String(rollType))
|
||||
break
|
||||
return
|
||||
}
|
||||
|
||||
// In all cases
|
||||
|
||||
+13
-11
@@ -320,8 +320,8 @@ export default class LethalFantasyRoll extends Roll {
|
||||
hasModifier = false
|
||||
}
|
||||
|
||||
const rollModes = foundry.utils.duplicate(CONFIG.Dice.rollModes); // v12 : Object.fromEntries(Object.entries(CONFIG.Dice.rollModes).map(([key, value]) => [key, game.i18n.localize(value)]))
|
||||
console.log("Roll mode", rollModes)
|
||||
const rollModes = foundry.utils.duplicate(CONFIG.ChatMessage.modes);
|
||||
|
||||
|
||||
const fieldRollMode = new foundry.data.fields.StringField({
|
||||
choices: rollModes,
|
||||
@@ -370,7 +370,9 @@ export default class LethalFantasyRoll extends Roll {
|
||||
beyondSkill = !!rollContext.beyondSkill
|
||||
letItFly = !!rollContext.letItFly
|
||||
saveSpell = !!rollContext.saveSpell
|
||||
rollContext.visibility ||= rollContext.rollMode || game.settings.get("core", "rollMode")
|
||||
const _rawMode = rollContext.rollMode || game.settings.get("core", "rollMode")
|
||||
const _modeMap = { publicroll: "public", gmroll: "gm", blindroll: "blind", selfroll: "self" }
|
||||
rollContext.visibility ||= _modeMap[_rawMode] ?? _rawMode ?? "public"
|
||||
rollContext.modifier ||= modifier
|
||||
rollContext.favor ||= "none"
|
||||
rollContext.changeDice ||= `${dice}`
|
||||
@@ -676,7 +678,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
|
||||
/* ***********************************************************/
|
||||
static async promptInitiative(options = {}) {
|
||||
const rollModes = foundry.utils.duplicate(CONFIG.Dice.rollModes); // v12 : Object.fromEntries(Object.entries(CONFIG.Dice.rollModes).map(([key, value]) => [key, game.i18n.localize(value)]))
|
||||
const rollModes = foundry.utils.duplicate(CONFIG.ChatMessage.modes); // v12 : Object.fromEntries(Object.entries(CONFIG.Dice.rollModes).map(([key, value]) => [key, game.i18n.localize(value)]))
|
||||
const fieldRollMode = new foundry.data.fields.StringField({
|
||||
choices: rollModes,
|
||||
blank: false,
|
||||
@@ -730,7 +732,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
|
||||
let initRoll = new Roll(formula, options.data)
|
||||
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}` }, { messageMode: rollContext.visibility })
|
||||
if (game?.dice3d && initRoll.dice?.length) {
|
||||
await game.dice3d.waitFor3DAnimationByMessageID(msg.id)
|
||||
}
|
||||
@@ -744,7 +746,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
/* ***********************************************************/
|
||||
static async promptCombatAction(options = {}) {
|
||||
|
||||
const rollModes = foundry.utils.duplicate(CONFIG.Dice.rollModes); // v12 : Object.fromEntries(Object.entries(CONFIG.Dice.rollModes).map(([key, value]) => [key, game.i18n.localize(value)]))
|
||||
const rollModes = foundry.utils.duplicate(CONFIG.ChatMessage.modes); // v12 : Object.fromEntries(Object.entries(CONFIG.Dice.rollModes).map(([key, value]) => [key, game.i18n.localize(value)]))
|
||||
const fieldRollMode = new foundry.data.fields.StringField({
|
||||
choices: rollModes,
|
||||
blank: false,
|
||||
@@ -1001,7 +1003,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
|
||||
let max = roll.dice[0].faces - 1
|
||||
max = Math.min(currentAction.progressionCount, max)
|
||||
let msg = await roll.toMessage({ flavor: `Progression Roll for ${currentAction.name}, progression count : ${currentAction.progressionCount}/${max}` }, { rollMode: rollContext.visibility })
|
||||
let msg = await roll.toMessage({ flavor: `Progression Roll for ${currentAction.name}, progression count : ${currentAction.progressionCount}/${max}` }, { messageMode: rollContext.visibility })
|
||||
if (game?.dice3d) {
|
||||
await game.dice3d.waitFor3DAnimationByMessageID(msg.id)
|
||||
}
|
||||
@@ -1043,7 +1045,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
/* ***********************************************************/
|
||||
static async promptRangedDefense(options = {}) {
|
||||
|
||||
const rollModes = foundry.utils.duplicate(CONFIG.Dice.rollModes);
|
||||
const rollModes = foundry.utils.duplicate(CONFIG.ChatMessage.modes);
|
||||
const fieldRollMode = new foundry.data.fields.StringField({
|
||||
choices: rollModes,
|
||||
blank: false,
|
||||
@@ -1332,11 +1334,11 @@ export default class LethalFantasyRoll extends Roll {
|
||||
*
|
||||
* @param {Object} [messageData={}] Additional data to include in the message.
|
||||
* @param {Object} options Options for message creation.
|
||||
* @param {string} options.rollMode The mode of the roll (e.g., public, private).
|
||||
* @param {string} options.messageMode The mode of the roll (e.g., public, private).
|
||||
* @param {boolean} [options.create=true] Whether to create the message.
|
||||
* @returns {Promise} - A promise that resolves when the message is created.
|
||||
*/
|
||||
async toMessage(messageData = {}, { rollMode, create = true } = {}) {
|
||||
async toMessage(messageData = {}, { messageMode, create = true } = {}) {
|
||||
return await super.toMessage(
|
||||
{
|
||||
isSave: this.isSave,
|
||||
@@ -1354,7 +1356,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
rollData: this.rollData,
|
||||
...messageData,
|
||||
},
|
||||
{ rollMode, create },
|
||||
{ messageMode, create },
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -297,7 +297,7 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod
|
||||
})
|
||||
if (!roll) return null
|
||||
|
||||
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
||||
await roll.toMessage({}, { messageMode: roll.options.rollMode })
|
||||
}
|
||||
|
||||
async rollInitiative(combatId = undefined, combatantId = undefined) {
|
||||
@@ -318,7 +318,7 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod
|
||||
})
|
||||
if (!roll) return null
|
||||
|
||||
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
||||
await roll.toMessage({}, { messageMode: roll.options.rollMode })
|
||||
}
|
||||
|
||||
async rollProgressionDice(combatId, combatantId, rollProgressionCount) {
|
||||
@@ -356,6 +356,11 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod
|
||||
}
|
||||
}
|
||||
|
||||
if (weaponsChoices.length === 0) {
|
||||
ui.notifications.warn(`${this.parent.name} has no weapons or spells available for combat. Add a weapon to the character sheet first.`)
|
||||
return
|
||||
}
|
||||
|
||||
let roll = await LethalFantasyRoll.promptCombatAction({
|
||||
actorId: this.parent.id,
|
||||
actorName: this.parent.name,
|
||||
|
||||
@@ -35,6 +35,9 @@ export default class LethalFantasyMiracle extends foundry.abstract.TypeDataModel
|
||||
|
||||
schema.attackRoll = new fields.StringField({ required: true, initial: "" })
|
||||
schema.powerRoll = new fields.StringField({ required: true, initial: "" })
|
||||
schema.damageDice = new fields.StringField({ required: false, initial: "" })
|
||||
schema.damageDiceOverpowered = new fields.StringField({ required: false, initial: "" })
|
||||
schema.damageDiceOverpowered2 = new fields.StringField({ required: false, initial: "" })
|
||||
|
||||
return schema
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
})
|
||||
if (!roll) return null
|
||||
|
||||
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
||||
await roll.toMessage({}, { messageMode: roll.options.rollMode })
|
||||
}
|
||||
|
||||
async prepareMonsterRoll(rollType, rollKey, rollDice = undefined, tokenId = undefined, damageModifier = undefined, defenderId = undefined, defenderTokenId = undefined, extraShieldDr = 0) {
|
||||
@@ -233,7 +233,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
await roll.toMessage({
|
||||
flavor,
|
||||
speaker: ChatMessage.getSpeaker({ actor: this.parent })
|
||||
})
|
||||
}, { messageMode: roll.options.rollMode ?? game.settings.get("core", "rollMode") })
|
||||
return
|
||||
}
|
||||
case "weapon-damage-small":
|
||||
@@ -284,7 +284,6 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
// In all cases
|
||||
if (rollTarget) {
|
||||
rollTarget.tokenId = tokenId
|
||||
console.log(rollTarget)
|
||||
await this.roll(rollType, rollTarget, defenderId, defenderTokenId, extraShieldDr)
|
||||
}
|
||||
}
|
||||
@@ -305,7 +304,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
})
|
||||
if (!roll) return null
|
||||
|
||||
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
||||
await roll.toMessage({}, { messageMode: roll.options.rollMode })
|
||||
}
|
||||
|
||||
async rollProgressionDice(combatId, combatantId) {
|
||||
@@ -317,7 +316,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
return
|
||||
}
|
||||
|
||||
const rollModes = foundry.utils.duplicate(CONFIG.Dice.rollModes)
|
||||
const rollModes = foundry.utils.duplicate(CONFIG.ChatMessage.modes)
|
||||
const fieldRollMode = new foundry.data.fields.StringField({
|
||||
choices: rollModes,
|
||||
blank: false,
|
||||
|
||||
@@ -40,6 +40,8 @@ export default class LethalFantasySpell extends foundry.abstract.TypeDataModel {
|
||||
schema.attackRoll = new fields.StringField({ required: true, initial: "" })
|
||||
schema.powerRoll = new fields.StringField({ required: true, initial: "" })
|
||||
schema.damageDice = new fields.StringField({ required: false, initial: "" })
|
||||
schema.damageDiceOverpowered = new fields.StringField({ required: false, initial: "" })
|
||||
schema.damageDiceOverpowered2 = new fields.StringField({ required: false, initial: "" })
|
||||
|
||||
return schema
|
||||
}
|
||||
|
||||
+33
-21
@@ -401,7 +401,7 @@ export default class LethalFantasyUtils {
|
||||
defenderTokenId,
|
||||
isRanged: true
|
||||
}
|
||||
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
||||
await roll.toMessage({}, { messageMode: roll.options.rollMode })
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -862,20 +862,25 @@ export default class LethalFantasyUtils {
|
||||
} else if (data.attackRollType === "spell-attack" || data.attackRollType === "miracle-attack") {
|
||||
const attacker = game.actors.get(data.attackerId)
|
||||
const spell = attacker?.items.get(data.attackWeaponId)
|
||||
const damageDice = spell?.system?.damageDice
|
||||
if (damageDice) {
|
||||
damageButton = `
|
||||
<div class="attack-result-damage">
|
||||
const tiers = [
|
||||
{ formula: spell?.system?.damageDice, label: "Standard" },
|
||||
{ formula: spell?.system?.damageDiceOverpowered, label: "Overpowered" },
|
||||
{ formula: spell?.system?.damageDiceOverpowered2, label: "Overpowered 2" },
|
||||
].filter(t => t.formula)
|
||||
if (tiers.length) {
|
||||
const buttons = tiers.map(t => {
|
||||
const escapedFormula = Handlebars.escapeExpression(t.formula)
|
||||
return `
|
||||
<button class="roll-damage-btn"
|
||||
data-attacker-id="${data.attackerId}"
|
||||
data-defender-id="${data.defenderId}"
|
||||
data-defender-token-id="${data.defenderTokenId || ""}"
|
||||
data-damage-type="spell"
|
||||
data-damage-formula="${damageDice}">
|
||||
<i class="fa-solid fa-wand-magic-sparkles"></i> Spell Damage (${damageDice})
|
||||
</button>
|
||||
</div>
|
||||
`
|
||||
data-damage-formula="${escapedFormula}">
|
||||
<i class="fa-solid fa-wand-magic-sparkles"></i> ${t.label} (${escapedFormula})
|
||||
</button>`
|
||||
}).join("")
|
||||
damageButton = `<div class="attack-result-damage">${buttons}</div>`
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -902,10 +907,10 @@ export default class LethalFantasyUtils {
|
||||
</div>
|
||||
<div class="combat-result-text">
|
||||
${outcome === "shielded-hit"
|
||||
? `<i class="fa-solid fa-shield"></i> <strong>${data.attackerName}</strong> hits <strong>${data.defenderName}</strong>, but the shield blocked — apply armor DR + shield DR <strong>${data.shieldDamageReduction || 0}</strong>.`
|
||||
? `<i class="fa-solid fa-shield"></i> <strong>${data.defenderName}</strong> has blocked with shield — apply armor DR + shield DR <strong>${data.shieldDamageReduction || 0}</strong>.`
|
||||
: isAttackWin
|
||||
? `<i class="fa-solid fa-circle-check"></i> <strong>${data.attackerName}</strong> hits <strong>${data.defenderName}</strong>!`
|
||||
: `<i class="fa-solid fa-shield-halved"></i> <strong>${data.defenderName}</strong> parries the attack!`
|
||||
: `<i class="fa-solid fa-shield-halved"></i> <strong>${data.defenderName}</strong> avoided the attack!`
|
||||
}
|
||||
</div>
|
||||
${damageButton}
|
||||
@@ -1092,25 +1097,32 @@ export default class LethalFantasyUtils {
|
||||
static async applyDamage(message, event) {
|
||||
// Récupérer les données du message
|
||||
let combatantId = event.currentTarget.dataset.combatantId
|
||||
if (!combatantId || !game.combat) {
|
||||
if (!combatantId) {
|
||||
ui.notifications.error("No combatant selected")
|
||||
return
|
||||
}
|
||||
|
||||
let combatant = game.combat.combatants.get(combatantId)
|
||||
if (!combatant) {
|
||||
ui.notifications.error("Combatant not found")
|
||||
return
|
||||
// Try to find the target: first as a combat combatant, then as a scene token
|
||||
let targetActor = null
|
||||
if (game.combat) {
|
||||
const combatant = game.combat.combatants.get(combatantId)
|
||||
if (combatant) {
|
||||
targetActor = combatant.token?.actor || game.actors.get(combatant.actorId)
|
||||
}
|
||||
}
|
||||
if (!targetActor) {
|
||||
// Fall back to scene token lookup (non-combat tokens use tokenId as their combatantId)
|
||||
const token = canvas.tokens?.placeables?.find(t => t.id === combatantId)
|
||||
targetActor = token?.actor
|
||||
}
|
||||
|
||||
let targetActor = combatant.token?.actor || game.actors.get(combatant.actorId)
|
||||
if (!targetActor) {
|
||||
ui.notifications.error("Target actor not found")
|
||||
return
|
||||
}
|
||||
|
||||
// Récupérer les données de dégâts du message
|
||||
let damageTotal = message.rolls[0]?.total || 0
|
||||
// Use options.rollTotal (includes weapon modifier bonus) rather than roll.total (dice formula only)
|
||||
let damageTotal = message.rolls[0]?.options?.rollTotal ?? message.rolls[0]?.total ?? 0
|
||||
let weaponName = message.rolls[0]?.options?.rollName || "Unknown Weapon"
|
||||
|
||||
// Calculer les DR
|
||||
@@ -1188,7 +1200,7 @@ export default class LethalFantasyUtils {
|
||||
ChatMessage.create({
|
||||
user: game.user.id,
|
||||
speaker: { alias: targetActor.name },
|
||||
rollMode: "gmroll",
|
||||
mode: "gm",
|
||||
content: messageContent
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
MANIFEST-000587
|
||||
MANIFEST-000599
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
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)
|
||||
2026/05/18-17:40:11.769288 7f5a477fe6c0 Recovering log #597
|
||||
2026/05/18-17:40:11.780605 7f5a477fe6c0 Delete type=3 #595
|
||||
2026/05/18-17:40:11.780699 7f5a477fe6c0 Delete type=0 #597
|
||||
2026/05/18-20:25:54.228818 7f5a467fc6c0 Level-0 table #602: started
|
||||
2026/05/18-20:25:54.230037 7f5a467fc6c0 Level-0 table #602: 0 bytes OK
|
||||
2026/05/18-20:25:54.236369 7f5a467fc6c0 Delete type=0 #600
|
||||
2026/05/18-20:25:54.251050 7f5a467fc6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||
2026/05/18-20:25:54.251106 7f5a467fc6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||
|
||||
@@ -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/18-07:32:52.671725 7f5a94bff6c0 Recovering log #593
|
||||
2026/05/18-07:32:52.684619 7f5a94bff6c0 Delete type=3 #591
|
||||
2026/05/18-07:32:52.684760 7f5a94bff6c0 Delete type=0 #593
|
||||
2026/05/18-07:58:12.225439 7f5a467fc6c0 Level-0 table #598: started
|
||||
2026/05/18-07:58:12.225593 7f5a467fc6c0 Level-0 table #598: 0 bytes OK
|
||||
2026/05/18-07:58:12.232817 7f5a467fc6c0 Delete type=0 #596
|
||||
2026/05/18-07:58:12.252837 7f5a467fc6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||
2026/05/18-07:58:12.252955 7f5a467fc6c0 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-000584
|
||||
MANIFEST-000596
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
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)
|
||||
2026/05/18-17:40:11.793894 7f5a94bff6c0 Recovering log #594
|
||||
2026/05/18-17:40:11.804447 7f5a94bff6c0 Delete type=3 #592
|
||||
2026/05/18-17:40:11.804549 7f5a94bff6c0 Delete type=0 #594
|
||||
2026/05/18-20:25:54.236611 7f5a467fc6c0 Level-0 table #599: started
|
||||
2026/05/18-20:25:54.236652 7f5a467fc6c0 Level-0 table #599: 0 bytes OK
|
||||
2026/05/18-20:25:54.243997 7f5a467fc6c0 Delete type=0 #597
|
||||
2026/05/18-20:25:54.251069 7f5a467fc6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||
2026/05/18-20:25:54.264439 7f5a467fc6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||
|
||||
@@ -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/18-07:32:52.700651 7f5a477fe6c0 Recovering log #590
|
||||
2026/05/18-07:32:52.712680 7f5a477fe6c0 Delete type=3 #588
|
||||
2026/05/18-07:32:52.712814 7f5a477fe6c0 Delete type=0 #590
|
||||
2026/05/18-07:58:12.232998 7f5a467fc6c0 Level-0 table #595: started
|
||||
2026/05/18-07:58:12.233130 7f5a467fc6c0 Level-0 table #595: 0 bytes OK
|
||||
2026/05/18-07:58:12.244133 7f5a467fc6c0 Delete type=0 #593
|
||||
2026/05/18-07:58:12.252873 7f5a467fc6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||
2026/05/18-07:58:12.252977 7f5a467fc6c0 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-000589
|
||||
MANIFEST-000601
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
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)
|
||||
2026/05/18-17:40:11.749971 7f5a46ffd6c0 Recovering log #599
|
||||
2026/05/18-17:40:11.761423 7f5a46ffd6c0 Delete type=3 #597
|
||||
2026/05/18-17:40:11.761520 7f5a46ffd6c0 Delete type=0 #599
|
||||
2026/05/18-20:25:54.219239 7f5a467fc6c0 Level-0 table #604: started
|
||||
2026/05/18-20:25:54.219522 7f5a467fc6c0 Level-0 table #604: 0 bytes OK
|
||||
2026/05/18-20:25:54.228610 7f5a467fc6c0 Delete type=0 #602
|
||||
2026/05/18-20:25:54.251028 7f5a467fc6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2026/05/18-20:25:54.251085 7f5a467fc6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
|
||||
@@ -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/18-07:32:52.650924 7f5a47fff6c0 Recovering log #595
|
||||
2026/05/18-07:32:52.662191 7f5a47fff6c0 Delete type=3 #593
|
||||
2026/05/18-07:32:52.662331 7f5a47fff6c0 Delete type=0 #595
|
||||
2026/05/18-07:58:12.218060 7f5a467fc6c0 Level-0 table #600: started
|
||||
2026/05/18-07:58:12.218402 7f5a467fc6c0 Level-0 table #600: 0 bytes OK
|
||||
2026/05/18-07:58:12.225237 7f5a467fc6c0 Delete type=0 #598
|
||||
2026/05/18-07:58:12.244392 7f5a467fc6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2026/05/18-07:58:12.252899 7f5a467fc6c0 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-000284
|
||||
MANIFEST-000296
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
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)
|
||||
2026/05/18-17:40:11.831491 7f5a94bff6c0 Recovering log #294
|
||||
2026/05/18-17:40:11.842913 7f5a94bff6c0 Delete type=3 #292
|
||||
2026/05/18-17:40:11.843005 7f5a94bff6c0 Delete type=0 #294
|
||||
2026/05/18-20:25:54.257813 7f5a467fc6c0 Level-0 table #299: started
|
||||
2026/05/18-20:25:54.257869 7f5a467fc6c0 Level-0 table #299: 0 bytes OK
|
||||
2026/05/18-20:25:54.264186 7f5a467fc6c0 Delete type=0 #297
|
||||
2026/05/18-20:25:54.267118 7f5a467fc6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||
2026/05/18-20:25:54.296812 7f5a467fc6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||
|
||||
@@ -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/18-07:32:52.738234 7f5a477fe6c0 Recovering log #290
|
||||
2026/05/18-07:32:52.749839 7f5a477fe6c0 Delete type=3 #288
|
||||
2026/05/18-07:32:52.749970 7f5a477fe6c0 Delete type=0 #290
|
||||
2026/05/18-07:58:12.253340 7f5a467fc6c0 Level-0 table #295: started
|
||||
2026/05/18-07:58:12.253449 7f5a467fc6c0 Level-0 table #295: 0 bytes OK
|
||||
2026/05/18-07:58:12.261029 7f5a467fc6c0 Delete type=0 #293
|
||||
2026/05/18-07:58:12.286385 7f5a467fc6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||
2026/05/18-07:58:12.286487 7f5a467fc6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||
|
||||
BIN
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000583
|
||||
MANIFEST-000595
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
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)
|
||||
2026/05/18-17:40:11.812004 7f5a47fff6c0 Recovering log #593
|
||||
2026/05/18-17:40:11.823277 7f5a47fff6c0 Delete type=3 #591
|
||||
2026/05/18-17:40:11.823388 7f5a47fff6c0 Delete type=0 #593
|
||||
2026/05/18-20:25:54.244177 7f5a467fc6c0 Level-0 table #598: started
|
||||
2026/05/18-20:25:54.244222 7f5a467fc6c0 Level-0 table #598: 0 bytes OK
|
||||
2026/05/18-20:25:54.250810 7f5a467fc6c0 Delete type=0 #596
|
||||
2026/05/18-20:25:54.251096 7f5a467fc6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2026/05/18-20:25:54.264461 7f5a467fc6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
|
||||
@@ -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/18-07:32:52.720162 7f5a94bff6c0 Recovering log #589
|
||||
2026/05/18-07:32:52.731519 7f5a94bff6c0 Delete type=3 #587
|
||||
2026/05/18-07:32:52.731690 7f5a94bff6c0 Delete type=0 #589
|
||||
2026/05/18-07:58:12.244424 7f5a467fc6c0 Level-0 table #594: started
|
||||
2026/05/18-07:58:12.244618 7f5a467fc6c0 Level-0 table #594: 0 bytes OK
|
||||
2026/05/18-07:58:12.252579 7f5a467fc6c0 Delete type=0 #592
|
||||
2026/05/18-07:58:12.252922 7f5a467fc6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2026/05/18-07:58:12.252996 7f5a467fc6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
|
||||
BIN
Binary file not shown.
@@ -176,6 +176,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-warning {
|
||||
margin: 0.4rem 0.2rem 0.2rem;
|
||||
padding: 0.35rem 0.5rem;
|
||||
border-left: 3px solid #c8941a;
|
||||
background: rgba(200, 148, 26, 0.12);
|
||||
border-radius: 3px;
|
||||
font-family: var(--font-secondary);
|
||||
font-size: calc(var(--font-size-standard) * 0.9);
|
||||
color: #7a5400;
|
||||
line-height: 1.4;
|
||||
i {
|
||||
color: #c8941a;
|
||||
margin-right: 0.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.lethalfantasy,
|
||||
.fvtt-lethal-fantasy,
|
||||
.message.lethalfantasy,
|
||||
|
||||
@@ -9,95 +9,95 @@
|
||||
<legend>{{localize "LETHALFANTASY.Label.biodata"}}</legend>
|
||||
<div class="biodata">
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Class</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.class"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.class
|
||||
value=system.biodata.class
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Level</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.level"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.level
|
||||
value=system.biodata.level
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Mortal</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.mortal"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.mortal
|
||||
value=system.biodata.mortal
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Alignment</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.alignment"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.alignment
|
||||
value=system.biodata.alignment
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Age</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.age"}}</span>
|
||||
{{formInput systemFields.biodata.fields.age value=system.biodata.age}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Height</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.height"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.height
|
||||
value=system.biodata.height
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Weight</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.weight"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.weight
|
||||
value=system.biodata.weight
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Eyes</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.eyes"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.eyes
|
||||
value=system.biodata.eyes
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Hair</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.hair"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.hair
|
||||
value=system.biodata.hair
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Dev. Points (Total)</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.devPointsTotal"}}</span>
|
||||
{{formInput
|
||||
systemFields.developmentPoints.fields.total
|
||||
value=system.developmentPoints.total
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Dev. Points (Rem.)</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.devPointsRem"}}</span>
|
||||
{{formInput
|
||||
systemFields.developmentPoints.fields.remaining
|
||||
value=system.developmentPoints.remaining
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Magic User</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.magicUser"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.magicUser
|
||||
value=system.biodata.magicUser
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Cleric User</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.clericUser"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.clericUser
|
||||
value=system.biodata.clericUser
|
||||
}}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Save bonus (1/5levels)</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.saveBonus"}}</span>
|
||||
{{formInput
|
||||
systemFields.modifiers.fields.saveModifier
|
||||
value=system.modifiers.saveModifier
|
||||
@@ -107,7 +107,7 @@
|
||||
|
||||
{{#if system.biodata.magicUser}}
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Spell bonus (1/5levels)</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.spellBonus"}}</span>
|
||||
{{formInput
|
||||
systemFields.modifiers.fields.levelSpellModifier
|
||||
value=system.modifiers.levelSpellModifier
|
||||
@@ -117,7 +117,7 @@
|
||||
{{/if}}
|
||||
{{#if system.biodata.clericUser}}
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Miracle bonus (1/5levels)</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.miracleBonus"}}</span>
|
||||
{{formInput
|
||||
systemFields.modifiers.fields.levelMiracleModifier
|
||||
value=system.modifiers.levelMiracleModifier
|
||||
@@ -127,7 +127,7 @@
|
||||
{{/if}}
|
||||
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Last HD roll</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.lastHdRoll"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.hpPerLevel
|
||||
value=system.biodata.hpPerLevel
|
||||
@@ -136,7 +136,7 @@
|
||||
</div>
|
||||
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Natural DR</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.naturalDR"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.naturalDR
|
||||
value=system.biodata.naturalDR
|
||||
@@ -145,7 +145,7 @@
|
||||
</div>
|
||||
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Magical DR</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.magicalDR"}}</span>
|
||||
{{formInput
|
||||
systemFields.biodata.fields.magicDR
|
||||
value=system.biodata.magicDR
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
<legend>{{localize "LETHALFANTASY.Label.divinityPoints"}}</legend>
|
||||
<div class="miracle-details">
|
||||
<div class="miracle-detail">
|
||||
<span>Current</span>
|
||||
<span>{{localize "LETHALFANTASY.Label.current"}}</span>
|
||||
{{formField systemFields.divinityPoints.fields.value value=system.divinityPoints.value localize=true}}
|
||||
<a data-action="divinityPointsPlus"><i class="fa-solid fa-hexagon-plus"></i></a>
|
||||
<a data-action="divinityPointsMinus"><i class="fa-solid fa-hexagon-minus"></i></a>
|
||||
|
||||
<span>Max</span>
|
||||
<span>{{localize "LETHALFANTASY.Label.max"}}</span>
|
||||
{{formField systemFields.divinityPoints.fields.max value=system.divinityPoints.max localize=true
|
||||
disabled=isPlayMode}}
|
||||
</div>
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
<legend>{{localize "LETHALFANTASY.Label.aetherPoints"}}</legend>
|
||||
<div class="spell-details">
|
||||
<div class="spell-detail">
|
||||
<span>Current</span>
|
||||
<span>{{localize "LETHALFANTASY.Label.current"}}</span>
|
||||
{{formField systemFields.aetherPoints.fields.value value=system.aetherPoints.value localize=true}}
|
||||
<a data-action="aetherPointsPlus"><i class="fa-solid fa-hexagon-plus"></i></a>
|
||||
<a data-action="aetherPointsMinus"><i class="fa-solid fa-hexagon-minus"></i></a>
|
||||
|
||||
<span>Max</span>
|
||||
<span>{{localize "LETHALFANTASY.Label.max"}}</span>
|
||||
{{formField systemFields.aetherPoints.fields.max value=system.aetherPoints.max localize=true
|
||||
disabled=isPlayMode}}
|
||||
</div>
|
||||
|
||||
@@ -40,32 +40,32 @@
|
||||
{{#if (eq rollData.favor "favor")}}
|
||||
<div class="detail-badge favor-badge">
|
||||
<i class="fa-solid fa-sparkles"></i>
|
||||
<span>Favor</span>
|
||||
<span>{{localize "LETHALFANTASY.Label.favor"}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (eq rollData.favor "disfavor")}}
|
||||
<div class="detail-badge disfavor-badge">
|
||||
<i class="fa-solid fa-skull"></i>
|
||||
<span>Disfavor</span>
|
||||
<span>{{localize "LETHALFANTASY.Label.disfavor"}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if rollData.letItFly}}
|
||||
<div class="detail-badge special-badge">
|
||||
<i class="fa-solid fa-bow-arrow"></i>
|
||||
<span>Let It Fly!</span>
|
||||
<span>{{localize "LETHALFANTASY.Label.letItFly"}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if rollData.pointBlank}}
|
||||
<div class="detail-badge special-badge">
|
||||
<i class="fa-solid fa-bullseye-arrow"></i>
|
||||
<span>Point Blank</span>
|
||||
<span>{{localize "LETHALFANTASY.Label.pointBlank"}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if rollData.beyondSkill}}
|
||||
<div class="detail-badge special-badge">
|
||||
<i class="fa-solid fa-target-lock"></i>
|
||||
<span>Beyond Skill</span>
|
||||
<span>{{localize "LETHALFANTASY.Label.beyondSkill"}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
{{#unless isPrivate}}
|
||||
<div class="result-section">
|
||||
<div class="main-result">
|
||||
<div class="result-label">Total</div>
|
||||
<div class="result-label">{{localize "LETHALFANTASY.Label.total"}}</div>
|
||||
<div class="result-value {{#if (eq resultType 'success')}}success{{else}}failure{{/if}}">
|
||||
{{total}}
|
||||
</div>
|
||||
@@ -177,7 +177,7 @@
|
||||
{{else}}
|
||||
<div class="private-result">
|
||||
<i class="fa-solid fa-eye-slash"></i>
|
||||
<span>Private Roll</span>
|
||||
<span>{{localize "LETHALFANTASY.Label.privateRoll"}}</span>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
|
||||
@@ -13,6 +13,14 @@
|
||||
<span>{{ localize "COMBAT.End" }}</span>
|
||||
</button>
|
||||
|
||||
{{#if combat.round}}
|
||||
<button type="button" class="combat-control combat-control-lg" data-action="rollMonsterProgression"
|
||||
data-tooltip="{{ localize 'LETHALFANTASY.Combat.RollMonsters' }}">
|
||||
<i class="fa-solid fa-dragon" inert></i>
|
||||
<span>{{ localize "LETHALFANTASY.Combat.RollMonsters" }}</span>
|
||||
</button>
|
||||
{{/if}}
|
||||
|
||||
<!-- <button type="button" class="inline-control combat-control icon fa-solid fa-arrow-right" data-action="nextTurn"
|
||||
data-tooltip aria-label="{{ localize "COMBAT.TurnNext" }}"></button> -->
|
||||
<button type="button" class="inline-control combat-control icon fa-solid fa-forward-step" data-action="nextRound"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
{{formField systemFields.miracleType value=system.miracleType}}
|
||||
{{formField systemFields.level value=system.level}}
|
||||
|
||||
<label>Components</label>
|
||||
<label>{{localize "LETHALFANTASY.Label.components"}}</label>
|
||||
<div class="shift-right">
|
||||
{{formField systemFields.components.fields.verbal value=system.components.verbal}}
|
||||
{{formField systemFields.components.fields.somatic value=system.components.somatic}}
|
||||
@@ -27,6 +27,9 @@
|
||||
{{formField systemFields.areaAffected value=system.areaAffected}}
|
||||
{{formField systemFields.duration value=system.duration}}
|
||||
{{formField systemFields.savingThrow value=system.savingThrow}}
|
||||
{{formField systemFields.damageDice value=system.damageDice}}
|
||||
{{formField systemFields.damageDiceOverpowered value=system.damageDiceOverpowered}}
|
||||
{{formField systemFields.damageDiceOverpowered2 value=system.damageDiceOverpowered2}}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,23 +6,23 @@
|
||||
<div class="biodata">
|
||||
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Alignment</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.alignment"}}</span>
|
||||
{{formInput systemFields.biodata.fields.alignment value=system.biodata.alignment }}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Height</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.height"}}</span>
|
||||
{{formInput systemFields.biodata.fields.height value=system.biodata.height }}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Weight</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.weight"}}</span>
|
||||
{{formInput systemFields.biodata.fields.weight value=system.biodata.weight }}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Length</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.length"}}</span>
|
||||
{{formInput systemFields.biodata.fields.length value=system.biodata.length }}
|
||||
</div>
|
||||
<div class="biodata-elem">
|
||||
<span class="name">Vision</span>
|
||||
<span class="name">{{localize "LETHALFANTASY.Label.vision"}}</span>
|
||||
{{formInput systemFields.biodata.fields.vision value=system.biodata.vision }}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>Hand To Hand Attacks</legend>
|
||||
<legend>{{localize "LETHALFANTASY.Label.handToHandAttacks"}}</legend>
|
||||
<div class="attacks">
|
||||
{{#each system.combatHTH as |item key|}}
|
||||
<div class="attack" data-attack-key="{{key}}" >
|
||||
|
||||
@@ -91,6 +91,10 @@
|
||||
<div class="dialog-save">Add Granted Defense Dice
|
||||
<input type="checkbox" data-action="selectGranted" name="granted" />
|
||||
</div>
|
||||
<div class="dialog-warning">
|
||||
<i class="fa-solid fa-triangle-exclamation"></i>
|
||||
{{localize "LETHALFANTASY.Warning.defenseShieldOrder"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (match rollType "damage")}}
|
||||
<div class="dialog-save">Add Granted Damage Dice
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
{{formField systemFields.hascover value=system.hascover}}
|
||||
|
||||
{{#if system.hascover}}
|
||||
<label>Cover vs ranged attacks</label>
|
||||
<label>{{localize "LETHALFANTASY.Label.coverRanged"}}</label>
|
||||
<div class="shift-right">
|
||||
<label>Standing </label>
|
||||
<label>{{localize "LETHALFANTASY.Label.standing"}}</label>
|
||||
<div class="flexrow">{{formField
|
||||
systemFields.standing.fields.min
|
||||
value=system.standing.min
|
||||
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="shift-right">
|
||||
<label>Crouching</label>
|
||||
<label>{{localize "LETHALFANTASY.Label.crouching"}}</label>
|
||||
<div class="flexrow">{{formField
|
||||
systemFields.crouching.fields.min
|
||||
value=system.crouching.min
|
||||
|
||||
+3
-1
@@ -7,7 +7,7 @@
|
||||
{{formField systemFields.level value=system.level}}
|
||||
{{formField systemFields.cost value=system.cost}}
|
||||
|
||||
<label>Components</label>
|
||||
<label>{{localize "LETHALFANTASY.Label.components"}}</label>
|
||||
<div class="shift-right">
|
||||
{{formField systemFields.components.fields.verbal value=system.components.verbal}}
|
||||
{{formField systemFields.components.fields.somatic value=system.components.somatic}}
|
||||
@@ -31,6 +31,8 @@
|
||||
{{formField systemFields.extraAetherPoints value=system.extraAetherPoints}}
|
||||
{{formField systemFields.criticalType value=system.criticalType}}
|
||||
{{formField systemFields.damageDice value=system.damageDice}}
|
||||
{{formField systemFields.damageDiceOverpowered value=system.damageDiceOverpowered}}
|
||||
{{formField systemFields.damageDiceOverpowered2 value=system.damageDiceOverpowered2}}
|
||||
|
||||
|
||||
<fieldset>
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
{{formField systemFields.weaponType value=system.weaponType localize=true}}
|
||||
{{formField systemFields.weaponClass value=system.weaponClass localize=true}}
|
||||
|
||||
<label>Damage Type</label>
|
||||
<label>{{localize "LETHALFANTASY.Label.damageType"}}</label>
|
||||
<div class="shift-right">
|
||||
{{formField systemFields.damageType.fields.typeP value=system.damageType.typeP}}
|
||||
{{formField systemFields.damageType.fields.typeB value=system.damageType.typeB}}
|
||||
{{formField systemFields.damageType.fields.typeS value=system.damageType.typeS}}
|
||||
</div>
|
||||
|
||||
<label>Damage</label>
|
||||
<label>{{localize "LETHALFANTASY.Label.damage"}}</label>
|
||||
<div class="shift-right">
|
||||
{{formField systemFields.damage.fields.damageS value=system.damage.damageS}}
|
||||
{{formField systemFields.damage.fields.damageM value=system.damage.damageM}}
|
||||
@@ -34,7 +34,7 @@
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq system.weaponType "ranged")}}
|
||||
<label>Speed</label>
|
||||
<label>{{localize "LETHALFANTASY.Label.speed"}}</label>
|
||||
<div class="shift-right">
|
||||
{{formField systemFields.speed.fields.simpleAim value=system.speed.simpleAim}}
|
||||
{{formField systemFields.speed.fields.carefulAim value=system.speed.carefulAim}}
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
{{formField systemFields.defense value=system.defense}}
|
||||
|
||||
<label>Range</label>
|
||||
<label>{{localize "LETHALFANTASY.Label.range"}}</label>
|
||||
<div class="shift-right">
|
||||
{{formField systemFields.weaponRange.fields.pointBlank value=system.weaponRange.pointBlank}}
|
||||
{{formField systemFields.weaponRange.fields.short value=system.weaponRange.short}}
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
{{formField systemFields.equipped value=system.equipped}}
|
||||
|
||||
<label>Bonuses</label>
|
||||
<label>{{localize "LETHALFANTASY.Label.bonuses"}}</label>
|
||||
<div class="shift-right">
|
||||
{{formField systemFields.bonuses.fields.attackBonus value=system.bonuses.attackBonus}}
|
||||
{{formField systemFields.bonuses.fields.defenseBonus value=system.bonuses.defenseBonus}}
|
||||
|
||||
Reference in New Issue
Block a user