Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThe changes introduce a new smoke trail particle effect system for missiles, integrate it into the FX rendering layer to handle specific missile unit types (AtomBomb, HydrogenBomb, MIRV, MIRVWarhead, SAMMissile), and refactor coordinate handling in unit interactions to avoid mutating input parameters. Changes
Sequence DiagramsequenceDiagram
participant Unit as Unit Activation
participant FxLayer as FX Layer
participant SmokeTrail as SmokeTrailFx
participant Canvas as Canvas Render
Unit->>FxLayer: Unit activated (missile type)
FxLayer->>SmokeTrail: Create SmokeTrailFx(game, unitId)
FxLayer->>FxLayer: Store in missileTrails map
loop Each Render Frame
FxLayer->>SmokeTrail: renderTick(duration, ctx)
SmokeTrail->>SmokeTrail: Emit new particle if active
SmokeTrail->>SmokeTrail: Update all particles (position, size, color)
SmokeTrail->>Canvas: Draw particles to context
SmokeTrail->>FxLayer: Return active status
alt Effect Complete
FxLayer->>FxLayer: Remove from missileTrails
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
If this PR fixes an issue, link it below. If not, delete these two lines.
Resolves #(issue number)
Description: Added smoke trails to nukes for cooler in flight nuke animation, also put smoke trails under the special effects setting. When the player enables special effects setting then smoke trails is also enabled. When special effects is disabled then smoke trails is also disabled.
Describe the PR.
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
DISCORD_USERNAME
Restart