Fix wet, windy and storms
This commit is contained in:
fraxle
2026-06-02 15:40:05 +01:00
parent 099f2924d3
commit 91ff762c5f
4 changed files with 145 additions and 13 deletions
+5 -1
View File
@@ -31,6 +31,8 @@ import {
checkStargazing,
checkSunset,
checkHeatSpike,
checkWind,
checkWet,
checkStorm,
checkFrost,
} from './events/weather-checks.js';
@@ -76,7 +78,7 @@ export function getCellTagEvents(events, row) {
// --- BANNER PRIORITY -----------------------------------------------------
// Weather event IDs that are safety-relevant and should always appear as the
// first banner slide, ahead of cosmic events and lower-priority weather items.
const PRIORITY_WEATHER_IDS = new Set(['heat-spike', 'frost', 'storm']);
const PRIORITY_WEATHER_IDS = new Set(['heat-spike', 'frost', 'storm', 'wind', 'wet']);
// --- MAIN EXPORT ---------------------------------------------------------
// Returns ALL active events for the given rows/date as an array.
@@ -106,6 +108,8 @@ export function getActiveEvents(rows, location) {
const checks = [
checkHeatSpike(rows),
checkStorm(rows),
checkWind(rows),
checkWet(rows),
checkFrost(rows),
checkSunset(rows, location),
checkStargazing(rows),