[PR #179] [MERGED] Render dragon egg teleport particles #2381

Closed
opened 2026-11-02 15:55:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/179
Author: @Online5277
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: fix/dragon-egg-particles


📝 Commits (2)

  • 1df1659 fix(client): render dragon egg teleport particles
  • 07f1c34 Merge remote-tracking branch 'origin/main' into fix/dragon-egg-particles

📊 Changes

5 files changed (+93 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+5 -0)
📝 crates/horizon-client/src/game/lan.rs (+3 -1)
📝 crates/horizon-client/src/game/level_particles.rs (+6 -2)
📝 crates/horizon-client/src/game/remote.rs (+3 -0)
📝 crates/horizon-client/src/particles.rs (+76 -0)

📄 Description

The dragon egg already teleported and sent level event 2015, but the client ignored that event. Render its 128 portal particles along the destination-to-original-block path, using the supplied pinned 26.3 formulas and the client-level random stream. The event produces no sound.

Handle the event for both local worlds and received multiplayer packets. In LAN worlds, also send it to the player who triggered teleportation, because their client does not predict it. Respect All/Decreased/Minimal particles and the existing 32-block distance limit; the decreased-option roll occurs per particle before the distance check.

Fixes #106.

Validation: two Rust regressions exercise the real particle engine, checking packed signed offsets, ignored high bits, particle count/type, seeded position and velocity bits, final RNG state, and particle settings near/far from the camera. Workspace Rust tests, warning-denied workspace/all-target Clippy, formatting, whitespace and public-tree history checks pass. A focused independent code review checked local/remote/LAN wiring and the formulas against the user's Grok source report.

No client was launched or visual/native executable parity sweep run. In-game checks remain: right-click an egg with particles set to All, verify Decreased/Minimal behavior, and confirm a LAN guest sees particles from their own click. Other particle settings behavior and broader particle parity are outside this change.

Merged current main (21aab8b1) without rewriting branch history, preserving both the egg teleport event 2015 and main's mace event 2013. After the merge, the two focused particle regressions, warning-denied client/all-target Clippy, formatting and whitespace checks pass.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/179 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/dragon-egg-particles` --- ### 📝 Commits (2) - [`1df1659`](https://github.com/horizon-rust/horizon/commit/1df16591b414c25a46b37af65689eaef5ed43ed6) fix(client): render dragon egg teleport particles - [`07f1c34`](https://github.com/horizon-rust/horizon/commit/07f1c34f968141905a5a3be620599573ffbb9103) Merge remote-tracking branch 'origin/main' into fix/dragon-egg-particles ### 📊 Changes **5 files changed** (+93 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+5 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+3 -1) 📝 `crates/horizon-client/src/game/level_particles.rs` (+6 -2) 📝 `crates/horizon-client/src/game/remote.rs` (+3 -0) 📝 `crates/horizon-client/src/particles.rs` (+76 -0) </details> ### 📄 Description The dragon egg already teleported and sent level event 2015, but the client ignored that event. Render its 128 portal particles along the destination-to-original-block path, using the supplied pinned 26.3 formulas and the client-level random stream. The event produces no sound. Handle the event for both local worlds and received multiplayer packets. In LAN worlds, also send it to the player who triggered teleportation, because their client does not predict it. Respect All/Decreased/Minimal particles and the existing 32-block distance limit; the decreased-option roll occurs per particle before the distance check. Fixes #106. Validation: two Rust regressions exercise the real particle engine, checking packed signed offsets, ignored high bits, particle count/type, seeded position and velocity bits, final RNG state, and particle settings near/far from the camera. Workspace Rust tests, warning-denied workspace/all-target Clippy, formatting, whitespace and public-tree history checks pass. A focused independent code review checked local/remote/LAN wiring and the formulas against the user's Grok source report. No client was launched or visual/native executable parity sweep run. In-game checks remain: right-click an egg with particles set to All, verify Decreased/Minimal behavior, and confirm a LAN guest sees particles from their own click. Other particle settings behavior and broader particle parity are outside this change. Merged current main (`21aab8b1`) without rewriting branch history, preserving both the egg teleport event 2015 and main's mace event 2013. After the merge, the two focused particle regressions, warning-denied client/all-target Clippy, formatting and whitespace checks pass. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:30 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2381
No description provided.