Merge branch 'conditions' into 'dev'
Implement token conditions See merge request teaml5r/l5r5e!42
BIN
system/assets/icons/conditions/air-black.webp
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
system/assets/icons/conditions/air-red.webp
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
system/assets/icons/conditions/air-white.webp
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
system/assets/icons/conditions/earth-black.webp
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
system/assets/icons/conditions/earth-red.webp
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
system/assets/icons/conditions/earth-white.webp
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
BIN
system/assets/icons/conditions/fire-black.webp
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
system/assets/icons/conditions/fire-red.webp
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
system/assets/icons/conditions/fire-white.webp
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
system/assets/icons/conditions/void-black.webp
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
system/assets/icons/conditions/void-red.webp
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
system/assets/icons/conditions/void-white.webp
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
system/assets/icons/conditions/water-black.webp
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
system/assets/icons/conditions/water-red.webp
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
system/assets/icons/conditions/water-white.webp
Normal file
|
After Width: | Height: | Size: 13 KiB |
@@ -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",
|
||||
|
||||
@@ -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));
|
||||
|
||||
/* ------------------------------------ */
|
||||
|
||||