Skip to content

feat(guns): Lance is the home gun; Scatter and Seekers run on a limited charge - #43

Merged
vriesd merged 2 commits into
mainfrom
feat/special-gun-charge
Nov 13, 2026
Merged

vriesd merged 2 commits into
mainfrom
feat/special-gun-charge

Conversation

@vriesd

@vriesd vriesd commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Being able to swap freely between all three main guns made the game too easy, and the "CHOOSE YOUR MAIN GUN" window is no longer wanted.

Now Lance is always the home gun from sector 3. Q (or the touch swap key) borrows Scatter or Seekers on a charge: a full meter lasts 10 s, the gun drops back to Lance when it is empty, and the meter refills only on Lance (30 s, a little faster per kill). Leaving Lance needs at least a fifth of the meter. Sectors 1–2 are unchanged.

  • The HUD shows the gun name and the charge from sector 3; the touch swap key shows the same charge.
  • The gun pick is removed everywhere: the pick dialog, the refit bay tile, the pause SYSTEMS row, save labels and save data. Old saves load with the stored gun ignored.
  • The 2 s swap cooldown and fire silence are gone; the charge is the cost.
  • Boss balance script measures Lance only for now. Tuning the charge numbers and boss fights, and a short in-game explanation of Q, follow in separate PRs.

Proof: typecheck, lint, format, knip, unit tests, build and bundle check pass; Playwright desktop + mobile 97 passed (5 existing skips), including a new sector-3 test that drains a special gun back to Lance; HUD, pause panel and refit bay checked in screenshots on desktop and phone.

Reviewed with sol-loop: 1 round with gpt-6.1-sol. Sol verdict: approved

Created with Claude Opus 5.5 and Claude Fable 5.2 in Claude Code.

🤖 Generated with Claude Code

vriesdcrv and others added 2 commits November 13, 2026 21:35
…run on a charge

The main gun is no longer a picked ship system. From sector 3 the ship flies
Lance, and Q (or the touch swap key) steps Lance -> Scatter -> Seekers -> Lance.
One charge meter (SPECIAL_GUN_CHARGE, gameplay clock) pays for the specials:
it drains while one is out (full = 10 s) and hands back Lance at empty, refills
on Lance over 30 s plus 0.02 per kill, needs 0.2 to leave Lance, and starts
full every sector and after a respawn or checkpoint load. It is never saved.

- ShipSystemsRuntime owns the gun and the charge; GUN_SWAP, the swap cooldown
  and the fire silence are gone.
- HUD: gun name and charge bar under the reserve ships (amber draining, cyan
  refilling, tick at the threshold); the touch swap key mirrors it.
- Removed the gun slot from ShipSystems, the sector-2 pick, the refit bay gun
  tile, the pause SYSTEMS gun row and the gun in save-slot labels. Old saves
  with a gun field load with it ignored.
- Boss balance script measures Lance only (--guns removed).
- Browser harness snapshot exposes the gun and charge for e2e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Lance

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T20:38:48.324461Z bdc5f1d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vriesd
vriesd merged commit 4f6a13b into main Nov 13, 2026
10 checks passed
@vriesd
vriesd deleted the feat/special-gun-charge branch November 13, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants