2.2.1
Fix wet, windy and storms
This commit is contained in:
+5
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user