Say the weapon's name once
A first-seen tin announced itself twice after a won duel: the modal that teaches its rules, and then the delivery card right behind it, same title same icon. weaponModal now reports whether it spoke, and the card (and the barrel's flash) only speak when it didn't. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
24e4d23921
commit
1f22d3d5a0
2 files changed
+14
-10
No files matched your search
+3
-3
@@ -359,9 +359,9 @@ function popBarrel(zb) {
|
||||
vx: (Math.random() * 2 - 1) * 4, vy: 1.2 + Math.random() * 3.5, vz: (Math.random() * 2 - 1) * 4,
|
||||
t: 0.35 + Math.random() * 0.5, pink: true });
|
||||
grantWeapon(zb.wid);
|
||||
const w = WEAPONS[zb.wid];
|
||||
G.flash = { text: w.label, t: 1.1 };
|
||||
weaponModal(zb.wid); // first sight only — the gate lives in weaponModal, for both callers
|
||||
// first sight only — the gate lives in weaponModal, for both callers — and the flash keeps quiet
|
||||
// when the modal spoke, so the same weapon isn't named twice in the same beat
|
||||
if (!weaponModal(zb.wid)) G.flash = { text: WEAPONS[zb.wid].label, t: 1.1 };
|
||||
}
|
||||
|
||||
// dark smoke: one puff, drifting up and spreading. Not gravity-bound like gore (see the parts loop).
|
||||
|
||||
Reference in new issue
Block a user