v0.2.0: item pickups hold their toast for 5.5s

Toast durations are now per-toast (addToast third arg); passive item and
active item pickups display for 5.5s instead of the default 2.5s.
Cache v=43.
This commit is contained in:
MeatSlicer Developer committed 2026-07-30 17:49:14 +10:00
1 parent 64ac53434b
commit 7d33e36c1e
8 files changed
+31 -31

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ const SfxBank = {
if (this.buffers.has(name) || this.pending.has(name) || this.failed.has(name)) return;
const file = this.FILES[name];
if (!file || !this.ctx || typeof fetch !== 'function') return;
const job = fetch('/assets/sfx/' + encodeURIComponent(file) + '?v=42')
const job = fetch('/assets/sfx/' + encodeURIComponent(file) + '?v=43')
.then(r => { if (!r.ok) throw new Error('HTTP ' + r.status); return r.arrayBuffer(); })
.then(bytes => this.ctx.decodeAudioData(bytes))
.then(buffer => this.buffers.set(name, this.trim(buffer)))