Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a3fc0a42b9 | |||
| c8ce840e98 | |||
| 55a040062a | |||
| 1818a76499 | |||
| 55d1b41ca4 | |||
| 841ed82277 |
@@ -1178,6 +1178,45 @@ i.lethalfantasy {
|
||||
margin-left: 4px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.lethalfantasy .tab.monster-combat .ranged-attacks {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.lethalfantasy .tab.monster-combat .ranged-attacks .attack .name {
|
||||
min-width: 10rem;
|
||||
max-width: 10rem;
|
||||
}
|
||||
.lethalfantasy .tab.monster-combat .ranged-attacks .attack .damage-dice {
|
||||
width: 5rem;
|
||||
max-width: 5rem;
|
||||
}
|
||||
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range {
|
||||
margin-top: 8px;
|
||||
border-top: 1px solid var(--color-border-light-tertiary, #ccc);
|
||||
padding-top: 6px;
|
||||
}
|
||||
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range > label {
|
||||
font-weight: bold;
|
||||
margin-bottom: 4px;
|
||||
display: block;
|
||||
}
|
||||
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields .range-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields .range-field label {
|
||||
font-size: 0.7rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields .range-field input {
|
||||
width: 3.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
.lethalfantasy .tab.monster-combat .armors {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
|
||||
@@ -462,6 +462,13 @@
|
||||
"notes": "Notes",
|
||||
"pc": "PC",
|
||||
"perception": "Perception",
|
||||
"pointBlank": "Point blank",
|
||||
"short": "Short",
|
||||
"medium": "Medium",
|
||||
"long": "Long",
|
||||
"extreme": "Extreme",
|
||||
"outOfSkill": "Out of skill",
|
||||
"range": "Range",
|
||||
"rangeDefenseDialog": "Ranged defense dialog",
|
||||
"rangeDefenseRoll": "Ranged defense roll",
|
||||
"rangedAttackDefense": "Ranged attack defense",
|
||||
|
||||
+11
-2
@@ -265,6 +265,15 @@ Hooks.on(hookName, (message, html, data) => {
|
||||
}
|
||||
|
||||
// Préparer le message de demande de défense
|
||||
// isRanged: true si le monstre était en mode ranged (via rollTarget.attackMode stocké dans le roll)
|
||||
// OU si l'attaquant utilisait une arme ranged (weapon-attack avec weaponType === "ranged")
|
||||
const attacker = game.actors.get(attackerId)
|
||||
const rollTargetOptions = message.rolls[0]?.options?.rollTarget
|
||||
const attackerWeapon = rollTargetOptions?.weapon
|
||||
const isRangedAttack = (rollTargetOptions?.attackMode === "ranged")
|
||||
|| (attacker?.type === "monster" && attacker.system.attackMode === "ranged")
|
||||
|| (attackerWeapon?.system?.weaponType === "ranged")
|
||||
|
||||
const defenseMsg = {
|
||||
type: "requestDefense",
|
||||
attackerName: attackerName,
|
||||
@@ -279,7 +288,8 @@ Hooks.on(hookName, (message, html, data) => {
|
||||
attackD30message: attackD30message,
|
||||
attackRerollContext: attackRerollContext,
|
||||
combatantId: combatantId,
|
||||
tokenId: tokenId
|
||||
tokenId: tokenId,
|
||||
isRanged: isRangedAttack
|
||||
}
|
||||
|
||||
// Envoyer le message socket à l'utilisateur contrôlant le combatant
|
||||
@@ -292,7 +302,6 @@ Hooks.on(hookName, (message, html, data) => {
|
||||
}
|
||||
|
||||
// Récupérer l'acteur attaquant pour vérifier qui l'a lancé
|
||||
const attacker = game.actors.get(attackerId)
|
||||
const attackerOwners = attacker ? game.users.filter(u => attacker.testUserPermission(u, "OWNER")).map(u => u.id) : []
|
||||
|
||||
// Monsters always need their owner (usually the GM) to roll a save/defense,
|
||||
|
||||
@@ -4,70 +4,171 @@
|
||||
"melee_attack": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{ "type": "special_strike", "options": ["lethal", "vital"] },
|
||||
{ "type": "bonus_dice", "dice": "D20E", "target": "attack" }
|
||||
{
|
||||
"type": "special_strike",
|
||||
"options": [
|
||||
"lethal",
|
||||
"vital"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D20E",
|
||||
"target": "attack"
|
||||
}
|
||||
],
|
||||
"description": "Possible Lethal or Vital Strike or Add D20E to Attack"
|
||||
},
|
||||
"ranged_attack": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{ "type": "special_strike", "options": ["lethal", "vital"] },
|
||||
{ "type": "bonus_dice", "dice": "D20E", "target": "attack" }
|
||||
{
|
||||
"type": "special_strike",
|
||||
"options": [
|
||||
"lethal",
|
||||
"vital"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D20E",
|
||||
"target": "attack"
|
||||
}
|
||||
],
|
||||
"description": "Possible Lethal or Vital Strike or Add D20E to Attack"
|
||||
},
|
||||
"melee_defense": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{ "type": "special_defense", "options": ["flawless", "legendary"] },
|
||||
{ "type": "bonus_dice", "dice": "D20E", "target": "defense" }
|
||||
{
|
||||
"type": "special_defense",
|
||||
"options": [
|
||||
"flawless",
|
||||
"legendary"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D20E",
|
||||
"target": "defense"
|
||||
}
|
||||
],
|
||||
"description": "Possible Flawless or Legendary Defense or Add D20E to Defense"
|
||||
},
|
||||
"arcane_spell_attack": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{ "type": "special_strike", "options": ["lethal_magical", "vital_magical"] },
|
||||
{ "type": "bonus_dice", "dice": "D20E", "target": "spell_attack" }
|
||||
{
|
||||
"type": "special_strike",
|
||||
"options": [
|
||||
"lethal_magical",
|
||||
"vital_magical"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D20E",
|
||||
"target": "spell_attack"
|
||||
}
|
||||
],
|
||||
"description": "Possible Lethal or Vital Magical Strike or Add D20E to Spell Attack"
|
||||
},
|
||||
"arcane_spell_defense": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{ "type": "spell_calamity" },
|
||||
{ "type": "bonus_dice", "dice": "D20E", "target": "spell_defense" }
|
||||
{
|
||||
"type": "spell_calamity"
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D20E",
|
||||
"target": "spell_defense"
|
||||
}
|
||||
],
|
||||
"description": "Possible Spell Catastrophe or adds D20E to Spell Defense"
|
||||
},
|
||||
"skill_rolls": {
|
||||
"type": "skill_auto_success",
|
||||
"description": "Skill Succeeds Regardless of Opposing Roll"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{
|
||||
"type": "special_defense",
|
||||
"options": [
|
||||
"flawless",
|
||||
"legendary"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D20E",
|
||||
"target": "defense"
|
||||
}
|
||||
],
|
||||
"description": "Possible Flawless or Legendary Defense or Add D20E to Defense"
|
||||
}
|
||||
},
|
||||
"29": {
|
||||
"melee_attack": { "type": "gain_grit", "amount": 1, "description": "Gain 1 Grit" },
|
||||
"ranged_attack": { "type": "gain_grit", "amount": 1, "description": "Gain 1 Grit" },
|
||||
"melee_defense": { "type": "gain_grit", "amount": 1, "description": "Gain 1 Grit" },
|
||||
"arcane_spell_attack": { "type": "gain_grit", "amount": 1, "description": "Gain 1 Grit" },
|
||||
"arcane_spell_defense": { "type": "gain_grit", "amount": 1, "description": "Gain 1 Grit" },
|
||||
"skill_rolls": { "type": "gain_grit", "amount": 1, "description": "Gain 1 Grit" }
|
||||
"melee_attack": {
|
||||
"type": "gain_grit",
|
||||
"amount": 1,
|
||||
"description": "Gain 1 Grit"
|
||||
},
|
||||
"ranged_attack": {
|
||||
"type": "gain_grit",
|
||||
"amount": 1,
|
||||
"description": "Gain 1 Grit"
|
||||
},
|
||||
"melee_defense": {
|
||||
"type": "gain_grit",
|
||||
"amount": 1,
|
||||
"description": "Gain 1 Grit"
|
||||
},
|
||||
"arcane_spell_attack": {
|
||||
"type": "gain_grit",
|
||||
"amount": 1,
|
||||
"description": "Gain 1 Grit"
|
||||
},
|
||||
"arcane_spell_defense": {
|
||||
"type": "gain_grit",
|
||||
"amount": 1,
|
||||
"description": "Gain 1 Grit"
|
||||
},
|
||||
"skill_rolls": {
|
||||
"type": "gain_grit",
|
||||
"amount": 1,
|
||||
"description": "Gain 1 Grit"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "gain_grit",
|
||||
"amount": 1,
|
||||
"description": "Gain 1 Grit"
|
||||
}
|
||||
},
|
||||
"28": {
|
||||
"melee_attack": { "type": "shield_destruction", "description": "Shield Destruction" }
|
||||
"melee_attack": {
|
||||
"type": "shield_destruction",
|
||||
"description": "Shield Destruction"
|
||||
}
|
||||
},
|
||||
"27": {
|
||||
"melee_attack": {
|
||||
"type": "bonus_dice", "dice": "D6", "target": "attack",
|
||||
"type": "bonus_dice",
|
||||
"dice": "D6",
|
||||
"target": "attack",
|
||||
"description": "Granted D6 (1-6) Attack Modifier for This Melee Attack"
|
||||
},
|
||||
"ranged_attack": {
|
||||
"type": "bonus_dice", "dice": "D6", "target": "attack",
|
||||
"type": "bonus_dice",
|
||||
"dice": "D6",
|
||||
"target": "attack",
|
||||
"description": "Granted D6 (1-6) Attack Modifier for This Ranged Attack"
|
||||
},
|
||||
"melee_defense": {
|
||||
"type": "luck_die", "scope": "combat",
|
||||
"type": "luck_die",
|
||||
"scope": "combat",
|
||||
"description": "Granted 1 Luck dice for Use in This Combat Only"
|
||||
},
|
||||
"arcane_spell_attack": {
|
||||
@@ -75,26 +176,42 @@
|
||||
"description": "No Spell Lethargy the Aether Approves of Characters Efforts"
|
||||
},
|
||||
"arcane_spell_defense": {
|
||||
"type": "flash_of_pain", "duration_dice": "1D6E", "target": "caster",
|
||||
"type": "flash_of_pain",
|
||||
"duration_dice": "1D6E",
|
||||
"target": "caster",
|
||||
"description": "Caster Suffers Severe pain and will be under a flash of pain for 1D6E seconds"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "luck_die",
|
||||
"scope": "combat",
|
||||
"description": "Granted 1 Luck dice for Use in This Combat Only"
|
||||
}
|
||||
},
|
||||
"26": {
|
||||
"melee_attack": { "type": "shield_destruction", "description": "Shield Destruction" }
|
||||
"melee_attack": {
|
||||
"type": "shield_destruction",
|
||||
"description": "Shield Destruction"
|
||||
}
|
||||
},
|
||||
"25": {
|
||||
"skill_rolls": {
|
||||
"type": "bonus_flat", "amount": 1, "target": "skill",
|
||||
"type": "bonus_flat",
|
||||
"amount": 1,
|
||||
"target": "skill",
|
||||
"description": "Add 1 to Skill Roll"
|
||||
}
|
||||
},
|
||||
"21": {
|
||||
"melee_attack": {
|
||||
"type": "flash_of_pain", "duration_dice": "1D6E", "target": "defender",
|
||||
"type": "flash_of_pain",
|
||||
"duration_dice": "1D6E",
|
||||
"target": "defender",
|
||||
"description": "Hit Inflicts Flash of Pain 1D6E seconds"
|
||||
},
|
||||
"ranged_attack": {
|
||||
"type": "flash_of_pain", "duration_dice": "1D6E", "target": "defender",
|
||||
"type": "flash_of_pain",
|
||||
"duration_dice": "1D6E",
|
||||
"target": "defender",
|
||||
"description": "Hit Inflicts Flash of Pain 1D6E seconds"
|
||||
},
|
||||
"melee_defense": {
|
||||
@@ -102,176 +219,391 @@
|
||||
"description": "Defender Recovers or ignores any flash of pain"
|
||||
},
|
||||
"arcane_spell_attack": {
|
||||
"type": "flash_of_pain", "duration_dice": "1D6E", "target": "defender",
|
||||
"type": "flash_of_pain",
|
||||
"duration_dice": "1D6E",
|
||||
"target": "defender",
|
||||
"description": "Magical Damage inflicts Flash of pain 1D6E seconds"
|
||||
},
|
||||
"arcane_spell_defense": {
|
||||
"type": "flash_of_pain", "duration_dice": "1D6E", "target": "caster",
|
||||
"type": "flash_of_pain",
|
||||
"duration_dice": "1D6E",
|
||||
"target": "caster",
|
||||
"description": "Caster Suffers Severe pain and will be under a flash of pain for 1D6E seconds"
|
||||
},
|
||||
"skill_rolls": {
|
||||
"type": "bonus_dice", "dice": "D6", "target": "skill",
|
||||
"type": "bonus_dice",
|
||||
"dice": "D6",
|
||||
"target": "skill",
|
||||
"description": "Granted D6 (1-6) Skill Modifier for this Skill Attempt"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "recover_pain",
|
||||
"description": "Defender Recovers or ignores any flash of pain"
|
||||
}
|
||||
},
|
||||
"20": {
|
||||
"melee_attack": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{ "type": "special_strike", "options": ["vicious"] },
|
||||
{ "type": "bonus_dice", "dice": "D12", "target": "attack" }
|
||||
{
|
||||
"type": "special_strike",
|
||||
"options": [
|
||||
"vicious"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D12",
|
||||
"target": "attack"
|
||||
}
|
||||
],
|
||||
"description": "Possible Vicious Strike or Add D12 to attack"
|
||||
},
|
||||
"ranged_attack": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{ "type": "special_strike", "options": ["vicious"] },
|
||||
{ "type": "bonus_dice", "dice": "D12", "target": "attack" }
|
||||
{
|
||||
"type": "special_strike",
|
||||
"options": [
|
||||
"vicious"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D12",
|
||||
"target": "attack"
|
||||
}
|
||||
],
|
||||
"description": "Possible Vicious Strike or add D12 to attack"
|
||||
},
|
||||
"melee_defense": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{ "type": "special_defense", "options": ["perfect"] },
|
||||
{ "type": "bonus_dice", "dice": "D12", "target": "defense" }
|
||||
{
|
||||
"type": "special_defense",
|
||||
"options": [
|
||||
"perfect"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D12",
|
||||
"target": "defense"
|
||||
}
|
||||
],
|
||||
"description": "Possible 20/20 defense that avoids Any Attack Except a Lethal Strike or adds D12 to defense"
|
||||
},
|
||||
"arcane_spell_attack": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{ "type": "special_strike", "options": ["vicious_magical"] },
|
||||
{ "type": "bonus_dice", "dice": "D12", "target": "spell_attack" }
|
||||
{
|
||||
"type": "special_strike",
|
||||
"options": [
|
||||
"vicious_magical"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D12",
|
||||
"target": "spell_attack"
|
||||
}
|
||||
],
|
||||
"description": "Possible Vicious Application of a Magical Attack or add D12 to attack"
|
||||
},
|
||||
"arcane_spell_defense": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{ "type": "special_defense", "options": ["perfect_spell"] },
|
||||
{ "type": "bonus_dice", "dice": "D12", "target": "spell_defense" }
|
||||
{
|
||||
"type": "special_defense",
|
||||
"options": [
|
||||
"perfect_spell"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D12",
|
||||
"target": "spell_defense"
|
||||
}
|
||||
],
|
||||
"description": "Possible 20/20 Spell defense that Saves Against Any Magical Attack Except a Lethal Magical Strike or add D12 to defense"
|
||||
},
|
||||
"skill_rolls": {
|
||||
"type": "bonus_flat", "amount": 20, "target": "skill",
|
||||
"type": "bonus_flat",
|
||||
"amount": 20,
|
||||
"target": "skill",
|
||||
"description": "20 Added to Skill Roll"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "choice",
|
||||
"choices": [
|
||||
{
|
||||
"type": "special_defense",
|
||||
"options": [
|
||||
"perfect"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "bonus_dice",
|
||||
"dice": "D12",
|
||||
"target": "defense"
|
||||
}
|
||||
],
|
||||
"description": "Possible 20/20 defense that avoids Any Attack Except a Lethal Strike or adds D12 to defense"
|
||||
}
|
||||
},
|
||||
"15": {
|
||||
"melee_attack": {
|
||||
"type": "combo",
|
||||
"effects": [
|
||||
{ "type": "bleed" },
|
||||
{ "type": "knockback" }
|
||||
{
|
||||
"type": "bleed"
|
||||
},
|
||||
{
|
||||
"type": "knockback"
|
||||
}
|
||||
],
|
||||
"description": "Bleed, Knock-back on Hit"
|
||||
},
|
||||
"ranged_attack": { "type": "bleed", "description": "Bleed" },
|
||||
"ranged_attack": {
|
||||
"type": "bleed",
|
||||
"description": "Bleed"
|
||||
},
|
||||
"melee_defense": {
|
||||
"type": "counter_attack",
|
||||
"options": ["kick", "punch", "shield_bash"],
|
||||
"options": [
|
||||
"kick",
|
||||
"punch",
|
||||
"shield_bash"
|
||||
],
|
||||
"description": "Kick, Punch or Shield Bash"
|
||||
},
|
||||
"skill_rolls": {
|
||||
"type": "bonus_flat", "amount": 1, "target": "skill",
|
||||
"type": "bonus_flat",
|
||||
"amount": 1,
|
||||
"target": "skill",
|
||||
"description": "Add 1 to Skill Roll"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "counter_attack",
|
||||
"options": [
|
||||
"kick",
|
||||
"punch",
|
||||
"shield_bash"
|
||||
],
|
||||
"description": "Kick, Punch or Shield Bash"
|
||||
}
|
||||
},
|
||||
"13": {},
|
||||
"11": {
|
||||
"melee_attack": {
|
||||
"type": "flurry", "condition": "hit_or_miss",
|
||||
"type": "flurry",
|
||||
"condition": "hit_or_miss",
|
||||
"description": "Flurry Attack or Hit to Miss"
|
||||
},
|
||||
"ranged_attack": { "type": "double_damage_dice", "description": "Roll 2x Damage Dice" }
|
||||
"ranged_attack": {
|
||||
"type": "double_damage_dice",
|
||||
"description": "Roll 2x Damage Dice"
|
||||
}
|
||||
},
|
||||
"10": {
|
||||
"melee_attack": {
|
||||
"type": "combo",
|
||||
"effects": [
|
||||
{ "type": "bleed" },
|
||||
{ "type": "knockback" }
|
||||
{
|
||||
"type": "bleed"
|
||||
},
|
||||
{
|
||||
"type": "knockback"
|
||||
}
|
||||
],
|
||||
"description": "Bleed, Knock-back on Hit"
|
||||
},
|
||||
"ranged_attack": { "type": "bleed", "description": "Bleed" },
|
||||
"ranged_attack": {
|
||||
"type": "bleed",
|
||||
"description": "Bleed"
|
||||
},
|
||||
"melee_defense": {
|
||||
"type": "counter_attack",
|
||||
"options": ["kick", "punch", "shield_bash"],
|
||||
"options": [
|
||||
"kick",
|
||||
"punch",
|
||||
"shield_bash"
|
||||
],
|
||||
"description": "Kick, Punch or Shield Bash"
|
||||
},
|
||||
"skill_rolls": {
|
||||
"type": "bonus_flat", "amount": 1, "target": "skill",
|
||||
"type": "bonus_flat",
|
||||
"amount": 1,
|
||||
"target": "skill",
|
||||
"description": "Add 1 to Skill Roll"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "counter_attack",
|
||||
"options": [
|
||||
"kick",
|
||||
"punch",
|
||||
"shield_bash"
|
||||
],
|
||||
"description": "Kick, Punch or Shield Bash"
|
||||
}
|
||||
},
|
||||
"8": {
|
||||
"melee_attack": { "type": "mulligan", "description": "Mulligan, Can Choose to Re-roll This Attack" },
|
||||
"ranged_attack": { "type": "mulligan", "description": "Mulligan, Can Choose to Re-Roll This Attack" },
|
||||
"melee_defense": { "type": "mulligan", "description": "Mulligan, Can Choose to Re-Roll This Defense" },
|
||||
"arcane_spell_attack": { "type": "mulligan", "description": "Mulligan, Can Re-Roll This Spell Attack" },
|
||||
"arcane_spell_defense": { "type": "mulligan", "description": "Mulligan, Can Re-Roll This Spell Defense" },
|
||||
"skill_rolls": { "type": "mulligan", "description": "Mulligan, Can Re-Roll This Skill roll" }
|
||||
"melee_attack": {
|
||||
"type": "mulligan",
|
||||
"description": "Mulligan, Can Choose to Re-roll This Attack"
|
||||
},
|
||||
"ranged_attack": {
|
||||
"type": "mulligan",
|
||||
"description": "Mulligan, Can Choose to Re-Roll This Attack"
|
||||
},
|
||||
"melee_defense": {
|
||||
"type": "mulligan",
|
||||
"description": "Mulligan, Can Choose to Re-Roll This Defense"
|
||||
},
|
||||
"arcane_spell_attack": {
|
||||
"type": "mulligan",
|
||||
"description": "Mulligan, Can Re-Roll This Spell Attack"
|
||||
},
|
||||
"arcane_spell_defense": {
|
||||
"type": "mulligan",
|
||||
"description": "Mulligan, Can Re-Roll This Spell Defense"
|
||||
},
|
||||
"skill_rolls": {
|
||||
"type": "mulligan",
|
||||
"description": "Mulligan, Can Re-Roll This Skill roll"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "mulligan",
|
||||
"description": "Mulligan, Can Choose to Re-Roll This Defense"
|
||||
}
|
||||
},
|
||||
"7": {
|
||||
"melee_attack": {
|
||||
"type": "flurry", "condition": "hit_or_miss",
|
||||
"type": "flurry",
|
||||
"condition": "hit_or_miss",
|
||||
"description": "Flurry Attack on Hit or Miss"
|
||||
},
|
||||
"ranged_attack": { "type": "double_damage_dice", "description": "Roll 2x Damage Dice" }
|
||||
"ranged_attack": {
|
||||
"type": "double_damage_dice",
|
||||
"description": "Roll 2x Damage Dice"
|
||||
}
|
||||
},
|
||||
"5": {
|
||||
"melee_attack": {
|
||||
"type": "combo",
|
||||
"effects": [
|
||||
{ "type": "bleed" },
|
||||
{ "type": "knockback" }
|
||||
{
|
||||
"type": "bleed"
|
||||
},
|
||||
{
|
||||
"type": "knockback"
|
||||
}
|
||||
],
|
||||
"description": "Bleed, Knock-back on Hit"
|
||||
},
|
||||
"ranged_attack": { "type": "bleed", "description": "Bleed" },
|
||||
"ranged_attack": {
|
||||
"type": "bleed",
|
||||
"description": "Bleed"
|
||||
},
|
||||
"melee_defense": {
|
||||
"type": "counter_attack",
|
||||
"options": ["kick", "punch", "shield_bash"],
|
||||
"options": [
|
||||
"kick",
|
||||
"punch",
|
||||
"shield_bash"
|
||||
],
|
||||
"description": "Kick, Punch, or Shield Bash"
|
||||
},
|
||||
"skill_rolls": {
|
||||
"type": "bonus_flat", "amount": 1, "target": "skill",
|
||||
"type": "bonus_flat",
|
||||
"amount": 1,
|
||||
"target": "skill",
|
||||
"description": "Add 1 to Skill Roll"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "counter_attack",
|
||||
"options": [
|
||||
"kick",
|
||||
"punch",
|
||||
"shield_bash"
|
||||
],
|
||||
"description": "Kick, Punch, or Shield Bash"
|
||||
}
|
||||
},
|
||||
"3": {
|
||||
"melee_attack": { "type": "damage_multiplier", "multiplier": 3, "description": "Triple Damage" },
|
||||
"ranged_attack": { "type": "damage_multiplier", "multiplier": 3, "description": "Triple Damage" },
|
||||
"melee_attack": {
|
||||
"type": "damage_multiplier",
|
||||
"multiplier": 3,
|
||||
"description": "Triple Damage"
|
||||
},
|
||||
"ranged_attack": {
|
||||
"type": "damage_multiplier",
|
||||
"multiplier": 3,
|
||||
"description": "Triple Damage"
|
||||
},
|
||||
"melee_defense": {
|
||||
"type": "dr_multiplier", "multiplier": 3, "includes_shield": true,
|
||||
"type": "dr_multiplier",
|
||||
"multiplier": 3,
|
||||
"includes_shield": true,
|
||||
"description": "DR Tripled including Shield"
|
||||
},
|
||||
"arcane_spell_attack": { "type": "damage_multiplier", "multiplier": 3, "description": "Triple Damage on Spell Damage" },
|
||||
"arcane_spell_attack": {
|
||||
"type": "damage_multiplier",
|
||||
"multiplier": 3,
|
||||
"description": "Triple Damage on Spell Damage"
|
||||
},
|
||||
"arcane_spell_defense": {
|
||||
"type": "bonus_dice", "dice": "D12", "target": "spell_defense",
|
||||
"type": "bonus_dice",
|
||||
"dice": "D12",
|
||||
"target": "spell_defense",
|
||||
"description": "D12 Added to Spell Defense Modifier"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "dr_multiplier",
|
||||
"multiplier": 3,
|
||||
"includes_shield": true,
|
||||
"description": "DR Tripled including Shield"
|
||||
}
|
||||
},
|
||||
"2": {
|
||||
"melee_attack": { "type": "damage_multiplier", "multiplier": 2, "description": "Double Damage" },
|
||||
"ranged_attack": { "type": "damage_multiplier", "multiplier": 2, "description": "Double Damage" },
|
||||
"melee_attack": {
|
||||
"type": "damage_multiplier",
|
||||
"multiplier": 2,
|
||||
"description": "Double Damage"
|
||||
},
|
||||
"ranged_attack": {
|
||||
"type": "damage_multiplier",
|
||||
"multiplier": 2,
|
||||
"description": "Double Damage"
|
||||
},
|
||||
"melee_defense": {
|
||||
"type": "dr_multiplier", "multiplier": 2, "includes_shield": true,
|
||||
"type": "dr_multiplier",
|
||||
"multiplier": 2,
|
||||
"includes_shield": true,
|
||||
"description": "DR Doubled including Shield"
|
||||
},
|
||||
"arcane_spell_attack": { "type": "damage_multiplier", "multiplier": 2, "description": "Double Damage on Spell Damage" },
|
||||
"arcane_spell_attack": {
|
||||
"type": "damage_multiplier",
|
||||
"multiplier": 2,
|
||||
"description": "Double Damage on Spell Damage"
|
||||
},
|
||||
"arcane_spell_defense": {
|
||||
"type": "bonus_dice", "dice": "D6", "target": "spell_defense",
|
||||
"type": "bonus_dice",
|
||||
"dice": "D6",
|
||||
"target": "spell_defense",
|
||||
"description": "D6 Added to Spell Defense Modifier"
|
||||
},
|
||||
"ranged_defense": {
|
||||
"type": "dr_multiplier",
|
||||
"multiplier": 2,
|
||||
"includes_shield": true,
|
||||
"description": "DR Doubled including Shield"
|
||||
}
|
||||
},
|
||||
"1": {
|
||||
"ranged_attack": {
|
||||
"type": "fumble", "detail": "ranged_ammo_broken",
|
||||
"type": "fumble",
|
||||
"detail": "ranged_ammo_broken",
|
||||
"description": "Possible Fumble Ranged ammo is broken unrecoverable"
|
||||
},
|
||||
"arcane_spell_attack": {
|
||||
@@ -286,4 +618,4 @@
|
||||
"matching_30s": "Matching 30s on skill rolls cancel each other out and is resolved by the skill roll.",
|
||||
"skill_roll_30": "A 30 on a skill roll indicates success at highest level of the skill involved."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -193,6 +193,7 @@ export const DICE_VALUES = {
|
||||
export const CHARACTERISTIC_ATTACK = ["str", "int", "wis", "dex"]
|
||||
export const CHARACTERISTIC_RANGED_ATTACK = ["int", "wis", "dex"]
|
||||
export const CHARACTERISTIC_DEFENSE = ["int", "wis", "dex"]
|
||||
export const CHARACTERISTIC_RANGED_DEFENSE = ["int", "wis", "dex"]
|
||||
export const CHARACTERISTIC_DAMAGE = ["str"]
|
||||
|
||||
export const DEFENSE_DICE_VALUES = {
|
||||
@@ -304,6 +305,7 @@ export const SYSTEM = {
|
||||
CHARACTERISTIC_ATTACK,
|
||||
CHARACTERISTIC_RANGED_ATTACK,
|
||||
CHARACTERISTIC_DEFENSE,
|
||||
CHARACTERISTIC_RANGED_DEFENSE,
|
||||
CHARACTERISTIC_DAMAGE,
|
||||
INITIATIVE_DICE_CHOICES_PER_CLASS,
|
||||
CHAR_CLASSES,
|
||||
|
||||
@@ -256,6 +256,8 @@ export default class LethalFantasyActor extends Actor {
|
||||
if (rollType === "weapon-defense") {
|
||||
rollTarget.armorDefense = this.getArmorDefenseValue()
|
||||
rollTarget.grantedDice = this.system.granted.defenseDice
|
||||
// Check if this is a ranged defense
|
||||
rollTarget.isRangedDefense = game.lethalFantasy?.nextDefenseData?.isRanged ?? false
|
||||
}
|
||||
}
|
||||
break
|
||||
|
||||
@@ -22,6 +22,7 @@ export default class D30Roll {
|
||||
MELEE_ATTACK: "melee_attack",
|
||||
RANGED_ATTACK: "ranged_attack",
|
||||
MELEE_DEFENSE: "melee_defense",
|
||||
RANGED_DEFENSE: "ranged_defense",
|
||||
ARCANE_SPELL_ATTACK: "arcane_spell_attack",
|
||||
ARCANE_SPELL_DEFENSE: "arcane_spell_defense",
|
||||
SKILL_ROLLS: "skill_rolls"
|
||||
@@ -51,9 +52,11 @@ export default class D30Roll {
|
||||
* @param {number} diceValue La valeur du dé (1-30)
|
||||
* @param {string} rollType Le type de jet externe (ex: "weapon-attack", "spell-attack", etc.)
|
||||
* @param {Object} weapon L'arme ou l'objet utilisé (optionnel, nécessaire pour certains types)
|
||||
* @param {Object} options Options supplémentaires (optionnel)
|
||||
* @param {boolean} options.isRanged Si true, utilise ranged_defense au lieu de melee_defense
|
||||
* @returns {Object|null} L'objet effet `{ type, description, ...fields }` ou null si aucun effet
|
||||
*/
|
||||
static getResult(diceValue, rollType, weapon = null) {
|
||||
static getResult(diceValue, rollType, weapon = null, options = {}) {
|
||||
if (!this.resultsTable) {
|
||||
console.warn("D30Roll | Results table is not initialized. Call D30Roll.initialize() first.")
|
||||
return null
|
||||
@@ -64,7 +67,7 @@ export default class D30Roll {
|
||||
return null
|
||||
}
|
||||
|
||||
const internalType = this.convertToInternalType(rollType, weapon)
|
||||
const internalType = this.convertToInternalType(rollType, weapon, options)
|
||||
|
||||
if (!internalType) {
|
||||
console.warn(`D30Roll | Could not convert roll type: ${rollType}`)
|
||||
@@ -99,9 +102,11 @@ export default class D30Roll {
|
||||
* Convertit un rollType externe en rollType interne
|
||||
* @param {string} externalType Le type de jet externe (ex: "weapon-attack")
|
||||
* @param {Object} weapon L'arme ou l'objet utilisé (optionnel)
|
||||
* @param {Object} options Options supplémentaires (optionnel)
|
||||
* @param {boolean} options.isRanged Si true, utilise ranged_defense au lieu de melee_defense
|
||||
* @returns {string|null} Le type interne correspondant ou null
|
||||
*/
|
||||
static convertToInternalType(externalType, weapon = null) {
|
||||
static convertToInternalType(externalType, weapon = null, options = {}) {
|
||||
// Attack types - need weapon to determine if melee or ranged
|
||||
if (externalType === "weapon-attack") {
|
||||
if (!weapon) {
|
||||
@@ -124,7 +129,7 @@ export default class D30Roll {
|
||||
|
||||
// Defense types
|
||||
if (externalType === "weapon-defense" || externalType === "monster-defense") {
|
||||
return this.ROLL_TYPES.MELEE_DEFENSE
|
||||
return options.isRanged ? this.ROLL_TYPES.RANGED_DEFENSE : this.ROLL_TYPES.MELEE_DEFENSE
|
||||
}
|
||||
|
||||
// Spell types
|
||||
@@ -190,11 +195,12 @@ export default class D30Roll {
|
||||
* @param {number} diceValue La valeur du dé (1-30)
|
||||
* @param {string} rollType Le type de jet externe
|
||||
* @param {Object} weapon L'arme ou l'objet utilisé (optionnel)
|
||||
* @param {Object} options Options supplémentaires (optionnel)
|
||||
* @returns {Object} Un objet avec le résultat et des informations de formatage
|
||||
*/
|
||||
static getFormattedResult(diceValue, rollType, weapon = null) {
|
||||
const result = this.getResult(diceValue, rollType, weapon)
|
||||
const internalType = this.convertToInternalType(rollType, weapon)
|
||||
static getFormattedResult(diceValue, rollType, weapon = null, options = {}) {
|
||||
const result = this.getResult(diceValue, rollType, weapon, options)
|
||||
const internalType = this.convertToInternalType(rollType, weapon, options)
|
||||
|
||||
return {
|
||||
value: diceValue,
|
||||
|
||||
@@ -182,6 +182,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
} else {
|
||||
options.rollTarget.value = options.rollTarget.defenseModifier
|
||||
options.rollTarget.charModifier = 0
|
||||
options.isRangedDefense = options.rollTarget.isRangedDefense ?? false
|
||||
}
|
||||
|
||||
} else if (options.rollType === "monster-skill") {
|
||||
@@ -219,8 +220,14 @@ export default class LethalFantasyRoll extends Roll {
|
||||
options.rollTarget.charModifier = options.rollTarget.combat.rangedAttackModifier
|
||||
}
|
||||
} else {
|
||||
options.rollTarget.value = options.rollTarget.combat.defenseModifier + options.rollTarget.weaponSkillModifier + options.rollTarget.weapon.system.bonuses.defenseBonus + options.rollTarget.armorDefense
|
||||
options.rollTarget.charModifier = options.rollTarget.combat.defenseModifier
|
||||
// For defense, check if it's a ranged defense
|
||||
const defenseModifier = options.rollTarget.isRangedDefense
|
||||
? options.rollTarget.combat.rangedDefenseModifier
|
||||
: options.rollTarget.combat.defenseModifier
|
||||
options.rollTarget.value = defenseModifier + options.rollTarget.weaponSkillModifier + options.rollTarget.weapon.system.bonuses.defenseBonus + options.rollTarget.armorDefense
|
||||
options.rollTarget.charModifier = defenseModifier
|
||||
// Store isRanged flag for D30 lookup
|
||||
options.isRangedDefense = options.rollTarget.isRangedDefense
|
||||
}
|
||||
|
||||
} else if (options.rollType === "spell" || options.rollType === "spell-attack" || options.rollType === "spell-power") {
|
||||
@@ -282,7 +289,11 @@ export default class LethalFantasyRoll extends Roll {
|
||||
options.damageMedium = true
|
||||
dice = options.rollTarget.weapon.system.damage.damageM
|
||||
}
|
||||
dice = dice.replace("E", "")
|
||||
if (/NE$/i.test(dice)) {
|
||||
hasMaxValue = false
|
||||
hasExplode = false
|
||||
}
|
||||
dice = dice.replace(/NE$/i, "").replace("E", "")
|
||||
baseFormula = dice
|
||||
|
||||
} else if (options.rollType.includes("monster-damage")) {
|
||||
@@ -295,6 +306,10 @@ export default class LethalFantasyRoll extends Roll {
|
||||
dice = options.rollTarget.damageDice
|
||||
dice = dice.replace("E", "")
|
||||
baseFormula = dice
|
||||
if (options.rollTarget.noExplode) {
|
||||
hasMaxValue = false
|
||||
hasExplode = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -490,7 +505,8 @@ export default class LethalFantasyRoll extends Roll {
|
||||
rollContext.favor = "none"
|
||||
}
|
||||
|
||||
maxValue = Number(baseFormula.match(/\d+$/)[0]) // Update the max value agains
|
||||
const maxMatch = baseFormula ? baseFormula.match(/\d+$/) : null
|
||||
maxValue = maxMatch ? Number(maxMatch[0]) : 0
|
||||
|
||||
const rollData = {
|
||||
type: options.rollType,
|
||||
@@ -577,7 +593,8 @@ export default class LethalFantasyRoll extends Roll {
|
||||
const d30Message = D30Roll.getResult(
|
||||
rollD30.total,
|
||||
options.rollType,
|
||||
options.rollTarget?.weapon
|
||||
options.rollTarget?.weapon,
|
||||
{ isRanged: options.isRangedDefense }
|
||||
)
|
||||
options.D30message = d30Message
|
||||
}
|
||||
@@ -1113,7 +1130,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
await rollBase.evaluate()
|
||||
let rollD30 = await new Roll("1D30").evaluate()
|
||||
options.D30result = rollD30.total
|
||||
options.D30message = D30Roll.getResult(rollD30.total, options.rollType, options.rollTarget?.weapon)
|
||||
options.D30message = D30Roll.getResult(rollD30.total, options.rollType, options.rollTarget?.weapon, { isRanged: true })
|
||||
|
||||
let badResult = 0
|
||||
if (rollContext.movement.includes("kh")) {
|
||||
|
||||
@@ -152,6 +152,7 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod
|
||||
attackModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||
rangedAttackModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||
defenseModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||
rangedDefenseModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||
defenseBonus: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||
damageModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||
armorHitPoints: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||
@@ -259,6 +260,12 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod
|
||||
this.combat.defenseModifier += chaDef.defense
|
||||
}
|
||||
|
||||
this.combat.rangedDefenseModifier = this.combat.defenseBonus
|
||||
for (let chaKey of SYSTEM.CHARACTERISTIC_RANGED_DEFENSE) {
|
||||
let chaDef = SYSTEM.CHARACTERISTICS_TABLES[chaKey].find(s => s.value === this.characteristics[chaKey].value)
|
||||
this.combat.rangedDefenseModifier += chaDef.defense
|
||||
}
|
||||
|
||||
this.combat.damageModifier = 0
|
||||
for (let chaKey of SYSTEM.CHARACTERISTIC_DAMAGE) {
|
||||
let chaDef = SYSTEM.CHARACTERISTICS_TABLES[chaKey].find(s => s.value === this.characteristics[chaKey].value)
|
||||
|
||||
@@ -64,7 +64,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
painDamage: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||
})
|
||||
|
||||
const attackField = (label) => {
|
||||
const attackField = (label, initialNoExplode = false) => {
|
||||
const schema = {
|
||||
key: new fields.StringField({ required: true, nullable: false, initial: `attack${label}` }),
|
||||
name: new fields.StringField({ required: true, nullable: false, initial: `Attack ${label}` }),
|
||||
@@ -74,6 +74,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
damageDice: new fields.StringField({ required: true, nullable: false, initial: "1D6" }),
|
||||
damageModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||
enabled: new fields.BooleanField({ initial: true, required: true, nullable: false }),
|
||||
noExplode: new fields.BooleanField({ initial: initialNoExplode, required: true, nullable: false }),
|
||||
}
|
||||
return new fields.SchemaField(schema, { label })
|
||||
}
|
||||
@@ -123,8 +124,8 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
shieldDefenseDice: new fields.StringField({ required: true, nullable: false, initial: "d4" })
|
||||
})
|
||||
schema.combatHTH = new fields.SchemaField({
|
||||
attack1: attackField("1"),
|
||||
attack2: attackField("2")
|
||||
attack1: attackField("1", true),
|
||||
attack2: attackField("2", true)
|
||||
})
|
||||
|
||||
schema.attackMode = new fields.StringField({
|
||||
@@ -141,6 +142,15 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
attack4: attackField("4")
|
||||
})
|
||||
|
||||
schema.rangedWeaponRange = new fields.SchemaField({
|
||||
pointBlank: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
|
||||
short: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
|
||||
medium: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
|
||||
long: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
|
||||
extreme: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 }),
|
||||
outOfSkill: new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
||||
})
|
||||
|
||||
return schema
|
||||
}
|
||||
|
||||
@@ -182,6 +192,10 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
const attacksSet = this.attackMode === "ranged" ? this.rangedAttacks : this.attacks
|
||||
rollTarget = foundry.utils.duplicate(attacksSet[rollKey])
|
||||
rollTarget.rollKey = rollKey
|
||||
rollTarget.attackMode = this.attackMode
|
||||
if (rollType === "monster-defense") {
|
||||
rollTarget.isRangedDefense = game.lethalFantasy?.nextDefenseData?.isRanged ?? false
|
||||
}
|
||||
// Si damageModifier est fourni (depuis le chat), l'utiliser au lieu de celui de la fiche
|
||||
if (damageModifier !== undefined && rollType === "monster-damage") {
|
||||
rollTarget.damageModifier = damageModifier
|
||||
@@ -256,7 +270,7 @@ export default class LethalFantasyMonster extends foundry.abstract.TypeDataModel
|
||||
return
|
||||
}
|
||||
rollTarget = skill
|
||||
rollTarget.weapon = weapon
|
||||
rollTarget.weapon = foundry.utils.duplicate(weapon)
|
||||
rollTarget.weaponSkillModifier = skill.weaponSkillModifier
|
||||
rollTarget.rollKey = rollKey
|
||||
rollTarget.combat = foundry.utils.duplicate(this.combat)
|
||||
|
||||
+36
-3
@@ -334,7 +334,7 @@ export default class LethalFantasyUtils {
|
||||
|
||||
// Afficher le dialogue
|
||||
const result = await foundry.applications.api.DialogV2.wait({
|
||||
window: { title: "Defense Roll" },
|
||||
window: { title: msg.isRanged ? "Ranged Defense Roll" : "Defense Roll" },
|
||||
classes: ["lethalfantasy"],
|
||||
content,
|
||||
buttons: [
|
||||
@@ -366,7 +366,8 @@ export default class LethalFantasyUtils {
|
||||
attackD30message,
|
||||
attackRerollContext,
|
||||
defenderId: defender.id,
|
||||
defenderTokenId
|
||||
defenderTokenId,
|
||||
isRanged: msg.isRanged
|
||||
}
|
||||
|
||||
defender.system.prepareMonsterRoll("monster-defense", result)
|
||||
@@ -374,6 +375,37 @@ export default class LethalFantasyUtils {
|
||||
return
|
||||
}
|
||||
|
||||
// Pour les personnages, récupérer les armes équipées
|
||||
// Si l'attaque est une attaque à distance, utiliser le dialogue de défense à distance
|
||||
if (msg.isRanged) {
|
||||
const { default: LethalFantasyRoll } = await import("./documents/roll.mjs")
|
||||
const roll = await LethalFantasyRoll.promptRangedDefense({
|
||||
actorId: defender.id,
|
||||
actorName: defender.name,
|
||||
actorImage: defender.img,
|
||||
})
|
||||
if (roll) {
|
||||
game.lethalFantasy = game.lethalFantasy || {}
|
||||
game.lethalFantasy.nextDefenseData = {
|
||||
attackerId,
|
||||
attackRoll,
|
||||
attackerName,
|
||||
defenderName,
|
||||
attackWeaponId,
|
||||
attackRollType,
|
||||
attackRollKey,
|
||||
attackD30result,
|
||||
attackD30message,
|
||||
attackRerollContext,
|
||||
defenderId: defender.id,
|
||||
defenderTokenId,
|
||||
isRanged: true
|
||||
}
|
||||
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Pour les personnages, récupérer les armes équipées
|
||||
const equippedWeapons = defender.items.filter(i =>
|
||||
i.type === "weapon" && i.system.equipped === true
|
||||
@@ -438,7 +470,8 @@ export default class LethalFantasyUtils {
|
||||
attackD30message,
|
||||
attackRerollContext,
|
||||
defenderId: defender.id,
|
||||
defenderTokenId
|
||||
defenderTokenId,
|
||||
isRanged: msg.isRanged
|
||||
}
|
||||
|
||||
console.log("Storing defense data for character:", defender.id)
|
||||
|
||||
@@ -1 +1 @@
|
||||
MANIFEST-000579
|
||||
MANIFEST-000587
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/04/30-14:38:06.808992 7f3f35bff6c0 Recovering log #577
|
||||
2026/04/30-14:38:06.818757 7f3f35bff6c0 Delete type=3 #575
|
||||
2026/04/30-14:38:06.818831 7f3f35bff6c0 Delete type=0 #577
|
||||
2026/04/30-14:38:35.518816 7f3ee77fe6c0 Level-0 table #582: started
|
||||
2026/04/30-14:38:35.518836 7f3ee77fe6c0 Level-0 table #582: 0 bytes OK
|
||||
2026/04/30-14:38:35.525869 7f3ee77fe6c0 Delete type=0 #580
|
||||
2026/04/30-14:38:35.538258 7f3ee77fe6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||
2026/04/30-14:38:35.538288 7f3ee77fe6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||
2026/05/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)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/04/29-20:13:54.005832 7fed937fe6c0 Recovering log #573
|
||||
2026/04/29-20:13:54.016172 7fed937fe6c0 Delete type=3 #571
|
||||
2026/04/29-20:13:54.016279 7fed937fe6c0 Delete type=0 #573
|
||||
2026/04/29-20:27:06.418200 7feb10fff6c0 Level-0 table #578: started
|
||||
2026/04/29-20:27:06.418231 7feb10fff6c0 Level-0 table #578: 0 bytes OK
|
||||
2026/04/29-20:27:06.424568 7feb10fff6c0 Delete type=0 #576
|
||||
2026/04/29-20:27:06.431809 7feb10fff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||
2026/04/29-20:27:06.431871 7feb10fff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||
2026/05/01-23:33:08.433602 7f8fb27bf6c0 Recovering log #581
|
||||
2026/05/01-23:33:08.476792 7f8fb27bf6c0 Delete type=3 #579
|
||||
2026/05/01-23:33:08.476868 7f8fb27bf6c0 Delete type=0 #581
|
||||
2026/05/01-23:33:55.878970 7f8d1bfff6c0 Level-0 table #586: started
|
||||
2026/05/01-23:33:55.881418 7f8d1bfff6c0 Level-0 table #586: 0 bytes OK
|
||||
2026/05/01-23:33:55.924908 7f8d1bfff6c0 Delete type=0 #584
|
||||
2026/05/01-23:33:56.035970 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||
2026/05/01-23:33:56.036022 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!zw9RQocTdz3HRjZK' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000576
|
||||
MANIFEST-000584
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/04/30-14:38:06.823818 7f3f353fe6c0 Recovering log #574
|
||||
2026/04/30-14:38:06.834104 7f3f353fe6c0 Delete type=3 #572
|
||||
2026/04/30-14:38:06.834187 7f3f353fe6c0 Delete type=0 #574
|
||||
2026/04/30-14:38:35.525993 7f3ee77fe6c0 Level-0 table #579: started
|
||||
2026/04/30-14:38:35.526019 7f3ee77fe6c0 Level-0 table #579: 0 bytes OK
|
||||
2026/04/30-14:38:35.532067 7f3ee77fe6c0 Delete type=0 #577
|
||||
2026/04/30-14:38:35.538267 7f3ee77fe6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||
2026/04/30-14:38:35.538302 7f3ee77fe6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||
2026/05/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)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/04/29-20:13:54.023030 7fed93fff6c0 Recovering log #570
|
||||
2026/04/29-20:13:54.032615 7fed93fff6c0 Delete type=3 #568
|
||||
2026/04/29-20:13:54.032677 7fed93fff6c0 Delete type=0 #570
|
||||
2026/04/29-20:27:06.286266 7feb10fff6c0 Level-0 table #575: started
|
||||
2026/04/29-20:27:06.286286 7feb10fff6c0 Level-0 table #575: 0 bytes OK
|
||||
2026/04/29-20:27:06.292048 7feb10fff6c0 Delete type=0 #573
|
||||
2026/04/29-20:27:06.299186 7feb10fff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||
2026/04/29-20:27:06.299236 7feb10fff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||
2026/05/01-23:33:08.486839 7f8fb17bd6c0 Recovering log #578
|
||||
2026/05/01-23:33:08.536613 7f8fb17bd6c0 Delete type=3 #576
|
||||
2026/05/01-23:33:08.536667 7f8fb17bd6c0 Delete type=0 #578
|
||||
2026/05/01-23:33:55.999594 7f8d1bfff6c0 Level-0 table #583: started
|
||||
2026/05/01-23:33:55.999624 7f8d1bfff6c0 Level-0 table #583: 0 bytes OK
|
||||
2026/05/01-23:33:56.035856 7f8d1bfff6c0 Delete type=0 #581
|
||||
2026/05/01-23:33:56.036000 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||
2026/05/01-23:33:56.036042 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!x5gLtqlW4sdDmHTd' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000581
|
||||
MANIFEST-000589
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/04/30-14:38:06.795186 7f3f353fe6c0 Recovering log #579
|
||||
2026/04/30-14:38:06.805935 7f3f353fe6c0 Delete type=3 #577
|
||||
2026/04/30-14:38:06.805994 7f3f353fe6c0 Delete type=0 #579
|
||||
2026/04/30-14:38:35.512680 7f3ee77fe6c0 Level-0 table #584: started
|
||||
2026/04/30-14:38:35.512729 7f3ee77fe6c0 Level-0 table #584: 0 bytes OK
|
||||
2026/04/30-14:38:35.518704 7f3ee77fe6c0 Delete type=0 #582
|
||||
2026/04/30-14:38:35.538247 7f3ee77fe6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2026/04/30-14:38:35.538281 7f3ee77fe6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2026/05/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)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/04/29-20:13:53.990808 7fed927fc6c0 Recovering log #575
|
||||
2026/04/29-20:13:54.001559 7fed927fc6c0 Delete type=3 #573
|
||||
2026/04/29-20:13:54.001699 7fed927fc6c0 Delete type=0 #575
|
||||
2026/04/29-20:27:06.273802 7feb10fff6c0 Level-0 table #580: started
|
||||
2026/04/29-20:27:06.273877 7feb10fff6c0 Level-0 table #580: 0 bytes OK
|
||||
2026/04/29-20:27:06.280252 7feb10fff6c0 Delete type=0 #578
|
||||
2026/04/29-20:27:06.299161 7feb10fff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2026/04/29-20:27:06.299217 7feb10fff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2026/05/01-23:33:08.376215 7f8fb0fbc6c0 Recovering log #583
|
||||
2026/05/01-23:33:08.417318 7f8fb0fbc6c0 Delete type=3 #581
|
||||
2026/05/01-23:33:08.417396 7f8fb0fbc6c0 Delete type=0 #583
|
||||
2026/05/01-23:33:55.962045 7f8d1bfff6c0 Level-0 table #588: started
|
||||
2026/05/01-23:33:55.962068 7f8d1bfff6c0 Level-0 table #588: 0 bytes OK
|
||||
2026/05/01-23:33:55.999439 7f8d1bfff6c0 Delete type=0 #586
|
||||
2026/05/01-23:33:56.035992 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2026/05/01-23:33:56.036035 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000276
|
||||
MANIFEST-000284
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/04/30-14:38:06.849252 7f3f353fe6c0 Recovering log #274
|
||||
2026/04/30-14:38:06.859072 7f3f353fe6c0 Delete type=3 #272
|
||||
2026/04/30-14:38:06.859126 7f3f353fe6c0 Delete type=0 #274
|
||||
2026/04/30-14:38:35.538433 7f3ee77fe6c0 Level-0 table #279: started
|
||||
2026/04/30-14:38:35.538452 7f3ee77fe6c0 Level-0 table #279: 0 bytes OK
|
||||
2026/04/30-14:38:35.544715 7f3ee77fe6c0 Delete type=0 #277
|
||||
2026/04/30-14:38:35.567736 7f3ee77fe6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||
2026/04/30-14:38:35.567785 7f3ee77fe6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||
2026/05/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)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/04/29-20:13:54.051682 7fed937fe6c0 Recovering log #270
|
||||
2026/04/29-20:13:54.062010 7fed937fe6c0 Delete type=3 #268
|
||||
2026/04/29-20:13:54.062071 7fed937fe6c0 Delete type=0 #270
|
||||
2026/04/29-20:27:06.292128 7feb10fff6c0 Level-0 table #275: started
|
||||
2026/04/29-20:27:06.292152 7feb10fff6c0 Level-0 table #275: 0 bytes OK
|
||||
2026/04/29-20:27:06.299041 7feb10fff6c0 Delete type=0 #273
|
||||
2026/04/29-20:27:06.299199 7feb10fff6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||
2026/04/29-20:27:06.299226 7feb10fff6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||
2026/05/01-23:33:08.590994 7f8fb1fbe6c0 Recovering log #278
|
||||
2026/05/01-23:33:08.636941 7f8fb1fbe6c0 Delete type=3 #276
|
||||
2026/05/01-23:33:08.636992 7f8fb1fbe6c0 Delete type=0 #278
|
||||
2026/05/01-23:33:56.204694 7f8d1bfff6c0 Level-0 table #283: started
|
||||
2026/05/01-23:33:56.204728 7f8d1bfff6c0 Level-0 table #283: 0 bytes OK
|
||||
2026/05/01-23:33:56.238272 7f8d1bfff6c0 Delete type=0 #281
|
||||
2026/05/01-23:33:56.371888 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||
2026/05/01-23:33:56.426259 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!37mu4dxsSuftlnmP' @ 72057594037927935 : 1 .. '!items!zKOpU34oLziGJW6y' @ 0 : 0; will stop at (end)
|
||||
|
||||
BIN
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000575
|
||||
MANIFEST-000583
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/04/30-14:38:06.836968 7f3ee7fff6c0 Recovering log #573
|
||||
2026/04/30-14:38:06.846980 7f3ee7fff6c0 Delete type=3 #571
|
||||
2026/04/30-14:38:06.847050 7f3ee7fff6c0 Delete type=0 #573
|
||||
2026/04/30-14:38:35.532186 7f3ee77fe6c0 Level-0 table #578: started
|
||||
2026/04/30-14:38:35.532209 7f3ee77fe6c0 Level-0 table #578: 0 bytes OK
|
||||
2026/04/30-14:38:35.538132 7f3ee77fe6c0 Delete type=0 #576
|
||||
2026/04/30-14:38:35.538276 7f3ee77fe6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2026/04/30-14:38:35.538295 7f3ee77fe6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2026/05/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)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
2026/04/29-20:13:54.036694 7fed92ffd6c0 Recovering log #569
|
||||
2026/04/29-20:13:54.047834 7fed92ffd6c0 Delete type=3 #567
|
||||
2026/04/29-20:13:54.047922 7fed92ffd6c0 Delete type=0 #569
|
||||
2026/04/29-20:27:06.280338 7feb10fff6c0 Level-0 table #574: started
|
||||
2026/04/29-20:27:06.280357 7feb10fff6c0 Level-0 table #574: 0 bytes OK
|
||||
2026/04/29-20:27:06.286179 7feb10fff6c0 Delete type=0 #572
|
||||
2026/04/29-20:27:06.299174 7feb10fff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2026/04/29-20:27:06.299209 7feb10fff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2026/05/01-23:33:08.543693 7f8fb0fbc6c0 Recovering log #577
|
||||
2026/05/01-23:33:08.586596 7f8fb0fbc6c0 Delete type=3 #575
|
||||
2026/05/01-23:33:08.586670 7f8fb0fbc6c0 Delete type=0 #577
|
||||
2026/05/01-23:33:55.925044 7f8d1bfff6c0 Level-0 table #582: started
|
||||
2026/05/01-23:33:55.925074 7f8d1bfff6c0 Level-0 table #582: 0 bytes OK
|
||||
2026/05/01-23:33:55.961939 7f8d1bfff6c0 Delete type=0 #580
|
||||
2026/05/01-23:33:56.035982 7f8d1bfff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2026/05/01-23:33:56.036029 7f8d1bfff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
|
||||
BIN
Binary file not shown.
@@ -410,6 +410,48 @@
|
||||
}
|
||||
}
|
||||
|
||||
.ranged-attacks {
|
||||
grid-template-columns: 1fr;
|
||||
.attack {
|
||||
.name {
|
||||
min-width: 10rem;
|
||||
max-width: 10rem;
|
||||
}
|
||||
.damage-dice {
|
||||
width: 5rem;
|
||||
max-width: 5rem;
|
||||
}
|
||||
}
|
||||
.ranged-weapon-range {
|
||||
margin-top: 8px;
|
||||
border-top: 1px solid var(--color-border-light-tertiary, #ccc);
|
||||
padding-top: 6px;
|
||||
> label {
|
||||
font-weight: bold;
|
||||
margin-bottom: 4px;
|
||||
display: block;
|
||||
}
|
||||
.range-fields {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
.range-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
label {
|
||||
font-size: 0.7rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
input {
|
||||
width: 3.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.armors {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
|
||||
@@ -51,6 +51,9 @@
|
||||
<div class="numeric">
|
||||
<input type="number" name="system.attacks.{{item.key}}.damageModifier" value="{{item.damageModifier}}" data-tooltip="Damage modifier"/>
|
||||
</div>
|
||||
<div class="">
|
||||
<input type="checkbox" name="system.attacks.{{item.key}}.noExplode" {{checked item.noExplode}} data-tooltip="No exploding dice on damage" />
|
||||
</div>
|
||||
|
||||
<div class="attack-icons">
|
||||
|
||||
@@ -98,6 +101,9 @@
|
||||
<div class="numeric">
|
||||
<input type="number" name="system.rangedAttacks.{{item.key}}.damageModifier" value="{{item.damageModifier}}" data-tooltip="Damage modifier"/>
|
||||
</div>
|
||||
<div class="">
|
||||
<input type="checkbox" name="system.rangedAttacks.{{item.key}}.noExplode" {{checked item.noExplode}} data-tooltip="No exploding dice on damage" />
|
||||
</div>
|
||||
|
||||
<div class="attack-icons">
|
||||
|
||||
@@ -119,6 +125,36 @@
|
||||
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
<div class="ranged-weapon-range">
|
||||
<label>{{localize "LETHALFANTASY.Label.range"}}</label>
|
||||
<div class="range-fields">
|
||||
<div class="range-field">
|
||||
<label>{{localize "LETHALFANTASY.Label.pointBlank"}}</label>
|
||||
<input type="number" name="system.rangedWeaponRange.pointBlank" value="{{system.rangedWeaponRange.pointBlank}}" />
|
||||
</div>
|
||||
<div class="range-field">
|
||||
<label>{{localize "LETHALFANTASY.Label.short"}}</label>
|
||||
<input type="number" name="system.rangedWeaponRange.short" value="{{system.rangedWeaponRange.short}}" />
|
||||
</div>
|
||||
<div class="range-field">
|
||||
<label>{{localize "LETHALFANTASY.Label.medium"}}</label>
|
||||
<input type="number" name="system.rangedWeaponRange.medium" value="{{system.rangedWeaponRange.medium}}" />
|
||||
</div>
|
||||
<div class="range-field">
|
||||
<label>{{localize "LETHALFANTASY.Label.long"}}</label>
|
||||
<input type="number" name="system.rangedWeaponRange.long" value="{{system.rangedWeaponRange.long}}" />
|
||||
</div>
|
||||
<div class="range-field">
|
||||
<label>{{localize "LETHALFANTASY.Label.extreme"}}</label>
|
||||
<input type="number" name="system.rangedWeaponRange.extreme" value="{{system.rangedWeaponRange.extreme}}" />
|
||||
</div>
|
||||
<div class="range-field">
|
||||
<label>{{localize "LETHALFANTASY.Label.outOfSkill"}}</label>
|
||||
<input type="number" name="system.rangedWeaponRange.outOfSkill" value="{{system.rangedWeaponRange.outOfSkill}}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
@@ -149,6 +185,9 @@
|
||||
<div class="numeric">
|
||||
<input type="number" name="system.combatHTH.{{item.key}}.damageModifier" value="{{item.damageModifier}}" data-tooltip="Damage modifier"/>
|
||||
</div>
|
||||
<div class="">
|
||||
<input type="checkbox" name="system.combatHTH.{{item.key}}.noExplode" {{checked item.noExplode}} data-tooltip="No exploding dice on damage" />
|
||||
</div>
|
||||
|
||||
<div class="attack-icons">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user