update Tue 07/14/2026 16:07:05.30
This commit is contained in:
+3
-3
@@ -7,7 +7,7 @@
|
||||
* crossfadeSeconds: 3, // fade out/in overlap hint for clients
|
||||
* order: 'shuffle' | 'roster', // rotation order through the roster
|
||||
* include: { colors:[], rarities:[], ids:[] }, // empty = all
|
||||
* behaviors: { staticChance: 0.5, wanderRadius: 60, wanderSpeed: 0.15 },
|
||||
* behaviors: { staticChance: 0.5, wanderRadius: 60, wanderSpeed: 0.15, wanderVertical: 10 },
|
||||
* timeWindows: [] // e.g. [{ start:"09:00", end:"17:00" }] — empty = always on
|
||||
* }
|
||||
*
|
||||
@@ -23,7 +23,7 @@ class Playlist {
|
||||
this.cfg = state.getPlaylistConfig({
|
||||
slots: 5, dwellSeconds: 120, crossfadeSeconds: 3, order: 'shuffle',
|
||||
include: { colors: [], rarities: [], ids: [] },
|
||||
behaviors: { staticChance: 0.5, wanderRadius: 60, wanderSpeed: 0.15 },
|
||||
behaviors: { staticChance: 0.5, wanderRadius: 60, wanderSpeed: 0.15, wanderVertical: 10 },
|
||||
timeWindows: [],
|
||||
});
|
||||
this.active = new Map(); // uid -> ghost record
|
||||
@@ -105,7 +105,7 @@ class Playlist {
|
||||
spawnId: spawn.id, pos: spawn.position,
|
||||
behavior: isStatic
|
||||
? { type: 'static', bobAmp: 5 + Math.random() * 5, bobHz: 0.3 + Math.random() * 0.3 }
|
||||
: { type: 'wander', radius: b.wanderRadius ?? 60, speed: b.wanderSpeed ?? 0.15, seed: Math.floor(Math.random() * 1e6) },
|
||||
: { type: 'wander', radius: b.wanderRadius ?? 60, speed: b.wanderSpeed ?? 0.15, vertical: b.wanderVertical ?? 10, seed: Math.floor(Math.random() * 1e6) },
|
||||
spawnedAt: Date.now(),
|
||||
until: Date.now() + (this.cfg.dwellSeconds || 120) * 1000,
|
||||
crossfade: this.cfg.crossfadeSeconds || 3,
|
||||
|
||||
Reference in New Issue
Block a user