Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d389a85a9f | |||
| c217490a5b | |||
| 38eb1a8d3d | |||
| 4724cdf2bb | |||
| 6d06c8ddad | |||
| 2770774aa3 | |||
| e417b61625 | |||
| 9a8d580ef6 | |||
| 9ccb0f90f0 |
@@ -59,5 +59,5 @@ jobs:
|
|||||||
version: ${{github.event.release.tag_name}}
|
version: ${{github.event.release.tag_name}}
|
||||||
manifest: "https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/system.json"
|
manifest: "https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/system.json"
|
||||||
notes: "https://www.uberwald.me/gitea/public/fvtt-lethal-fantasy/raw/branch/main/changelog.md"
|
notes: "https://www.uberwald.me/gitea/public/fvtt-lethal-fantasy/raw/branch/main/changelog.md"
|
||||||
compatibility-minimum: "13"
|
compatibility-minimum: "14"
|
||||||
compatibility-verified: "14"
|
compatibility-verified: "14"
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
# CLAUDE.md
|
||||||
|
|
||||||
|
This file provides guidance to Claude Code (claude.ai/code) when working with this repository.
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
FoundryVTT v13+ game system for the **Lethal Fantasy RPG**. Entry point: `lethal-fantasy.mjs`.
|
||||||
|
|
||||||
|
## Commands
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Compile LESS styles (styles/ -> css/)
|
||||||
|
npx gulp css # one-shot
|
||||||
|
npx gulp # compile + watch
|
||||||
|
|
||||||
|
# Lint
|
||||||
|
npx eslint .
|
||||||
|
|
||||||
|
# Compendium pack management (LevelDB <-> YAML source)
|
||||||
|
npm run pushLDBtoYML # export packs-system/ LevelDB -> source YAML
|
||||||
|
npm run pullYMLtoLDB # import source YAML -> packs-system/ LevelDB
|
||||||
|
```
|
||||||
|
|
||||||
|
No test suite exists.
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
Four layers in `module/`, all wired in `lethal-fantasy.mjs` via the `init` hook:
|
||||||
|
|
||||||
|
| Layer | Path | Purpose |
|
||||||
|
|---|---|---|
|
||||||
|
| Config | `module/config/` | Game constants. `SYSTEM` is `globalThis.SYSTEM` — always use `SYSTEM.*` for enumerations. |
|
||||||
|
| Models | `module/models/` | `TypeDataModel` subclasses — data schemas per document type. |
|
||||||
|
| Documents | `module/documents/` | Actor/Item/Roll/ChatMessage subclasses — game logic, roll processing, hooks. |
|
||||||
|
| Applications | `module/applications/` | `ApplicationV2` sheets + custom combat tracker. |
|
||||||
|
|
||||||
|
**Actor types**: `character`, `monster`
|
||||||
|
**Item types**: `skill`, `gift`, `vulnerability`, `weapon`, `armor`, `shield`, `spell`, `miracle`, `equipment`
|
||||||
|
|
||||||
|
Each layer has an `_module.mjs` barrel file that re-exports all classes from that layer.
|
||||||
|
|
||||||
|
Templates (`.hbs`) live in `templates/`. Styles are authored in LESS under `styles/` and compiled to `css/`.
|
||||||
|
|
||||||
|
### Key Patterns
|
||||||
|
|
||||||
|
- **Sheets**: Extend `HandlebarsApplicationMixin(foundry.applications.sheets.ActorSheetV2)` — imported from `foundry.applications.api`. **Not** the legacy `ActorSheet`. Child sheets (e.g. `character-sheet.mjs`) extend `base-actor-sheet.mjs` and override `static PARTS` and `DEFAULT_OPTIONS.actions`. Template paths are prefixed `systems/fvtt-lethal-fantasy/templates/`. Actor sheets have a play/edit toggle via `_sheetMode` and `SHEET_MODES`.
|
||||||
|
- **Models**: `static defineSchema()` using `foundry.data.fields.*`. Field definitions derived from SYSTEM config objects.
|
||||||
|
- **Rolls**: `LethalFantasyRoll` extends `Roll` with rich metadata via `this.options`. `D30Roll` is a separate class for D30 result tables (initialized in the `ready` hook).
|
||||||
|
- **Socket**: Events use `game.socket.on(\`system.${SYSTEM.id}\`, ...)`. Multi-player attack-defense uses a global `pendingDefenses` Map.
|
||||||
|
- **i18n**: All user-visible strings are keys in `lang/en.json` as `LETHALFANTASY.Category.Key`. Always use `game.i18n.localize(key)`.
|
||||||
|
|
||||||
|
### Compendium Packs
|
||||||
|
|
||||||
|
Five LevelDB packs in `packs-system/`: skills, equipment, gifts, vulnerabilities, spells-miracles. Use the `tools/` scripts to export/import editable YAML.
|
||||||
|
|
||||||
|
## Code Style
|
||||||
|
|
||||||
|
- No semicolons, double quotes, 2-space indent
|
||||||
|
- JSDoc `/** */` required on all functions/classes
|
||||||
|
- Max line length 180 (strings/templates exempt)
|
||||||
|
- Arrow functions: omit parens for single param
|
||||||
|
- ESLint + Prettier config in `eslint.config.mjs`
|
||||||
+92
-21
@@ -2161,34 +2161,66 @@ i.lethalfantasy {
|
|||||||
color: #d4af37;
|
color: #d4af37;
|
||||||
}
|
}
|
||||||
.lethalfantasy .attack-result .attack-result-damage {
|
.lethalfantasy .attack-result .attack-result-damage {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 6px;
|
gap: 8px;
|
||||||
justify-content: center;
|
}
|
||||||
|
.lethalfantasy .attack-result .attack-result-damage.single-btn {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
max-width: 280px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.lethalfantasy .attack-result .attack-result-damage.spell-damage {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn {
|
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn {
|
||||||
padding: 8px 10px;
|
padding: 10px 14px;
|
||||||
background: linear-gradient(to bottom, #8b0000 0%, #660000 100%);
|
background: linear-gradient(to bottom, #8b0000 0%, #660000 100%);
|
||||||
border: 1px solid #ff0000;
|
border: 1px solid #4b0000;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
color: #f0e6d2;
|
color: #f0e6d2;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: calc(var(--font-size-standard) * 0.9);
|
font-size: calc(var(--font-size-standard) * 0.9);
|
||||||
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 6px;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
|
||||||
|
transition: left 0.5s;
|
||||||
|
}
|
||||||
|
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn:hover::before {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn i {
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.1);
|
||||||
|
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn:hover {
|
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn:hover {
|
||||||
background: linear-gradient(to bottom, #a00000 0%, #7b0000 100%);
|
background: linear-gradient(to bottom, #a00000 0%, #7b0000 100%);
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
|
border-color: #5b0000;
|
||||||
}
|
}
|
||||||
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn:active {
|
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn:active {
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||||
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn i {
|
|
||||||
margin-right: 6px;
|
|
||||||
}
|
}
|
||||||
.lethalfantasy .equipment-content {
|
.lethalfantasy .equipment-content {
|
||||||
font-family: var(--font-primary);
|
font-family: var(--font-primary);
|
||||||
@@ -3963,35 +3995,74 @@ i.lethalfantasy {
|
|||||||
}
|
}
|
||||||
.message .attack-result .attack-result-damage,
|
.message .attack-result .attack-result-damage,
|
||||||
.attack-result .attack-result-damage {
|
.attack-result .attack-result-damage {
|
||||||
display: flex;
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
justify-content: center;
|
}
|
||||||
|
.message .attack-result .attack-result-damage.single-btn,
|
||||||
|
.attack-result .attack-result-damage.single-btn {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
max-width: 280px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.message .attack-result .attack-result-damage.spell-damage,
|
||||||
|
.attack-result .attack-result-damage.spell-damage {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.message .attack-result .attack-result-damage .roll-damage-btn,
|
.message .attack-result .attack-result-damage .roll-damage-btn,
|
||||||
.attack-result .attack-result-damage .roll-damage-btn {
|
.attack-result .attack-result-damage .roll-damage-btn {
|
||||||
padding: 10px 16px;
|
padding: 10px 14px;
|
||||||
background: linear-gradient(to bottom, #8b0000 0%, #660000 100%);
|
background: linear-gradient(to bottom, #8b0000 0%, #660000 100%);
|
||||||
border: 1px solid #ff0000;
|
border: 1px solid #4b0000;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
color: #f0e6d2;
|
color: #f0e6d2;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
font-size: calc(var(--font-size-standard) * 0.9);
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 6px;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.message .attack-result .attack-result-damage .roll-damage-btn::before,
|
||||||
|
.attack-result .attack-result-damage .roll-damage-btn::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
|
||||||
|
transition: left 0.5s;
|
||||||
|
}
|
||||||
|
.message .attack-result .attack-result-damage .roll-damage-btn:hover::before,
|
||||||
|
.attack-result .attack-result-damage .roll-damage-btn:hover::before {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
.message .attack-result .attack-result-damage .roll-damage-btn i,
|
||||||
|
.attack-result .attack-result-damage .roll-damage-btn i {
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.1);
|
||||||
|
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.message .attack-result .attack-result-damage .roll-damage-btn:hover,
|
.message .attack-result .attack-result-damage .roll-damage-btn:hover,
|
||||||
.attack-result .attack-result-damage .roll-damage-btn:hover {
|
.attack-result .attack-result-damage .roll-damage-btn:hover {
|
||||||
background: linear-gradient(to bottom, #a00000 0%, #7b0000 100%);
|
background: linear-gradient(to bottom, #a00000 0%, #7b0000 100%);
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
|
border-color: #5b0000;
|
||||||
}
|
}
|
||||||
.message .attack-result .attack-result-damage .roll-damage-btn:active,
|
.message .attack-result .attack-result-damage .roll-damage-btn:active,
|
||||||
.attack-result .attack-result-damage .roll-damage-btn:active {
|
.attack-result .attack-result-damage .roll-damage-btn:active {
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||||
.message .attack-result .attack-result-damage .roll-damage-btn i,
|
|
||||||
.attack-result .attack-result-damage .roll-damage-btn i {
|
|
||||||
margin-right: 6px;
|
|
||||||
}
|
}
|
||||||
#token-hud .hp-loss-wrap {
|
#token-hud .hp-loss-wrap {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -471,6 +471,8 @@
|
|||||||
"range": "Range",
|
"range": "Range",
|
||||||
"rangeDefenseDialog": "Ranged defense dialog",
|
"rangeDefenseDialog": "Ranged defense dialog",
|
||||||
"rangeDefenseRoll": "Ranged defense roll",
|
"rangeDefenseRoll": "Ranged defense roll",
|
||||||
|
"rangeAttackDialog": "Ranged attack dialog",
|
||||||
|
"rangeAttackRoll": "Ranged attack roll",
|
||||||
"rangedAttackDefense": "Ranged attack defense",
|
"rangedAttackDefense": "Ranged attack defense",
|
||||||
"resource": "Resource",
|
"resource": "Resource",
|
||||||
"resources": "Resources",
|
"resources": "Resources",
|
||||||
|
|||||||
+11
-3
@@ -262,6 +262,7 @@ Hooks.on("renderChatMessageHTML", (message, html, data) => {
|
|||||||
const isRangedAttack = (rollTargetOptions?.attackMode === "ranged")
|
const isRangedAttack = (rollTargetOptions?.attackMode === "ranged")
|
||||||
|| (attacker?.type === "monster" && attacker.system.attackMode === "ranged")
|
|| (attacker?.type === "monster" && attacker.system.attackMode === "ranged")
|
||||||
|| (attackerWeapon?.system?.weaponType === "ranged")
|
|| (attackerWeapon?.system?.weaponType === "ranged")
|
||||||
|
|| (rollTargetOptions?.isRangedAttack === true)
|
||||||
|
|
||||||
const defenseMsg = {
|
const defenseMsg = {
|
||||||
type: "requestDefense",
|
type: "requestDefense",
|
||||||
@@ -369,7 +370,7 @@ Hooks.on("renderChatMessageHTML", (message, html, data) => {
|
|||||||
action: "applyDR",
|
action: "applyDR",
|
||||||
label: game.i18n.localize("LETHALFANTASY.Combat.spellApplyDR"),
|
label: game.i18n.localize("LETHALFANTASY.Combat.spellApplyDR"),
|
||||||
icon: "fa-solid fa-shield",
|
icon: "fa-solid fa-shield",
|
||||||
callback: (event, button, dialog) => Number(dialog.querySelector("[name='manualDr']")?.value) || 0
|
callback: (event, button) => Number(button.form?.elements?.manualDr?.value) || 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
action: "cancel",
|
action: "cancel",
|
||||||
@@ -393,8 +394,15 @@ Hooks.on("renderChatMessageHTML", (message, html, data) => {
|
|||||||
actorName: actor.name,
|
actorName: actor.name,
|
||||||
actorImage: actor.img
|
actorImage: actor.img
|
||||||
}
|
}
|
||||||
const roll = new LethalFantasyRoll(damageFormula, {}, rollOpts)
|
const roll = new documents.LethalFantasyRoll(damageFormula, {}, rollOpts)
|
||||||
await roll.evaluate()
|
await roll.evaluate()
|
||||||
|
const diceResults = []
|
||||||
|
for (const term of roll.dice) {
|
||||||
|
for (const r of term.results) {
|
||||||
|
diceResults.push({ dice: `1D${term.faces}`, value: r.result })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
roll.options.diceResults = diceResults
|
||||||
roll.options.rollTotal = roll.total
|
roll.options.rollTotal = roll.total
|
||||||
if (game?.dice3d) await game.dice3d.showForRoll(roll, game.user, true)
|
if (game?.dice3d) await game.dice3d.showForRoll(roll, game.user, true)
|
||||||
await roll.toMessage()
|
await roll.toMessage()
|
||||||
@@ -408,7 +416,7 @@ Hooks.on("renderChatMessageHTML", (message, html, data) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Pour les monstres, utiliser prepareMonsterRoll
|
// Pour les monstres, utiliser prepareMonsterRoll
|
||||||
if (isMonster || actor.type === "monster") {
|
if (isMonster === "true" || actor.type === "monster") {
|
||||||
await actor.system.prepareMonsterRoll("monster-damage", weaponId, undefined, undefined, damageModifier)
|
await actor.system.prepareMonsterRoll("monster-damage", weaponId, undefined, undefined, damageModifier)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ export default class LethalFantasyCharacterSheet extends LethalFantasyActorSheet
|
|||||||
divinityPointsMinus: LethalFantasyCharacterSheet.#onDivinityPointsMinus,
|
divinityPointsMinus: LethalFantasyCharacterSheet.#onDivinityPointsMinus,
|
||||||
aetherPointsPlus: LethalFantasyCharacterSheet.#onAetherPointsPlus,
|
aetherPointsPlus: LethalFantasyCharacterSheet.#onAetherPointsPlus,
|
||||||
aetherPointsMinus: LethalFantasyCharacterSheet.#onAetherPointsMinus,
|
aetherPointsMinus: LethalFantasyCharacterSheet.#onAetherPointsMinus,
|
||||||
|
rollSpellDamage: LethalFantasyCharacterSheet.#onRollSpellDamage,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,10 +71,10 @@ export default class LethalFantasyCharacterSheet extends LethalFantasyActorSheet
|
|||||||
biography: { id: "biography", group: "sheet", icon: "fa-solid fa-book", label: "LETHALFANTASY.Label.biography" },
|
biography: { id: "biography", group: "sheet", icon: "fa-solid fa-book", label: "LETHALFANTASY.Label.biography" },
|
||||||
}
|
}
|
||||||
if (this.actor.system.biodata.magicUser) {
|
if (this.actor.system.biodata.magicUser) {
|
||||||
tabs.spells = { id: "spells", group: "sheet", icon: "fa-sharp-duotone fa-solid fa-wand-magic-sparkles", label: "LETHALFANTASY.Label.spells" }
|
tabs.spells = { id: "spells", group: "sheet", icon: "fa-solid fa-wand-magic-sparkles", label: "LETHALFANTASY.Label.spells" }
|
||||||
}
|
}
|
||||||
if (this.actor.system.biodata.clericUser) {
|
if (this.actor.system.biodata.clericUser) {
|
||||||
tabs.miracles = { id: "miracles", group: "sheet", icon: "fa-sharp-duotone fa-solid fa-hands-praying", label: "LETHALFANTASY.Label.miracles" }
|
tabs.miracles = { id: "miracles", group: "sheet", icon: "fa-solid fa-hands-praying", label: "LETHALFANTASY.Label.miracles" }
|
||||||
}
|
}
|
||||||
for (const v of Object.values(tabs)) {
|
for (const v of Object.values(tabs)) {
|
||||||
v.active = this.tabGroups[v.group] === v.id
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
@@ -219,6 +220,86 @@ export default class LethalFantasyCharacterSheet extends LethalFantasyActorSheet
|
|||||||
this.actor.update({ "system.aetherPoints.value": points })
|
this.actor.update({ "system.aetherPoints.value": points })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handles spell damage roll from the spell sheet tab.
|
||||||
|
* Shows a DR dialog then rolls the appropriate damage formula.
|
||||||
|
* @param {PointerEvent} event
|
||||||
|
* @param {HTMLElement} target
|
||||||
|
*/
|
||||||
|
static async #onRollSpellDamage(event, target) {
|
||||||
|
if (this.isEditMode) return
|
||||||
|
const itemId = target.dataset.itemId
|
||||||
|
const tier = target.dataset.damageTier
|
||||||
|
const spell = this.actor.items.get(itemId)
|
||||||
|
if (!spell) return
|
||||||
|
|
||||||
|
const formulaMap = {
|
||||||
|
standard: spell.system.damageDice,
|
||||||
|
overpowered: spell.system.damageDiceOverpowered,
|
||||||
|
overpowered2: spell.system.damageDiceOverpowered2,
|
||||||
|
}
|
||||||
|
const formula = formulaMap[tier]
|
||||||
|
if (!formula) return
|
||||||
|
|
||||||
|
const manualDR = await foundry.applications.api.DialogV2.wait({
|
||||||
|
window: { title: game.i18n.localize("LETHALFANTASY.Combat.spellDRDialogTitle") },
|
||||||
|
classes: ["lethalfantasy"],
|
||||||
|
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) => Number(button.form?.elements?.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: `${spell.name} — ${formula}`,
|
||||||
|
isDamage: true,
|
||||||
|
rollData: { isDamage: true },
|
||||||
|
manualDR,
|
||||||
|
actorId: this.actor.id,
|
||||||
|
actorName: this.actor.name,
|
||||||
|
actorImage: this.actor.img
|
||||||
|
}
|
||||||
|
const roll = new LethalFantasyRoll(formula, {}, rollOpts)
|
||||||
|
await roll.evaluate()
|
||||||
|
const diceResults = []
|
||||||
|
for (const term of roll.dice) {
|
||||||
|
for (const r of term.results) {
|
||||||
|
diceResults.push({ dice: `1D${term.faces}`, value: r.result })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
roll.options.diceResults = diceResults
|
||||||
|
roll.options.rollTotal = roll.total
|
||||||
|
if (game?.dice3d) await game.dice3d.showForRoll(roll, game.user, true)
|
||||||
|
await roll.toMessage()
|
||||||
|
}
|
||||||
|
|
||||||
static #onCreateEquipment(event, target) {
|
static #onCreateEquipment(event, target) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -608,7 +608,12 @@
|
|||||||
},
|
},
|
||||||
"arcane_spell_attack": {
|
"arcane_spell_attack": {
|
||||||
"type": "spell_calamity",
|
"type": "spell_calamity",
|
||||||
"description": "Possible Spell Calamity or Catastrophe"
|
"description": "A possible spell calamity has occurred"
|
||||||
|
},
|
||||||
|
"melee_attack": {
|
||||||
|
"type": "fumble",
|
||||||
|
"detail": "melee_fumble",
|
||||||
|
"description": "Possible Fumble"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -85,11 +85,18 @@ export const RANGE_CHOICES = {
|
|||||||
"pointblank": { label: "Point Blank (Special)", value: "pointblank" },
|
"pointblank": { label: "Point Blank (Special)", value: "pointblank" },
|
||||||
"short": { label: "Short (+0)", value: "0" },
|
"short": { label: "Short (+0)", value: "0" },
|
||||||
"medium": { label: "Medium (Red +5)", value: "+5" },
|
"medium": { label: "Medium (Red +5)", value: "+5" },
|
||||||
"long": { label: "Long (Purle +7)", value: "+7" },
|
"long": { label: "Long (Purple +7)", value: "+7" },
|
||||||
"extreme": { label: "Extreme (Grey +9)", value: "+9" },
|
"extreme": { label: "Extreme (Grey +9)", value: "+9" },
|
||||||
"beyondskill": { label: "Beyond Skill (Blue +11)", value: "beyondskill" }
|
"beyondskill": { label: "Beyond Skill (Blue +11)", value: "beyondskill" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const ATTACKER_MOVEMENT_CHOICES = {
|
||||||
|
"none": { label: "None / Stationary (D20E Favor)", favor: true, value: "2D20kh" },
|
||||||
|
"walk": { label: "Walk (D20E)", value: "D20" },
|
||||||
|
"incombat": { label: "In Combat (D20E)", value: "D20" },
|
||||||
|
"run": { label: "Jog/Run/Sprint (D20E Disfavor)", disfavor: true, value: "2D20kl" }
|
||||||
|
}
|
||||||
|
|
||||||
export const ATTACKER_AIM_CHOICES = {
|
export const ATTACKER_AIM_CHOICES = {
|
||||||
"simple": { label: "Simple (+0)", value: "0" },
|
"simple": { label: "Simple (+0)", value: "0" },
|
||||||
"careful": { label: "Careful (Red +5)", value: "+4" },
|
"careful": { label: "Careful (Red +5)", value: "+4" },
|
||||||
@@ -321,6 +328,7 @@ export const SYSTEM = {
|
|||||||
RANGE_CHOICES,
|
RANGE_CHOICES,
|
||||||
FAVOR_CHOICES,
|
FAVOR_CHOICES,
|
||||||
ATTACKER_AIM_CHOICES,
|
ATTACKER_AIM_CHOICES,
|
||||||
|
ATTACKER_MOVEMENT_CHOICES,
|
||||||
MORTAL_CHOICES,
|
MORTAL_CHOICES,
|
||||||
SPELL_CRITICAL,
|
SPELL_CRITICAL,
|
||||||
MIRACLE_TYPES,
|
MIRACLE_TYPES,
|
||||||
|
|||||||
@@ -261,7 +261,8 @@ export default class LethalFantasyActor extends Actor {
|
|||||||
weapon: weapon,
|
weapon: weapon,
|
||||||
weaponSkillModifier: skill.weaponSkillModifier,
|
weaponSkillModifier: skill.weaponSkillModifier,
|
||||||
rollKey: rollKey,
|
rollKey: rollKey,
|
||||||
combat: foundry.utils.duplicate(this.system.combat)
|
combat: foundry.utils.duplicate(this.system.combat),
|
||||||
|
isRangedAttack: weapon.system.weaponType === "ranged"
|
||||||
}
|
}
|
||||||
if (rollType === "weapon-damage-small" || rollType === "weapon-damage-medium") {
|
if (rollType === "weapon-damage-small" || rollType === "weapon-damage-medium") {
|
||||||
rollTarget.grantedDice = this.system.granted.damageDice
|
rollTarget.grantedDice = this.system.granted.damageDice
|
||||||
|
|||||||
@@ -111,17 +111,16 @@ export default class D30Roll {
|
|||||||
if (externalType === "weapon-attack") {
|
if (externalType === "weapon-attack") {
|
||||||
if (!weapon) {
|
if (!weapon) {
|
||||||
console.warn("D30Roll | Weapon object required for weapon-attack type")
|
console.warn("D30Roll | Weapon object required for weapon-attack type")
|
||||||
return this.ROLL_TYPES.MELEE_ATTACK // Default to melee
|
// Fall through to use options.isRanged if available, otherwise default melee
|
||||||
}
|
}
|
||||||
return weapon.system?.weaponType === "ranged"
|
return (options.isRanged || weapon?.system?.weaponType === "ranged")
|
||||||
? this.ROLL_TYPES.RANGED_ATTACK
|
? this.ROLL_TYPES.RANGED_ATTACK
|
||||||
: this.ROLL_TYPES.MELEE_ATTACK
|
: this.ROLL_TYPES.MELEE_ATTACK
|
||||||
}
|
}
|
||||||
|
|
||||||
// Monster attacks - default to melee
|
// Monster attacks - check options.isRanged (set from rollTarget.attackMode) or weapon type
|
||||||
if (externalType === "monster-attack") {
|
if (externalType === "monster-attack") {
|
||||||
// Check if weapon object has range information
|
if (options.isRanged || weapon?.system?.weaponType === "ranged") {
|
||||||
if (weapon?.system?.weaponType === "ranged") {
|
|
||||||
return this.ROLL_TYPES.RANGED_ATTACK
|
return this.ROLL_TYPES.RANGED_ATTACK
|
||||||
}
|
}
|
||||||
return this.ROLL_TYPES.MELEE_ATTACK
|
return this.ROLL_TYPES.MELEE_ATTACK
|
||||||
|
|||||||
+186
-17
@@ -237,6 +237,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
baseFormula = "D20"
|
baseFormula = "D20"
|
||||||
hasModifier = true
|
hasModifier = true
|
||||||
hasChangeDice = false
|
hasChangeDice = false
|
||||||
|
hasFavor = true
|
||||||
options.rollTarget.value = options.rollTarget.actorModifiers.levelSpellModifier + options.rollTarget.actorModifiers.intSpellModifier
|
options.rollTarget.value = options.rollTarget.actorModifiers.levelSpellModifier + options.rollTarget.actorModifiers.intSpellModifier
|
||||||
options.rollTarget.charModifier = options.rollTarget.actorModifiers.intSpellModifier
|
options.rollTarget.charModifier = options.rollTarget.actorModifiers.intSpellModifier
|
||||||
hasStaticModifier = options.rollType === "spell-power"
|
hasStaticModifier = options.rollType === "spell-power"
|
||||||
@@ -253,6 +254,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
dice = "1D20"
|
dice = "1D20"
|
||||||
baseFormula = "D20"
|
baseFormula = "D20"
|
||||||
hasChangeDice = false
|
hasChangeDice = false
|
||||||
|
hasFavor = true
|
||||||
options.rollTarget.value = options.rollTarget.actorModifiers.levelMiracleModifier + options.rollTarget.actorModifiers.chaMiracleModifier
|
options.rollTarget.value = options.rollTarget.actorModifiers.levelMiracleModifier + options.rollTarget.actorModifiers.chaMiracleModifier
|
||||||
options.rollTarget.charModifier = options.rollTarget.actorModifiers.chaMiracleModifier
|
options.rollTarget.charModifier = options.rollTarget.actorModifiers.chaMiracleModifier
|
||||||
hasStaticModifier = options.rollType === "miracle-power"
|
hasStaticModifier = options.rollType === "miracle-power"
|
||||||
@@ -336,6 +338,10 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
let modifier = "+0"
|
let modifier = "+0"
|
||||||
let targetName
|
let targetName
|
||||||
|
|
||||||
|
// True for any ranged attack: PC weapon (ranged type) or monster attack (ranged mode)
|
||||||
|
const isRangedAttack = (options.rollType === "weapon-attack" && options.rollTarget?.weapon?.system?.weaponType === "ranged")
|
||||||
|
|| (options.rollType === "monster-attack" && options.rollTarget?.attackMode === "ranged")
|
||||||
|
|
||||||
let dialogContext = {
|
let dialogContext = {
|
||||||
rollType: options.rollType,
|
rollType: options.rollType,
|
||||||
rollTarget: options.rollTarget,
|
rollTarget: options.rollTarget,
|
||||||
@@ -360,7 +366,8 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
modifier,
|
modifier,
|
||||||
saveSpell: false,
|
saveSpell: false,
|
||||||
favor: "none",
|
favor: "none",
|
||||||
targetName
|
targetName,
|
||||||
|
isRangedAttack
|
||||||
}
|
}
|
||||||
let rollContext
|
let rollContext
|
||||||
if (options.rollContext) {
|
if (options.rollContext) {
|
||||||
@@ -392,7 +399,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
label: label,
|
label: label,
|
||||||
callback: (event, button, dialog) => {
|
callback: (event, button, dialog) => {
|
||||||
console.log("Roll context", event, button, dialog)
|
console.log("Roll context", event, button, dialog)
|
||||||
let position = dialog.position
|
let position = dialog?.position
|
||||||
game.user.setFlag(SYSTEM.id, "roll-dialog-pos", foundry.utils.duplicate(position))
|
game.user.setFlag(SYSTEM.id, "roll-dialog-pos", foundry.utils.duplicate(position))
|
||||||
const output = Array.from(button.form.elements).reduce((obj, input) => {
|
const output = Array.from(button.form.elements).reduce((obj, input) => {
|
||||||
if (input.name) obj[input.name] = input.value
|
if (input.name) obj[input.name] = input.value
|
||||||
@@ -403,22 +410,22 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
actions: {
|
actions: {
|
||||||
"selectGranted": (event, button, dialog) => {
|
"selectGranted": (event, button) => {
|
||||||
hasGrantedDice = event.target.checked
|
hasGrantedDice = event.target.checked
|
||||||
},
|
},
|
||||||
"selectBeyondSkill": (event, button, dialog) => {
|
"selectBeyondSkill": (event, button) => {
|
||||||
beyondSkill = button.checked
|
beyondSkill = button.checked
|
||||||
},
|
},
|
||||||
"selectPointBlank": (event, button, dialog) => {
|
"selectPointBlank": (event, button) => {
|
||||||
pointBlank = button.checked
|
pointBlank = button.checked
|
||||||
},
|
},
|
||||||
"selectLetItFly": (event, button, dialog) => {
|
"selectLetItFly": (event, button) => {
|
||||||
letItFly = button.checked
|
letItFly = button.checked
|
||||||
},
|
},
|
||||||
"saveSpellCheck": (event, button, dialog) => {
|
"saveSpellCheck": (event, button) => {
|
||||||
saveSpell = button.checked
|
saveSpell = button.checked
|
||||||
},
|
},
|
||||||
"gotoToken": (event, button, dialog) => {
|
"gotoToken": (event, button) => {
|
||||||
let tokenId = $(button).data("tokenId")
|
let tokenId = $(button).data("tokenId")
|
||||||
let token = canvas.tokens?.get(tokenId)
|
let token = canvas.tokens?.get(tokenId)
|
||||||
if (token) {
|
if (token) {
|
||||||
@@ -592,12 +599,17 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
}
|
}
|
||||||
options.D30result = rollD30.total
|
options.D30result = rollD30.total
|
||||||
|
|
||||||
// Récupérer le message D30 correspondant
|
// Compute isRanged for D30: covers defense (isRangedDefense), monster ranged attacks (attackMode),
|
||||||
|
// and PC weapon attacks (isRangedAttack or weaponType)
|
||||||
|
const isRangedForD30 = options.isRangedDefense
|
||||||
|
|| options.rollTarget?.attackMode === "ranged"
|
||||||
|
|| options.rollTarget?.isRangedAttack === true
|
||||||
|
|| options.rollTarget?.weapon?.system?.weaponType === "ranged"
|
||||||
const d30Message = D30Roll.getResult(
|
const d30Message = D30Roll.getResult(
|
||||||
rollD30.total,
|
rollD30.total,
|
||||||
options.rollType,
|
options.rollType,
|
||||||
options.rollTarget?.weapon,
|
options.rollTarget?.weapon,
|
||||||
{ isRanged: options.isRangedDefense }
|
{ isRanged: isRangedForD30 }
|
||||||
)
|
)
|
||||||
options.D30message = d30Message
|
options.D30message = d30Message
|
||||||
}
|
}
|
||||||
@@ -710,7 +722,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
label: label,
|
label: label,
|
||||||
callback: (event, button, dialog) => {
|
callback: (event, button) => {
|
||||||
const output = Array.from(button.form.elements).reduce((obj, input) => {
|
const output = Array.from(button.form.elements).reduce((obj, input) => {
|
||||||
if (input.name) obj[input.name] = input.value
|
if (input.name) obj[input.name] = input.value
|
||||||
return obj
|
return obj
|
||||||
@@ -778,7 +790,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
buttons.push({
|
buttons.push({
|
||||||
action: "roll",
|
action: "roll",
|
||||||
label: "Roll progression dice",
|
label: "Roll progression dice",
|
||||||
callback: (event, button, dialog) => {
|
callback: (event, button) => {
|
||||||
let pos = $('#combat-action-dialog').position()
|
let pos = $('#combat-action-dialog').position()
|
||||||
game.user.setFlag(SYSTEM.id, "combat-action-dialog-pos", pos)
|
game.user.setFlag(SYSTEM.id, "combat-action-dialog-pos", pos)
|
||||||
return "rollProgressionDice"
|
return "rollProgressionDice"
|
||||||
@@ -804,7 +816,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
buttons.push({
|
buttons.push({
|
||||||
action: "roll",
|
action: "roll",
|
||||||
label: label,
|
label: label,
|
||||||
callback: (event, button, dialog) => {
|
callback: (event, button) => {
|
||||||
let pos = $('#combat-action-dialog').position()
|
let pos = $('#combat-action-dialog').position()
|
||||||
game.user.setFlag(SYSTEM.id, "combat-action-dialog-pos", foundry.utils.duplicate(pos))
|
game.user.setFlag(SYSTEM.id, "combat-action-dialog-pos", foundry.utils.duplicate(pos))
|
||||||
return "rollLethargyDice"
|
return "rollLethargyDice"
|
||||||
@@ -815,7 +827,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
buttons.push({
|
buttons.push({
|
||||||
action: "roll",
|
action: "roll",
|
||||||
label: "Select action",
|
label: "Select action",
|
||||||
callback: (event, button, dialog) => {
|
callback: (event, button) => {
|
||||||
let pos = $('#combat-action-dialog').position()
|
let pos = $('#combat-action-dialog').position()
|
||||||
game.user.setFlag(SYSTEM.id, "combat-action-dialog-pos", foundry.utils.duplicate(pos))
|
game.user.setFlag(SYSTEM.id, "combat-action-dialog-pos", foundry.utils.duplicate(pos))
|
||||||
const output = Array.from(button.form.elements).reduce((obj, input) => {
|
const output = Array.from(button.form.elements).reduce((obj, input) => {
|
||||||
@@ -830,7 +842,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
buttons.push({
|
buttons.push({
|
||||||
action: "cancel",
|
action: "cancel",
|
||||||
label: "Other action, not listed here",
|
label: "Other action, not listed here",
|
||||||
callback: (event, button, dialog) => {
|
callback: (event, button) => {
|
||||||
let pos = $('#combat-action-dialog').position()
|
let pos = $('#combat-action-dialog').position()
|
||||||
game.user.setFlag(SYSTEM.id, "combat-action-dialog-pos", foundry.utils.duplicate(pos))
|
game.user.setFlag(SYSTEM.id, "combat-action-dialog-pos", foundry.utils.duplicate(pos))
|
||||||
return null;
|
return null;
|
||||||
@@ -980,7 +992,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
}
|
}
|
||||||
// Range weapon loading
|
// Range weapon loading
|
||||||
if (!currentAction.weaponLoaded && currentAction.rangedLoad) {
|
if (!currentAction.weaponLoaded && currentAction.rangedLoad) {
|
||||||
if (currentAction.progressionCount <= currentAction.rangedLoad) {
|
if (currentAction.progressionCount < currentAction.rangedLoad) {
|
||||||
let message = `Ranged weapon ${currentAction.name} is loading, loading count : ${currentAction.progressionCount}/${currentAction.rangedLoad}`
|
let message = `Ranged weapon ${currentAction.name} is loading, loading count : ${currentAction.progressionCount}/${currentAction.rangedLoad}`
|
||||||
ChatMessage.create({ content: message, speaker: ChatMessage.getSpeaker({ actor: combatant.actor }) })
|
ChatMessage.create({ content: message, speaker: ChatMessage.getSpeaker({ actor: combatant.actor }) })
|
||||||
currentAction.progressionCount += 1
|
currentAction.progressionCount += 1
|
||||||
@@ -1077,7 +1089,7 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
label: label,
|
label: label,
|
||||||
callback: (event, button, dialog) => {
|
callback: (event, button) => {
|
||||||
const output = Array.from(button.form.elements).reduce((obj, input) => {
|
const output = Array.from(button.form.elements).reduce((obj, input) => {
|
||||||
if (input.name) obj[input.name] = input.value
|
if (input.name) obj[input.name] = input.value
|
||||||
return obj
|
return obj
|
||||||
@@ -1126,6 +1138,8 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
options = { ...options, ...rollContext }
|
options = { ...options, ...rollContext }
|
||||||
options.rollName = "Ranged Defense"
|
options.rollName = "Ranged Defense"
|
||||||
options.rollType = "weapon-defense"
|
options.rollType = "weapon-defense"
|
||||||
|
options.type = options.rollType // Required: this.type reads options.type
|
||||||
|
options.rollMode = rollContext.visibility // Required: callers pass roll.options.rollMode to toMessage
|
||||||
|
|
||||||
const rollBase = new this(rollContext.movement, options.data, rollData)
|
const rollBase = new this(rollContext.movement, options.data, rollData)
|
||||||
const rollModifier = new Roll(modifierFormula, options.data, rollData)
|
const rollModifier = new Roll(modifierFormula, options.data, rollData)
|
||||||
@@ -1193,6 +1207,161 @@ export default class LethalFantasyRoll extends Roll {
|
|||||||
return rollBase
|
return rollBase
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prompts the GM for ranged attack context (movement, range, target size, aim) when a monster
|
||||||
|
* attacks with a ranged weapon, then evaluates an exploding D20 attack roll with the resulting modifiers.
|
||||||
|
*
|
||||||
|
* @param {Object} options Options for the roll.
|
||||||
|
* @param {string} options.actorId The attacker actor ID.
|
||||||
|
* @param {string} options.actorName The attacker actor name.
|
||||||
|
* @param {Object} options.rollTarget The rollTarget containing attackModifier and related data.
|
||||||
|
* @returns {Promise<LethalFantasyRoll|null>} The resulting roll, or null if cancelled.
|
||||||
|
*/
|
||||||
|
static async promptRangedAttack(options = {}) {
|
||||||
|
const rollModes = foundry.utils.duplicate(CONFIG.ChatMessage.modes)
|
||||||
|
const fieldRollMode = new foundry.data.fields.StringField({
|
||||||
|
choices: rollModes,
|
||||||
|
blank: false,
|
||||||
|
default: "public",
|
||||||
|
})
|
||||||
|
|
||||||
|
let dialogContext = {
|
||||||
|
attackerMovementChoices: SYSTEM.ATTACKER_MOVEMENT_CHOICES,
|
||||||
|
rangeChoices: SYSTEM.RANGE_CHOICES,
|
||||||
|
sizeChoices: SYSTEM.SIZE_CHOICES,
|
||||||
|
attackerAimChoices: SYSTEM.ATTACKER_AIM_CHOICES,
|
||||||
|
movement: "none",
|
||||||
|
range: "short",
|
||||||
|
size: "+5",
|
||||||
|
attackerAim: "simple",
|
||||||
|
fieldRollMode,
|
||||||
|
rollModes
|
||||||
|
}
|
||||||
|
|
||||||
|
const content = await foundry.applications.handlebars.renderTemplate("systems/fvtt-lethal-fantasy/templates/range-attack-dialog.hbs", dialogContext)
|
||||||
|
|
||||||
|
const label = game.i18n.localize("LETHALFANTASY.Label.rangeAttackRoll")
|
||||||
|
const rollContext = await foundry.applications.api.DialogV2.wait({
|
||||||
|
window: { title: "Ranged Attack" },
|
||||||
|
classes: ["lethalfantasy"],
|
||||||
|
content,
|
||||||
|
buttons: [
|
||||||
|
{
|
||||||
|
label,
|
||||||
|
callback: (event, button) => {
|
||||||
|
const output = Array.from(button.form.elements).reduce((obj, input) => {
|
||||||
|
if (input.name) obj[input.name] = input.value
|
||||||
|
return obj
|
||||||
|
}, {})
|
||||||
|
return output
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
rejectClose: false
|
||||||
|
})
|
||||||
|
|
||||||
|
if (rollContext === null) return null
|
||||||
|
|
||||||
|
// Handle pointblank: attacker at point blank gets favor (standing still easier to aim)
|
||||||
|
if (rollContext.range === "pointblank") {
|
||||||
|
rollContext.movement = rollContext.movement.replace("kh", "")
|
||||||
|
rollContext.movement = rollContext.movement.replace("kl", "")
|
||||||
|
rollContext.movement += "kh" // Favor for attacker at point blank
|
||||||
|
rollContext.range = "0"
|
||||||
|
}
|
||||||
|
// Handle beyondskill: extreme range gives disfavor to attacker
|
||||||
|
if (rollContext.range === "beyondskill") {
|
||||||
|
rollContext.movement = rollContext.movement.replace("kh", "")
|
||||||
|
rollContext.movement = rollContext.movement.replace("kl", "")
|
||||||
|
rollContext.movement += "kl" // Disfavor for attacker beyond skill range
|
||||||
|
rollContext.range = "+11"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Compute contextual penalty: range + target_size, reduced by aim bonus and attack modifier
|
||||||
|
const attackModifier = options.rollTarget?.attackModifier ?? 0
|
||||||
|
const contextualPenalty = Number(rollContext.range) + Number(rollContext.size)
|
||||||
|
const aimBonus = Number(rollContext.attackerAim || 0)
|
||||||
|
const fullModifier = contextualPenalty - aimBonus - attackModifier
|
||||||
|
|
||||||
|
let modifierFormula
|
||||||
|
if (fullModifier === 0) {
|
||||||
|
modifierFormula = "0"
|
||||||
|
} else {
|
||||||
|
const modAbs = Math.abs(fullModifier)
|
||||||
|
modifierFormula = `D${modAbs + 1} -1`
|
||||||
|
}
|
||||||
|
|
||||||
|
const rollData = { ...rollContext }
|
||||||
|
options = { ...options, ...rollContext }
|
||||||
|
options.rollName = "Ranged Attack"
|
||||||
|
options.rollType = options.rollType || "monster-attack"
|
||||||
|
options.type = options.rollType // Required: this.type reads options.type, used to build weaponDamageOptions in toHTML
|
||||||
|
options.rollMode = rollContext.visibility // Required: callers pass roll.options.rollMode to toMessage
|
||||||
|
options.isRangedAttack = true
|
||||||
|
|
||||||
|
const rollBase = new this(rollContext.movement, options.data, rollData)
|
||||||
|
const rollModifier = new Roll(modifierFormula, options.data, rollData)
|
||||||
|
rollModifier.evaluate()
|
||||||
|
await rollBase.evaluate()
|
||||||
|
const rollD30 = await new Roll("1D30").evaluate()
|
||||||
|
options.D30result = rollD30.total
|
||||||
|
options.D30message = D30Roll.getResult(rollD30.total, options.rollType, undefined, { isRanged: true })
|
||||||
|
|
||||||
|
// Determine favor from dice formula
|
||||||
|
let badResult = 0
|
||||||
|
if (rollContext.movement.includes("kh")) {
|
||||||
|
rollData.favor = "favor"
|
||||||
|
badResult = Math.min(rollBase.terms[0].results[0].result, rollBase.terms[0].results[1]?.result || 20)
|
||||||
|
}
|
||||||
|
if (rollContext.movement.includes("kl")) {
|
||||||
|
rollData.favor = "disfavor"
|
||||||
|
badResult = Math.max(rollBase.terms[0].results[0].result, rollBase.terms[0].results[1]?.result || 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
const dice = rollContext.movement
|
||||||
|
const maxValue = 20
|
||||||
|
let rollTotal = -1
|
||||||
|
let diceResults = []
|
||||||
|
|
||||||
|
let diceResult = rollBase.dice[0].results[0].result
|
||||||
|
diceResults.push({ dice: `${dice.toUpperCase()}`, value: diceResult })
|
||||||
|
let diceSum = diceResult
|
||||||
|
// Exploding dice
|
||||||
|
while (diceResult === maxValue) {
|
||||||
|
const r = await new Roll(dice).evaluate()
|
||||||
|
diceResult = r.dice[0].results[0].result
|
||||||
|
diceResults.push({ dice: `${dice.toUpperCase()}-1`, value: diceResult - 1 })
|
||||||
|
diceSum += (diceResult - 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fullModifier !== 0) {
|
||||||
|
diceResults.push({ dice: `${rollModifier.formula.toUpperCase()}`, value: rollModifier.total })
|
||||||
|
if (fullModifier > 0) {
|
||||||
|
// Net penalty: subtract from roll
|
||||||
|
rollTotal = Math.max(diceSum - rollModifier.total, 0)
|
||||||
|
} else {
|
||||||
|
// Net bonus: add to roll
|
||||||
|
rollTotal = diceSum + rollModifier.total
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
rollTotal = diceSum
|
||||||
|
}
|
||||||
|
|
||||||
|
rollBase.options = { ...rollBase.options, ...options }
|
||||||
|
rollBase.options.resultType = undefined
|
||||||
|
rollBase.options.rollTotal = rollTotal
|
||||||
|
rollBase.options.diceResults = diceResults
|
||||||
|
rollBase.options.rollTarget = options.rollTarget
|
||||||
|
rollBase.options.titleFormula = `1D20E + ${modifierFormula}`
|
||||||
|
rollBase.options.D30result = options.D30result
|
||||||
|
rollBase.options.D30message = options.D30message
|
||||||
|
rollBase.options.rollName = "Ranged Attack"
|
||||||
|
rollBase.options.badResult = badResult
|
||||||
|
rollBase.options.rollData = foundry.utils.duplicate(rollData)
|
||||||
|
|
||||||
|
return rollBase
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a title based on the given type.
|
* Creates a title based on the given type.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -166,6 +166,22 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
|||||||
*/
|
*/
|
||||||
async roll(rollType, rollTarget, defenderId = undefined, defenderTokenId = undefined, extraShieldDr = 0) {
|
async roll(rollType, rollTarget, defenderId = undefined, defenderTokenId = undefined, extraShieldDr = 0) {
|
||||||
const hasTarget = false
|
const hasTarget = false
|
||||||
|
|
||||||
|
// Ranged monster defense uses the ranged defense dialog (movement, range, size modifiers)
|
||||||
|
if (rollType === "monster-defense" && rollTarget?.isRangedDefense === true) {
|
||||||
|
let roll = await LethalFantasyRoll.promptRangedDefense({
|
||||||
|
actorId: this.parent.id,
|
||||||
|
actorName: this.parent.name,
|
||||||
|
actorImage: this.parent.img,
|
||||||
|
rollTarget,
|
||||||
|
defenderId,
|
||||||
|
defenderTokenId,
|
||||||
|
})
|
||||||
|
if (!roll) return null
|
||||||
|
await roll.toMessage({}, { messageMode: roll.options.rollMode })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let roll = await LethalFantasyRoll.prompt({
|
let roll = await LethalFantasyRoll.prompt({
|
||||||
rollType,
|
rollType,
|
||||||
rollTarget,
|
rollTarget,
|
||||||
|
|||||||
+2
-2
@@ -854,7 +854,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 single-btn">
|
||||||
<button class="roll-damage-btn" data-attacker-id="${data.attackerId}" data-defender-id="${data.defenderId}" data-defender-token-id="${data.defenderTokenId || ""}" data-extra-shield-dr="${data.shieldDamageReduction || 0}" 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-extra-shield-dr="${data.shieldDamageReduction || 0}" 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>
|
||||||
@@ -881,7 +881,7 @@ export default class LethalFantasyUtils {
|
|||||||
<i class="fa-solid fa-wand-magic-sparkles"></i> ${t.label} (${escapedFormula})
|
<i class="fa-solid fa-wand-magic-sparkles"></i> ${t.label} (${escapedFormula})
|
||||||
</button>`
|
</button>`
|
||||||
}).join("")
|
}).join("")
|
||||||
damageButton = `<div class="attack-result-damage">${buttons}</div>`
|
damageButton = `<div class="attack-result-damage spell-damage">${buttons}</div>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
MANIFEST-000603
|
MANIFEST-000619
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/05/19-10:50:35.862031 7f5a477fe6c0 Recovering log #601
|
2026/05/24-09:22:43.041326 7fdfa95ff6c0 Recovering log #617
|
||||||
2026/05/19-10:50:35.923479 7f5a477fe6c0 Delete type=3 #599
|
2026/05/24-09:22:43.083988 7fdfa95ff6c0 Delete type=3 #615
|
||||||
2026/05/19-10:50:35.923537 7f5a477fe6c0 Delete type=0 #601
|
2026/05/24-09:22:43.084045 7fdfa95ff6c0 Delete type=0 #617
|
||||||
2026/05/19-10:51:28.990207 7f5a467fc6c0 Level-0 table #606: started
|
2026/05/24-09:42:00.304351 7fdf5affd6c0 Level-0 table #622: started
|
||||||
2026/05/19-10:51:28.990237 7f5a467fc6c0 Level-0 table #606: 0 bytes OK
|
2026/05/24-09:42:00.304423 7fdf5affd6c0 Level-0 table #622: 0 bytes OK
|
||||||
2026/05/19-10:51:28.997402 7f5a467fc6c0 Delete type=0 #604
|
2026/05/24-09:42:00.311333 7fdf5affd6c0 Delete type=0 #620
|
||||||
2026/05/19-10:51:28.997604 7f5a467fc6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
2026/05/24-09:42:00.334170 7fdf5affd6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||||
2026/05/19-10:51:28.997650 7f5a467fc6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
2026/05/24-09:42:00.334370 7fdf5affd6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/05/18-17:40:11.769288 7f5a477fe6c0 Recovering log #597
|
2026/05/23-18:45:10.214922 7fa233fff6c0 Recovering log #613
|
||||||
2026/05/18-17:40:11.780605 7f5a477fe6c0 Delete type=3 #595
|
2026/05/23-18:45:10.223944 7fa233fff6c0 Delete type=3 #611
|
||||||
2026/05/18-17:40:11.780699 7f5a477fe6c0 Delete type=0 #597
|
2026/05/23-18:45:10.223997 7fa233fff6c0 Delete type=0 #613
|
||||||
2026/05/18-20:25:54.228818 7f5a467fc6c0 Level-0 table #602: started
|
2026/05/23-19:09:56.190877 7fa2327fc6c0 Level-0 table #618: started
|
||||||
2026/05/18-20:25:54.230037 7f5a467fc6c0 Level-0 table #602: 0 bytes OK
|
2026/05/23-19:09:56.190922 7fa2327fc6c0 Level-0 table #618: 0 bytes OK
|
||||||
2026/05/18-20:25:54.236369 7f5a467fc6c0 Delete type=0 #600
|
2026/05/23-19:09:56.224359 7fa2327fc6c0 Delete type=0 #616
|
||||||
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/23-19:09:56.339160 7fa2327fc6c0 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)
|
2026/05/23-19:09:56.339194 7fa2327fc6c0 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-000600
|
MANIFEST-000616
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/05/19-10:50:35.962917 7f5a46ffd6c0 Recovering log #598
|
2026/05/24-09:22:43.091828 7fdfa8dfe6c0 Recovering log #614
|
||||||
2026/05/19-10:50:36.018914 7f5a46ffd6c0 Delete type=3 #596
|
2026/05/24-09:22:43.131041 7fdfa8dfe6c0 Delete type=3 #612
|
||||||
2026/05/19-10:50:36.018977 7f5a46ffd6c0 Delete type=0 #598
|
2026/05/24-09:22:43.131104 7fdfa8dfe6c0 Delete type=0 #614
|
||||||
2026/05/19-10:51:28.983427 7f5a467fc6c0 Level-0 table #603: started
|
2026/05/24-09:42:00.326388 7fdf5affd6c0 Level-0 table #619: started
|
||||||
2026/05/19-10:51:28.983464 7f5a467fc6c0 Level-0 table #603: 0 bytes OK
|
2026/05/24-09:42:00.326417 7fdf5affd6c0 Level-0 table #619: 0 bytes OK
|
||||||
2026/05/19-10:51:28.990020 7f5a467fc6c0 Delete type=0 #601
|
2026/05/24-09:42:00.334051 7fdf5affd6c0 Delete type=0 #617
|
||||||
2026/05/19-10:51:28.997591 7f5a467fc6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
2026/05/24-09:42:00.334205 7fdf5affd6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||||
2026/05/19-10:51:28.997639 7f5a467fc6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
2026/05/24-09:42:00.334364 7fdf5affd6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/05/18-17:40:11.793894 7f5a94bff6c0 Recovering log #594
|
2026/05/23-18:45:10.228083 7fa232ffd6c0 Recovering log #610
|
||||||
2026/05/18-17:40:11.804447 7f5a94bff6c0 Delete type=3 #592
|
2026/05/23-18:45:10.236935 7fa232ffd6c0 Delete type=3 #608
|
||||||
2026/05/18-17:40:11.804549 7f5a94bff6c0 Delete type=0 #594
|
2026/05/23-18:45:10.236958 7fa232ffd6c0 Delete type=0 #610
|
||||||
2026/05/18-20:25:54.236611 7f5a467fc6c0 Level-0 table #599: started
|
2026/05/23-19:09:56.261648 7fa2327fc6c0 Level-0 table #615: started
|
||||||
2026/05/18-20:25:54.236652 7f5a467fc6c0 Level-0 table #599: 0 bytes OK
|
2026/05/23-19:09:56.261672 7fa2327fc6c0 Level-0 table #615: 0 bytes OK
|
||||||
2026/05/18-20:25:54.243997 7f5a467fc6c0 Delete type=0 #597
|
2026/05/23-19:09:56.304021 7fa2327fc6c0 Delete type=0 #613
|
||||||
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/23-19:09:56.339181 7fa2327fc6c0 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)
|
2026/05/23-19:09:56.339208 7fa2327fc6c0 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-000605
|
MANIFEST-000621
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/05/19-10:50:35.772455 7f5a46ffd6c0 Recovering log #603
|
2026/05/24-09:22:42.993966 7fdfa8dfe6c0 Recovering log #619
|
||||||
2026/05/19-10:50:35.837426 7f5a46ffd6c0 Delete type=3 #601
|
2026/05/24-09:22:43.035467 7fdfa8dfe6c0 Delete type=3 #617
|
||||||
2026/05/19-10:50:35.837512 7f5a46ffd6c0 Delete type=0 #603
|
2026/05/24-09:22:43.035518 7fdfa8dfe6c0 Delete type=0 #619
|
||||||
2026/05/19-10:51:28.969686 7f5a467fc6c0 Level-0 table #608: started
|
2026/05/24-09:42:00.319082 7fdf5affd6c0 Level-0 table #624: started
|
||||||
2026/05/19-10:51:28.969769 7f5a467fc6c0 Level-0 table #608: 0 bytes OK
|
2026/05/24-09:42:00.319109 7fdf5affd6c0 Level-0 table #624: 0 bytes OK
|
||||||
2026/05/19-10:51:28.976467 7f5a467fc6c0 Delete type=0 #606
|
2026/05/24-09:42:00.326261 7fdf5affd6c0 Delete type=0 #622
|
||||||
2026/05/19-10:51:28.997558 7f5a467fc6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
2026/05/24-09:42:00.334196 7fdf5affd6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||||
2026/05/19-10:51:28.997616 7f5a467fc6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
2026/05/24-09:42:00.334355 7fdf5affd6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/05/18-17:40:11.749971 7f5a46ffd6c0 Recovering log #599
|
2026/05/23-18:45:10.200781 7fa2337fe6c0 Recovering log #615
|
||||||
2026/05/18-17:40:11.761423 7f5a46ffd6c0 Delete type=3 #597
|
2026/05/23-18:45:10.211345 7fa2337fe6c0 Delete type=3 #613
|
||||||
2026/05/18-17:40:11.761520 7f5a46ffd6c0 Delete type=0 #599
|
2026/05/23-18:45:10.211416 7fa2337fe6c0 Delete type=0 #615
|
||||||
2026/05/18-20:25:54.219239 7f5a467fc6c0 Level-0 table #604: started
|
2026/05/23-19:09:56.304132 7fa2327fc6c0 Level-0 table #620: started
|
||||||
2026/05/18-20:25:54.219522 7f5a467fc6c0 Level-0 table #604: 0 bytes OK
|
2026/05/23-19:09:56.304162 7fa2327fc6c0 Level-0 table #620: 0 bytes OK
|
||||||
2026/05/18-20:25:54.228610 7f5a467fc6c0 Delete type=0 #602
|
2026/05/23-19:09:56.339034 7fa2327fc6c0 Delete type=0 #618
|
||||||
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/23-19:09:56.339189 7fa2327fc6c0 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)
|
2026/05/23-19:09:56.339203 7fa2327fc6c0 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-000300
|
MANIFEST-000316
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/05/19-10:50:36.147771 7f5a46ffd6c0 Recovering log #298
|
2026/05/24-09:22:43.194643 7fdfa8dfe6c0 Recovering log #314
|
||||||
2026/05/19-10:50:36.209801 7f5a46ffd6c0 Delete type=3 #296
|
2026/05/24-09:22:43.231409 7fdfa8dfe6c0 Delete type=3 #312
|
||||||
2026/05/19-10:50:36.209908 7f5a46ffd6c0 Delete type=0 #298
|
2026/05/24-09:22:43.231470 7fdfa8dfe6c0 Delete type=0 #314
|
||||||
2026/05/19-10:51:29.021338 7f5a467fc6c0 Level-0 table #303: started
|
2026/05/24-09:42:00.341818 7fdf5affd6c0 Level-0 table #319: started
|
||||||
2026/05/19-10:51:29.021378 7f5a467fc6c0 Level-0 table #303: 0 bytes OK
|
2026/05/24-09:42:00.341853 7fdf5affd6c0 Level-0 table #319: 0 bytes OK
|
||||||
2026/05/19-10:51:29.027529 7f5a467fc6c0 Delete type=0 #301
|
2026/05/24-09:42:00.348538 7fdf5affd6c0 Delete type=0 #317
|
||||||
2026/05/19-10:51:29.027761 7f5a467fc6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
2026/05/24-09:42:00.367125 7fdf5affd6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||||
2026/05/19-10:51:29.027787 7f5a467fc6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
2026/05/24-09:42:00.367348 7fdf5affd6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/05/18-17:40:11.831491 7f5a94bff6c0 Recovering log #294
|
2026/05/23-18:45:10.252202 7fa2337fe6c0 Recovering log #310
|
||||||
2026/05/18-17:40:11.842913 7f5a94bff6c0 Delete type=3 #292
|
2026/05/23-18:45:10.261300 7fa2337fe6c0 Delete type=3 #308
|
||||||
2026/05/18-17:40:11.843005 7f5a94bff6c0 Delete type=0 #294
|
2026/05/23-18:45:10.261343 7fa2337fe6c0 Delete type=0 #310
|
||||||
2026/05/18-20:25:54.257813 7f5a467fc6c0 Level-0 table #299: started
|
2026/05/23-19:09:56.467263 7fa2327fc6c0 Level-0 table #315: started
|
||||||
2026/05/18-20:25:54.257869 7f5a467fc6c0 Level-0 table #299: 0 bytes OK
|
2026/05/23-19:09:56.467308 7fa2327fc6c0 Level-0 table #315: 0 bytes OK
|
||||||
2026/05/18-20:25:54.264186 7f5a467fc6c0 Delete type=0 #297
|
2026/05/23-19:09:56.509084 7fa2327fc6c0 Delete type=0 #313
|
||||||
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/23-19:09:56.608544 7fa2327fc6c0 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)
|
2026/05/23-19:09:56.665018 7fa2327fc6c0 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-000599
|
MANIFEST-000615
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/05/19-10:50:36.056028 7f5a47fff6c0 Recovering log #597
|
2026/05/24-09:22:43.141936 7fdf5bfff6c0 Recovering log #613
|
||||||
2026/05/19-10:50:36.115465 7f5a47fff6c0 Delete type=3 #595
|
2026/05/24-09:22:43.189387 7fdf5bfff6c0 Delete type=3 #611
|
||||||
2026/05/19-10:50:36.115585 7f5a47fff6c0 Delete type=0 #597
|
2026/05/24-09:22:43.189438 7fdf5bfff6c0 Delete type=0 #613
|
||||||
2026/05/19-10:51:28.976707 7f5a467fc6c0 Level-0 table #602: started
|
2026/05/24-09:42:00.311436 7fdf5affd6c0 Level-0 table #618: started
|
||||||
2026/05/19-10:51:28.976754 7f5a467fc6c0 Level-0 table #602: 0 bytes OK
|
2026/05/24-09:42:00.311459 7fdf5affd6c0 Level-0 table #618: 0 bytes OK
|
||||||
2026/05/19-10:51:28.983222 7f5a467fc6c0 Delete type=0 #600
|
2026/05/24-09:42:00.318964 7fdf5affd6c0 Delete type=0 #616
|
||||||
2026/05/19-10:51:28.997577 7f5a467fc6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
2026/05/24-09:42:00.334187 7fdf5affd6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||||
2026/05/19-10:51:28.997627 7f5a467fc6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
2026/05/24-09:42:00.334334 7fdf5affd6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
2026/05/18-17:40:11.812004 7f5a47fff6c0 Recovering log #593
|
2026/05/23-18:45:10.238924 7fa233fff6c0 Recovering log #609
|
||||||
2026/05/18-17:40:11.823277 7f5a47fff6c0 Delete type=3 #591
|
2026/05/23-18:45:10.250309 7fa233fff6c0 Delete type=3 #607
|
||||||
2026/05/18-17:40:11.823388 7f5a47fff6c0 Delete type=0 #593
|
2026/05/23-18:45:10.250371 7fa233fff6c0 Delete type=0 #609
|
||||||
2026/05/18-20:25:54.244177 7f5a467fc6c0 Level-0 table #598: started
|
2026/05/23-19:09:56.224507 7fa2327fc6c0 Level-0 table #614: started
|
||||||
2026/05/18-20:25:54.244222 7f5a467fc6c0 Level-0 table #598: 0 bytes OK
|
2026/05/23-19:09:56.224539 7fa2327fc6c0 Level-0 table #614: 0 bytes OK
|
||||||
2026/05/18-20:25:54.250810 7f5a467fc6c0 Delete type=0 #596
|
2026/05/23-19:09:56.261516 7fa2327fc6c0 Delete type=0 #612
|
||||||
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/23-19:09:56.339172 7fa2327fc6c0 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)
|
2026/05/23-19:09:56.339199 7fa2327fc6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||||
|
|||||||
BIN
Binary file not shown.
+48
-12
@@ -301,36 +301,72 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.attack-result-damage {
|
.attack-result-damage {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 6px;
|
gap: 8px;
|
||||||
justify-content: center;
|
|
||||||
|
&.single-btn {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
max-width: 280px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.spell-damage {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.roll-damage-btn {
|
.roll-damage-btn {
|
||||||
padding: 8px 10px;
|
padding: 10px 14px;
|
||||||
background: linear-gradient(to bottom, #8b0000 0%, #660000 100%);
|
background: linear-gradient(to bottom, #8b0000 0%, #660000 100%);
|
||||||
border: 1px solid #ff0000;
|
border: 1px solid #4b0000;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
color: #f0e6d2;
|
color: #f0e6d2;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: calc(var(--font-size-standard) * 0.9);
|
font-size: calc(var(--font-size-standard) * 0.9);
|
||||||
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 6px;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
|
||||||
|
transition: left 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover::before {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.1);
|
||||||
|
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: linear-gradient(to bottom, #a00000 0%, #7b0000 100%);
|
background: linear-gradient(to bottom, #a00000 0%, #7b0000 100%);
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
|
border-color: #5b0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||||
|
|
||||||
i {
|
|
||||||
margin-right: 6px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+49
-10
@@ -1285,33 +1285,72 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.attack-result-damage {
|
.attack-result-damage {
|
||||||
display: flex;
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
justify-content: center;
|
|
||||||
|
&.single-btn {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
max-width: 280px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.spell-damage {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.roll-damage-btn {
|
.roll-damage-btn {
|
||||||
padding: 10px 16px;
|
padding: 10px 14px;
|
||||||
background: linear-gradient(to bottom, #8b0000 0%, #660000 100%);
|
background: linear-gradient(to bottom, #8b0000 0%, #660000 100%);
|
||||||
border: 1px solid #ff0000;
|
border: 1px solid #4b0000;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
color: #f0e6d2;
|
color: #f0e6d2;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
font-size: calc(var(--font-size-standard) * 0.9);
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 6px;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
|
||||||
|
transition: left 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover::before {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.1);
|
||||||
|
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: linear-gradient(to bottom, #a00000 0%, #7b0000 100%);
|
background: linear-gradient(to bottom, #a00000 0%, #7b0000 100%);
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
|
border-color: #5b0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||||
|
|
||||||
i {
|
|
||||||
margin-right: 6px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,25 @@
|
|||||||
<i class="fa-duotone fa-solid fa-stars" data-roll-type="spell-power" data-roll-key="{{item.id}}"></i>
|
<i class="fa-duotone fa-solid fa-stars" data-roll-type="spell-power" data-roll-key="{{item.id}}"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
{{#if item.system.damageDice}}
|
||||||
|
<a data-action="rollSpellDamage" data-item-id="{{item.id}}" data-damage-tier="standard"
|
||||||
|
data-tooltip="Spell Damage (Standard)">
|
||||||
|
<i class="fa-solid fa-wand-magic-sparkles"></i>S
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
|
{{#if item.system.damageDiceOverpowered}}
|
||||||
|
<a data-action="rollSpellDamage" data-item-id="{{item.id}}" data-damage-tier="overpowered"
|
||||||
|
data-tooltip="Spell Damage (Overpowered)">
|
||||||
|
<i class="fa-solid fa-wand-magic-sparkles"></i>O
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
|
{{#if item.system.damageDiceOverpowered2}}
|
||||||
|
<a data-action="rollSpellDamage" data-item-id="{{item.id}}" data-damage-tier="overpowered2"
|
||||||
|
data-tooltip="Spell Damage (Overpowered 2)">
|
||||||
|
<i class="fa-solid fa-wand-magic-sparkles"></i>O2
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<a data-tooltip="{{localize 'LETHALFANTASY.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
|
<a data-tooltip="{{localize 'LETHALFANTASY.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
|
||||||
data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
<div class="lethalfantasy-range-defense-dialog">
|
||||||
|
|
||||||
|
<fieldSet class="">
|
||||||
|
<legend>{{localize "LETHALFANTASY.Label.rangeAttackDialog"}}</legend>
|
||||||
|
|
||||||
|
<div class="field-section">
|
||||||
|
<span class="field-name">Attacker Movement :</span>
|
||||||
|
<select name="movement" data-tooltip-direction="UP">
|
||||||
|
{{selectOptions attackerMovementChoices selected=movement}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field-section">
|
||||||
|
<span class="field-name">Range :</span>
|
||||||
|
<select name="range" data-tooltip-direction="UP">
|
||||||
|
{{selectOptions rangeChoices selected=range}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field-section">
|
||||||
|
<span class="field-name">Target Size :</span>
|
||||||
|
<select name="size" data-tooltip-direction="UP">
|
||||||
|
{{selectOptions sizeChoices selected=size}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field-section">
|
||||||
|
<span class="field-name">Aim :</span>
|
||||||
|
<select name="attackerAim" data-tooltip-direction="UP">
|
||||||
|
{{selectOptions attackerAimChoices selected=attackerAim}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</fieldSet>
|
||||||
|
|
||||||
|
<fieldSet>
|
||||||
|
<legend>{{localize "LETHALFANTASY.Roll.visibility"}}</legend>
|
||||||
|
<span class="fieldset-centered">
|
||||||
|
<select name="visibility">
|
||||||
|
{{selectOptions rollModes selected=visibility localize=true}}
|
||||||
|
</select>
|
||||||
|
</span>
|
||||||
|
</fieldSet>
|
||||||
|
|
||||||
|
</div>
|
||||||
@@ -55,8 +55,7 @@
|
|||||||
<div class="dialog-save">Add Granted Attack Dice
|
<div class="dialog-save">Add Granted Attack Dice
|
||||||
<input type="checkbox" data-action="selectGranted" name="granted" />
|
<input type="checkbox" data-action="selectGranted" name="granted" />
|
||||||
</div>
|
</div>
|
||||||
{{#if rollTarget.weapon}}
|
{{#if isRangedAttack}}
|
||||||
{{#if (eq rollTarget.weapon.system.weaponType "melee")}}{{else}}
|
|
||||||
<div class="dialog-save">Point Blank Range Attack
|
<div class="dialog-save">Point Blank Range Attack
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@@ -84,7 +83,6 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if (match rollType "defense")}}
|
{{#if (match rollType "defense")}}
|
||||||
|
|||||||
Reference in New Issue
Block a user