Merge branch 'conditions' into 'dev'
Implement token conditions See merge request teaml5r/l5r5e!42
This commit is contained in:
@@ -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)(?:\(([^)]+?)\))?)?$/,
|
||||
},
|
||||
|
||||
@@ -14,6 +14,10 @@ export default class HooksL5r5e {
|
||||
}
|
||||
}
|
||||
|
||||
static async init() {
|
||||
CONFIG.statusEffects = CONFIG.l5r5e.conditions
|
||||
}
|
||||
|
||||
/**
|
||||
* Do anything once the system is ready
|
||||
*/
|
||||
|
||||
@@ -252,6 +252,7 @@ Hooks.once("init", async () => {
|
||||
/* ------------------------------------ */
|
||||
Hooks.once("setup", HooksL5r5e.setup);
|
||||
Hooks.once("ready", HooksL5r5e.ready);
|
||||
Hooks.once("init", HooksL5r5e.init);
|
||||
Hooks.once("diceSoNiceReady", (dice3d) => HooksL5r5e.diceSoNiceReady(dice3d));
|
||||
|
||||
/* ------------------------------------ */
|
||||
|
||||
Reference in New Issue
Block a user