From 5ddc380dac4b39a00da3ef9b3273dd89d0057948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olari=20T=C5=A1ernobrovkin?= Date: Sat, 17 Jan 2026 20:03:34 +0200 Subject: [PATCH] Make constant's variable name consistent with the codebase --- src/systems/ui/weatherEffects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systems/ui/weatherEffects.js b/src/systems/ui/weatherEffects.js index 0adab11..0bef359 100644 --- a/src/systems/ui/weatherEffects.js +++ b/src/systems/ui/weatherEffects.js @@ -107,7 +107,7 @@ function getCurrentTime() { // Patterns for specific weather conditions (order matters - combined effects first) // Grouped by languages for easy editing -const weatherPatternsByLanguage = { +const WEATHER_PATTERNS_BY_LANGUAGE = { en: [ { id: "blizzard", patterns: [ "blizzard" ] }, // Snow + Wind { id: "storm", patterns: [ "storm", "thunder", "lightning" ] }, // Rain + Lightning @@ -138,7 +138,7 @@ function parseWeatherType(weatherText) { const text = weatherText.toLowerCase(); - for (const language of Object.values(weatherPatternsByLanguage)) { + for (const language of Object.values(WEATHER_PATTERNS_BY_LANGUAGE)) { for (const { id, patterns } of language) { if (patterns.some(p => text.includes(p))) { return id;