Midnight Ops: flashes of light no longer put each other out by ngcoding10 · Pull Request #427 · ASCoding11/ASCoding11.github.io · GitHub
Skip to content

Midnight Ops: flashes of light no longer put each other out - #427

Merged
ngcoding10 merged 1 commit into
mainfrom
claude/determined-rubin-4547gi
Dec 5, 2026
Merged

ngcoding10 merged 1 commit into
mainfrom
claude/determined-rubin-4547gi

Conversation

@ngcoding10

Copy link
Copy Markdown
Collaborator
  • Midnight Ops: flashes of light no longer put each other out. Shots, bullet hits on metal and explosions each light the scene for a moment, from a small pool of lights (three on Medium and High, two on Low). Since 2 December the code that picks a free light had ended up inside a comment by mistake, so every flash took the first light and put out the one before. So when you fired just after a blast, its glow vanished at once, and in a firefight only the latest muzzle flash lit anything.
  • The fix: the search is a real line of code again (js/fx.js): a flash takes a free light, or else the one closest to going out.
  • Measured (High, three flashes in the same moment, your shot, an enemy's shot and a hit on metal): before, only the last one was lit; now all three are, each where it should be. A fourth (a blast) takes the light that was about to go out. On Low, with two lights, the third flash takes the older one.
  • Cost: none. The number of lights is the same, so no shader changes. This only changes which light each flash uses.
  • Pages affected: Midnight Ops only (e63334287a3deaa3/ironveil/js/fx.js) and its README entry.
  • Play is unchanged: these lights are only for looks; nothing in the game reads them.
  • Tested:
    • The three-flash test above at High and Low, before and after.
    • All three maps load with no console errors at Low and High, and tests/play.js --menus passes.
  • No What's new entry: Midnight Ops is admin-preview only (label no-news).
  • Merged without review at Nico's request.

Generated by Claude Code

The search for a free flash light had ended up inside a trailing
comment on 2 December, so every flash (shots, hits on metal, blasts)
took the first light and put out the one before: firing just after a
blast cut its glow short. The search is code again: a free light, else
the one closest to going out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFKVdwogGyQUBs4i7ZPGHo
@cloudflare-workers-and-pages

Copy link
Copy Markdown

@ngcoding10 ngcoding10 added the no-news label Dec 5, 2026 — with Claude
@ngcoding10
ngcoding10 merged commit 55a1ff9 into main Dec 5, 2026
1 check was pending
@netlify

netlify Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ascoding11 ready!

Name Link
🔨 Latest commit a8f6f5f
🔍 Latest deploy log https://app.netlify.com/projects/ascoding11/deploys/6b13ea62ff3c935203d7c4d3
😎 Deploy Preview https://deploy-preview-427--ascoding11.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cosmic-dasik-e73c56 ready!

Name Link
🔨 Latest commit a8f6f5f
🔍 Latest deploy log https://app.netlify.com/projects/cosmic-dasik-e73c56/deploys/6b13ea62fce9a0461ee1f5ba
😎 Deploy Preview https://deploy-preview-427--cosmic-dasik-e73c56.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants