feat: 2.5s lockout before dropped weapons can be re-picked

This commit is contained in:
Quintine committed 2026-08-09 13:56:41 +10:00
1 parent 7aee2f5f64
commit e801c02ef6
4 files changed
+29 -3

No files matched your search

+1 -1
View File
@@ -117,7 +117,7 @@ function collectPickup(k) {
if (old) {
const a = rand(0, TAU);
spawnPickup('weapon', p.x + Math.cos(a) * 34, p.y + Math.sin(a) * 34,
{ wid: old.id, ammo: old.ammo, delay: 0.6 });
{ wid: old.id, ammo: old.ammo, delay: WEAPON_DROP_LOCKOUT });
}
p.weapon = { id: w.id, ammo: k.ammo !== undefined ? k.ammo : w.ammo };
p.holstered = null;