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:
1 parent
64ac53434b
commit
7d33e36c1e
8 files changed
+31
-31
No files matched your search
+1
-1
@@ -130,7 +130,7 @@ function collectPickup(k) {
|
||||
}
|
||||
const def = ACTIVES[k.aid];
|
||||
p.active = { iid: k.aid, charges: k.charges !== undefined ? k.charges : def.cost };
|
||||
addToast(def.name, def.desc + ' — [SPACE] when charged');
|
||||
addToast(def.name, def.desc + ' — [SPACE] when charged', 5.5);
|
||||
spawnText(p.x, p.y - 14, def.name.toUpperCase(), '#55f5dc');
|
||||
Sfx.item();
|
||||
for (const q of G.pickups) if (q.type === 'itemspot') q.dead = true; // remove pedestal base
|
||||
|
||||
Reference in new issue
Block a user