diff --git a/system/assets/icons/conditions/air-black.webp b/system/assets/icons/conditions/air-black.webp new file mode 100644 index 0000000..493f5d7 Binary files /dev/null and b/system/assets/icons/conditions/air-black.webp differ diff --git a/system/assets/icons/conditions/air-red.webp b/system/assets/icons/conditions/air-red.webp new file mode 100644 index 0000000..c939592 Binary files /dev/null and b/system/assets/icons/conditions/air-red.webp differ diff --git a/system/assets/icons/conditions/air-white.webp b/system/assets/icons/conditions/air-white.webp new file mode 100644 index 0000000..0c2df32 Binary files /dev/null and b/system/assets/icons/conditions/air-white.webp differ diff --git a/system/assets/icons/conditions/earth-black.webp b/system/assets/icons/conditions/earth-black.webp new file mode 100644 index 0000000..c7b162a Binary files /dev/null and b/system/assets/icons/conditions/earth-black.webp differ diff --git a/system/assets/icons/conditions/earth-red.webp b/system/assets/icons/conditions/earth-red.webp new file mode 100644 index 0000000..9415ff8 Binary files /dev/null and b/system/assets/icons/conditions/earth-red.webp differ diff --git a/system/assets/icons/conditions/earth-white.webp b/system/assets/icons/conditions/earth-white.webp new file mode 100644 index 0000000..1c7e7da Binary files /dev/null and b/system/assets/icons/conditions/earth-white.webp differ diff --git a/system/assets/icons/conditions/fire-black.webp b/system/assets/icons/conditions/fire-black.webp new file mode 100644 index 0000000..262d7c1 Binary files /dev/null and b/system/assets/icons/conditions/fire-black.webp differ diff --git a/system/assets/icons/conditions/fire-red.webp b/system/assets/icons/conditions/fire-red.webp new file mode 100644 index 0000000..e843398 Binary files /dev/null and b/system/assets/icons/conditions/fire-red.webp differ diff --git a/system/assets/icons/conditions/fire-white.webp b/system/assets/icons/conditions/fire-white.webp new file mode 100644 index 0000000..b626585 Binary files /dev/null and b/system/assets/icons/conditions/fire-white.webp differ diff --git a/system/assets/icons/conditions/void-black.webp b/system/assets/icons/conditions/void-black.webp new file mode 100644 index 0000000..a5fe165 Binary files /dev/null and b/system/assets/icons/conditions/void-black.webp differ diff --git a/system/assets/icons/conditions/void-red.webp b/system/assets/icons/conditions/void-red.webp new file mode 100644 index 0000000..774ef5f Binary files /dev/null and b/system/assets/icons/conditions/void-red.webp differ diff --git a/system/assets/icons/conditions/void-white.webp b/system/assets/icons/conditions/void-white.webp new file mode 100644 index 0000000..d5379df Binary files /dev/null and b/system/assets/icons/conditions/void-white.webp differ diff --git a/system/assets/icons/conditions/water-black.webp b/system/assets/icons/conditions/water-black.webp new file mode 100644 index 0000000..99e7457 Binary files /dev/null and b/system/assets/icons/conditions/water-black.webp differ diff --git a/system/assets/icons/conditions/water-red.webp b/system/assets/icons/conditions/water-red.webp new file mode 100644 index 0000000..7204558 Binary files /dev/null and b/system/assets/icons/conditions/water-red.webp differ diff --git a/system/assets/icons/conditions/water-white.webp b/system/assets/icons/conditions/water-white.webp new file mode 100644 index 0000000..a4573f8 Binary files /dev/null and b/system/assets/icons/conditions/water-white.webp differ diff --git a/system/lang/en-en.json b/system/lang/en-en.json index e7ca412..ff67eb2 100644 --- a/system/lang/en-en.json +++ b/system/lang/en-en.json @@ -80,6 +80,33 @@ }, "l5r5e": { "title": "Legend of the Five Rings", + "conditions": { + "afflicted": "Afflicted", + "bleeding": "Bleeding", + "burning": "Burning", + "compromised": "Compromised", + "dazed": "Dazed", + "disoriented": "Disoriented", + "dying": "Dying", + "enraged": "Enraged", + "exhausted": "Exhausted", + "immobilized": "Immobilized", + "incapacitated": "Incapacitated", + "intoxicated": "Intoxicated", + "prone": "Prone", + "silenced": "Silenced", + "unconscious": "Unconscious", + "lightlyWoundedFire": "Lightly Wounded (Fire)", + "lightlyWoundedWater": "Lightly Wounded (Water)", + "lightlyWoundedAir": "Lightly Wounded (Air)", + "lightlyWoundedEarth": "Lightly Wounded (Earth)", + "lightlyWoundedVoid": "Lightly Wounded (Void)", + "severelyWoundedFire": "Severely Wounded (Fire)", + "severelyWoundedWater": "Severely Wounded (Water)", + "severelyWoundedAir": "Severely Wounded (Air)", + "severelyWoundedEarth": "Severely Wounded (Earth)", + "severelyWoundedVoid": "Severely Wounded (Void)" + }, "global": { "edge_translation_disclaimer": "", "add": "Add", diff --git a/system/scripts/config.js b/system/scripts/config.js index d97c76d..135739d 100644 --- a/system/scripts/config.js +++ b/system/scripts/config.js @@ -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)(?:\(([^)]+?)\))?)?$/, }, diff --git a/system/scripts/hooks.js b/system/scripts/hooks.js index 9b4cd16..3e6bb11 100644 --- a/system/scripts/hooks.js +++ b/system/scripts/hooks.js @@ -14,6 +14,10 @@ export default class HooksL5r5e { } } + static async init() { + CONFIG.statusEffects = CONFIG.l5r5e.conditions + } + /** * Do anything once the system is ready */ diff --git a/system/scripts/main-l5r5e.js b/system/scripts/main-l5r5e.js index ad8769e..23f259e 100644 --- a/system/scripts/main-l5r5e.js +++ b/system/scripts/main-l5r5e.js @@ -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)); /* ------------------------------------ */