From 54d453d034b5cc25b2e5be1cf953f66be306c3f8 Mon Sep 17 00:00:00 2001 From: you Date: Sun, 22 Mar 2026 08:13:22 +0000 Subject: [PATCH] Rain: spawn column per observation for denser rain Each observation of a packet spawns its own rain column, staggered 150ms apart. More observers = more rain. --- public/index.html | 2 +- public/live.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index e9376903..9089280e 100644 --- a/public/index.html +++ b/public/index.html @@ -90,7 +90,7 @@ - + diff --git a/public/live.js b/public/live.js index 4dbbf16b..8db3dcb5 100644 --- a/public/live.js +++ b/public/live.js @@ -1396,6 +1396,11 @@ playSound(typeName); addFeedItem(icon, typeName, payload, hops, color, pkt); addRainDrop(pkt); + // Spawn extra rain columns for multiple observations + const obsCount = pkt.observation_count || (pkt.packet && pkt.packet.observation_count) || 1; + for (let i = 1; i < obsCount; i++) { + setTimeout(() => addRainDrop(pkt), i * 150); // stagger slightly + } // Favorites filter: skip animation if packet doesn't involve a favorited node if (showOnlyFavorites && !packetInvolvesFavorite(pkt)) return; @@ -1435,7 +1440,8 @@ if (showOnlyFavorites && !packets.some(p => packetInvolvesFavorite(p))) return; playSound(typeName); - addRainDrop(first); + // Rain drop per observation in the group + packets.forEach((p, i) => setTimeout(() => addRainDrop(p), i * 150)); // Ensure ADVERT nodes appear for (const pkt of packets) {