implement token conditions

This commit is contained in:
Bernhard Posselt
2025-09-03 14:11:06 +02:00
parent 54aafefcf4
commit e846a0a30c
19 changed files with 59 additions and 0 deletions

View File

@@ -14,6 +14,33 @@ export const L5R5E = {
skillCostMultiplier: 2,
techniqueCost: 3,
},
conditions: [
{id: "afflicted", name: "l5r5e.conditions.afflicted", img: "icons/magic/death/undead-ghost-scream-teal.webp"},
{id: "bleeding", name: "l5r5e.conditions.bleeding", img: "icons/skills/wounds/blood-drip-droplet-red.webp"},
{id: "burning", name: "l5r5e.conditions.burning", img: "icons/magic/fire/flame-burning-creature-skeleton.webp"},
{id: "compromised", name: "l5r5e.conditions.compromised", img: "icons/creatures/abilities/mouth-teeth-human.webp"},
{id: "dazed", name: "l5r5e.conditions.dazed", img: "icons/magic/light/beam-explosion-orange.webp"},
{id: "disoriented", name: "l5r5e.conditions.disoriented", img: "icons/magic/control/hypnosis-mesmerism-eye.webp"},
{id: "dying", name: "l5r5e.conditions.dying", img: "icons/magic/death/skull-humanoid-white-blue.webp"},
{id: "enraged", name: "l5r5e.conditions.enraged", img: "icons/skills/wounds/injury-face-impact-orange.webp"},
{id: "exhausted", name: "l5r5e.conditions.exhausted", img: "icons/magic/life/heart-glowing-red.webp"},
{id: "immobilized", name: "l5r5e.conditions.immobilized", img: "icons/magic/nature/root-vine-entangle-foot-green.webp"},
{id: "incapacitated", name: "l5r5e.conditions.incapacitated", img: "icons/magic/control/silhouette-hold-change-green.webp"},
{id: "intoxicated", name: "l5r5e.conditions.intoxicated", img: "icons/consumables/drinks/alcohol-jar-spirits-gray.webp"},
{id: "prone", name: "l5r5e.conditions.prone", img: "icons/magic/control/silhouette-fall-slip-prone.webp"},
{id: "silenced", name: "l5r5e.conditions.silenced", img: "icons/magic/control/mouth-smile-deception-purple.webp"},
{id: "unconscious", name: "l5r5e.conditions.unconscious", img: "icons/magic/control/sleep-bubble-purple.webp"},
{id: "lightlyWoundedFire", name: "l5r5e.conditions.lightlyWoundedFire", img: "systems/l5r5e/assets/icons/conditions/fire-white.webp"},
{id: "lightlyWoundedWater", name: "l5r5e.conditions.lightlyWoundedWater", img: "systems/l5r5e/assets/icons/conditions/water-white.webp"},
{id: "lightlyWoundedAir", name: "l5r5e.conditions.lightlyWoundedAir", img: "systems/l5r5e/assets/icons/conditions/air-white.webp"},
{id: "lightlyWoundedEarth", name: "l5r5e.conditions.lightlyWoundedEarth", img: "systems/l5r5e/assets/icons/conditions/earth-white.webp"},
{id: "lightlyWoundedVoid", name: "l5r5e.conditions.lightlyWoundedVoid", img: "systems/l5r5e/assets/icons/conditions/void-white.webp"},
{id: "severelyWoundedFire", name: "l5r5e.conditions.severelyWoundedFire", img: "systems/l5r5e/assets/icons/conditions/fire-black.webp"},
{id: "severelyWoundedWater", name: "l5r5e.conditions.severelyWoundedWater", img: "systems/l5r5e/assets/icons/conditions/water-black.webp"},
{id: "severelyWoundedAir", name: "l5r5e.conditions.severelyWoundedAir", img: "systems/l5r5e/assets/icons/conditions/air-black.webp"},
{id: "severelyWoundedEarth", name: "l5r5e.conditions.severelyWoundedEarth", img: "systems/l5r5e/assets/icons/conditions/earth-black.webp"},
{id: "severelyWoundedVoid", name: "l5r5e.conditions.severelyWoundedVoid", img: "systems/l5r5e/assets/icons/conditions/void-black.webp"},
],
regex: {
techniqueDifficulty: /^@([TS]):([^|]+?)(?:\|(min|max)(?:\(([^)]+?)\))?)?$/,
},