From e54a1052224519982eec88f16899dedda4589004 Mon Sep 17 00:00:00 2001 From: Vlyan Date: Sun, 21 Sep 2025 16:55:57 +0200 Subject: [PATCH] Release v1.13.1 - Conditions & Fixes --- CHANGELOG.md | 11 ++-- system/lang/en-en.json | 4 ++ system/lang/es-es.json | 4 ++ system/lang/fr-fr.json | 4 ++ system/lang/it-it.json | 4 ++ system/scripts/config.js | 101 +++++++++++++++++++------------------ system/scripts/hooks.js | 10 +++- system/scripts/settings.js | 9 ++++ system/system.json | 4 +- 9 files changed, 93 insertions(+), 58 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b9b9af..a56ea53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,14 +6,17 @@ Date format : day/month/year > - `foundry-version`: Stick to the major version of FoundryVTT. > - `system-version`: System functionalities and Fixes. -## 1.13.1 - ??/09/2025 - Fixes +## 1.13.1 - 21/09/2025 - Conditions & Fixes - Fix for Clicking on items doesn't show item window (#65 Thx to Litasa) - Fix for fade configuration (#66) -- Added basic token conditions (Thanks to Putty) -- Added compromised condition when strife goes beyond max (Thanks to Putty). -- Added ability to remove condition from actor sheet and core journal on click. - Added some Tooltips loading optimizations (#62 Thanks to KitCat). - Added some Properties loading optimizations (#63 Thanks to KitCat). +- Conditions changes : + - Added basic token conditions (Thanks to Putty) + - Added compromised condition when strife goes beyond max (Thanks to Putty). + - Added apply incapacitated if character's fatigue goes beyond endurance (Thanks to Putty). + - Added ability to remove condition from actor sheet and show core journal on click. + - Added option to show all conditions (StatusEffect), default to false (show only l5R conditions). ## 1.13.0 - 24/08/2025 - Foundry v13 Compatibility (Thx to Litasa) __! Be certain to carefully back up any critical user data before installing this update !__ diff --git a/system/lang/en-en.json b/system/lang/en-en.json index d6754e0..71176e9 100644 --- a/system/lang/en-en.json +++ b/system/lang/en-en.json @@ -21,6 +21,10 @@ "SetTn1OnTypeChange": "Set TN to 1 on encounter change", "SetTn1OnTypeChangeHint": "Set the TN to 1 when the encounter type is selected (Intrigue, Duel, Skirmish or Mass battle)" }, + "ShowAllStatusEffects": { + "Title": "Show all StatusEffects", + "Hint": "If uncheck (default), only L5R conditions are shown." + }, "CustomTechniques": { "Title": "Use custom techniques", "Hint": "Add 'Specificity' technique type to serve as a catch-all." diff --git a/system/lang/es-es.json b/system/lang/es-es.json index d0eb536..6e7b8f4 100644 --- a/system/lang/es-es.json +++ b/system/lang/es-es.json @@ -21,6 +21,10 @@ "SetTn1OnTypeChange": "Poner el NO a 1 al seleccionar el tipo de encuentro", "SetTn1OnTypeChangeHint": "Poner el NO a 1 cuando se elige el tipo de encuentro (Intriga, Duelo, Escaramuza o Batalla a gran escala)" }, + "ShowAllStatusEffects": { + "Title": "Show all StatusEffects", + "Hint": "If uncheck (default), only L5R conditions are shown." + }, "CustomTechniques": { "Title": "Use custom techniques", "Hint": "Add 'Specificity' technique type to serve as a catch-all." diff --git a/system/lang/fr-fr.json b/system/lang/fr-fr.json index 56c659a..a99b5bd 100644 --- a/system/lang/fr-fr.json +++ b/system/lang/fr-fr.json @@ -21,6 +21,10 @@ "SetTn1OnTypeChange": "ND 1 à la sélection du type de rencontre", "SetTn1OnTypeChangeHint": "Met le ND à 1 lorsqu'on modifie le type de rencontre (Intrigue, Duel, Escarmouche ou Bataille rangée)" }, + "ShowAllStatusEffects": { + "Title": "Affiche tous les StatusEffects", + "Hint": "Si décoché (défaut), uniquement les conditions de L5R sont affichées." + }, "CustomTechniques": { "Title": "Utiliser les techniques personnalisées", "Hint": "Ajoute un type de technique 'Particularités' pour servir de fourre-tout." diff --git a/system/lang/it-it.json b/system/lang/it-it.json index 6fb434e..c0f3982 100644 --- a/system/lang/it-it.json +++ b/system/lang/it-it.json @@ -21,6 +21,10 @@ "SetTn1OnTypeChange": "Fissa la TN a 1 quando si cambia il conflitto", "SetTn1OnTypeChangeHint": "Fissa la TN a 1 quando si seleziona il tipo di conflitto (Intrigo, Duello, Schermaglia or Battaglia campale)" }, + "ShowAllStatusEffects": { + "Title": "Show all StatusEffects", + "Hint": "If uncheck (default), only L5R conditions are shown." + }, "CustomTechniques": { "Title": "Usa tecniche custom", "Hint": "Aggiunge il tipo 'Speciale' come termine generale." diff --git a/system/scripts/config.js b/system/scripts/config.js index 58f4fde..d291856 100644 --- a/system/scripts/config.js +++ b/system/scripts/config.js @@ -14,7 +14,58 @@ export const L5R5E = { skillCostMultiplier: 2, techniqueCost: 3, }, + // For rings wound to be aligned, add them first conditions: [{ + id: "lightly_wounded_fire", + name: "l5r5e.conditions.lightly_wounded_fire", + img: "systems/l5r5e/assets/icons/conditions/fire-white.webp", + system: { id: "L5RCoreCon000016" } + },{ + id: "lightly_wounded_water", + name: "l5r5e.conditions.lightly_wounded_water", + img: "systems/l5r5e/assets/icons/conditions/water-white.webp", + system: { id: "L5RCoreCon000016" } + },{ + id: "lightly_wounded_air", + name: "l5r5e.conditions.lightly_wounded_air", + img: "systems/l5r5e/assets/icons/conditions/air-white.webp", + system: { id: "L5RCoreCon000016" } + },{ + id: "lightly_wounded_earth", + name: "l5r5e.conditions.lightly_wounded_earth", + img: "systems/l5r5e/assets/icons/conditions/earth-white.webp", + system: { id: "L5RCoreCon000016" } + },{ + id: "lightly_wounded_void", + name: "l5r5e.conditions.lightly_wounded_void", + img: "systems/l5r5e/assets/icons/conditions/void-white.webp", + system: { id: "L5RCoreCon000016" } + },{ + id: "severely_wounded_fire", + name: "l5r5e.conditions.severely_wounded_fire", + img: "systems/l5r5e/assets/icons/conditions/fire-black.webp", + system: { id: "L5RCoreCon000016" } + },{ + id: "severely_wounded_water", + name: "l5r5e.conditions.severely_wounded_water", + img: "systems/l5r5e/assets/icons/conditions/water-black.webp", + system: { id: "L5RCoreCon000016" } + },{ + id: "severely_wounded_air", + name: "l5r5e.conditions.severely_wounded_air", + img: "systems/l5r5e/assets/icons/conditions/air-black.webp", + system: { id: "L5RCoreCon000016" } + },{ + id: "severely_wounded_earth", + name: "l5r5e.conditions.severely_wounded_earth", + img: "systems/l5r5e/assets/icons/conditions/earth-black.webp", + system: { id: "L5RCoreCon000016" } + },{ + id: "severely_wounded_void", + name: "l5r5e.conditions.severely_wounded_void", + img: "systems/l5r5e/assets/icons/conditions/void-black.webp", + system: { id: "L5RCoreCon000016" } + },{ id: "afflicted", name: "l5r5e.conditions.afflicted", img: "icons/magic/death/undead-ghost-scream-teal.webp", @@ -129,56 +180,6 @@ export const L5R5E = { name: "l5r5e.conditions.unconscious", img: "icons/magic/control/sleep-bubble-purple.webp", system: { id: "L5RCoreCon000015" } - },{ - id: "lightly_wounded_fire", - name: "l5r5e.conditions.lightly_wounded_fire", - img: "systems/l5r5e/assets/icons/conditions/fire-white.webp", - system: { id: "L5RCoreCon000016" } - },{ - id: "lightly_wounded_water", - name: "l5r5e.conditions.lightly_wounded_water", - img: "systems/l5r5e/assets/icons/conditions/water-white.webp", - system: { id: "L5RCoreCon000016" } - },{ - id: "lightly_wounded_air", - name: "l5r5e.conditions.lightly_wounded_air", - img: "systems/l5r5e/assets/icons/conditions/air-white.webp", - system: { id: "L5RCoreCon000016" } - },{ - id: "lightly_wounded_earth", - name: "l5r5e.conditions.lightly_wounded_earth", - img: "systems/l5r5e/assets/icons/conditions/earth-white.webp", - system: { id: "L5RCoreCon000016" } - },{ - id: "lightly_wounded_void", - name: "l5r5e.conditions.lightly_wounded_void", - img: "systems/l5r5e/assets/icons/conditions/void-white.webp", - system: { id: "L5RCoreCon000016" } - },{ - id: "severely_wounded_fire", - name: "l5r5e.conditions.severely_wounded_fire", - img: "systems/l5r5e/assets/icons/conditions/fire-black.webp", - system: { id: "L5RCoreCon000016" } - },{ - id: "severely_wounded_water", - name: "l5r5e.conditions.severely_wounded_water", - img: "systems/l5r5e/assets/icons/conditions/water-black.webp", - system: { id: "L5RCoreCon000016" } - },{ - id: "severely_wounded_air", - name: "l5r5e.conditions.severely_wounded_air", - img: "systems/l5r5e/assets/icons/conditions/air-black.webp", - system: { id: "L5RCoreCon000016" } - },{ - id: "severely_wounded_earth", - name: "l5r5e.conditions.severely_wounded_earth", - img: "systems/l5r5e/assets/icons/conditions/earth-black.webp", - system: { id: "L5RCoreCon000016" } - },{ - id: "severely_wounded_void", - name: "l5r5e.conditions.severely_wounded_void", - img: "systems/l5r5e/assets/icons/conditions/void-black.webp", - system: { id: "L5RCoreCon000016" } }], regex: { techniqueDifficulty: /^@([TS]):([^|]+?)(?:\|(min|max)(?:\(([^)]+?)\))?)?$/, diff --git a/system/scripts/hooks.js b/system/scripts/hooks.js index e754c2c..15ccb1f 100644 --- a/system/scripts/hooks.js +++ b/system/scripts/hooks.js @@ -5,8 +5,14 @@ export default class HooksL5r5e { * Do initialization */ static async init() { - // Add L5R conditions to foundry conditions (don't restrict users) - CONFIG.statusEffects.push(...CONFIG.l5r5e.conditions); + // L5R conditions + if (game.settings.get(CONFIG.l5r5e.namespace, "show-all-status-effects")) { + // Add L5R conditions to foundry conditions (don't restrict users) + CONFIG.statusEffects.push(...CONFIG.l5r5e.conditions); + } else { + // L5R conditions only + CONFIG.statusEffects = CONFIG.l5r5e.conditions; + } } /** diff --git a/system/scripts/settings.js b/system/scripts/settings.js index 934ab6e..2d87e5f 100644 --- a/system/scripts/settings.js +++ b/system/scripts/settings.js @@ -25,6 +25,15 @@ export const RegisterSettings = function () { type: Boolean, default: true, }); + game.settings.register(CONFIG.l5r5e.namespace, "show-all-status-effects", { + name: "SETTINGS.ShowAllStatusEffects.Title", + hint: "SETTINGS.ShowAllStatusEffects.Hint", + scope: "world", + config: true, + type: Boolean, + default: false, + requiresReload: true, + }); game.settings.register(CONFIG.l5r5e.namespace, "techniques-customs", { name: "SETTINGS.CustomTechniques.Title", hint: "SETTINGS.CustomTechniques.Hint", diff --git a/system/system.json b/system/system.json index 935afa6..fd447fc 100644 --- a/system/system.json +++ b/system/system.json @@ -7,8 +7,8 @@ "changelog": "https://gitlab.com/teaml5r/l5r5e/-/blob/master/CHANGELOG.md", "license": "https://gitlab.com/teaml5r/l5r5e/-/blob/master/LICENSE.md", "manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json", - "download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.13.0/raw/l5r5e.zip?job=build", - "version": "1.13.0", + "download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.13.1/raw/l5r5e.zip?job=build", + "version": "1.13.1", "compatibility": { "minimum": "13", "verified": "13",