[PR #4138] [MERGED] Randomise the spin phase of end crystals placed by the server #5436

Closed
opened 2026-11-03 05:12:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4138
Author: @DUzzL
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/issue-4131-crystal-random-rotation


📝 Commits (1)

  • 557c4c5 Start remote end crystal spin from a random phase

📊 Changes

1 file changed (+13 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/game/remote_projectiles.rs (+13 -8)

📄 Description

🤖 Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #4131

Cause: the add-entity packet path (game/remote_projectiles.rs) spawned end crystals with time: 0, so every placed crystal shows the same spin phase. Vanilla's constructor starts time at a random value (nextInt(100000)), and the other crystal spawn paths in Horizon already do this. A crystal has no yaw, so only the spin phase differs.

Change: that spawn draws a random time with the same call and range as the other spawn paths. One arm changed.

Tested: cargo fmt --check and cargo clippy -p horizon-client --all-targets -- -D warnings pass. cargo test -p horizon-client --bins passes (196 and 18; 3 ignored). No test covers the spawn phase, none was added.

Not tested: no in-game run and no live server. The reporter's video was not downloaded, so the visual result is not compared. No vanilla parity run (no .local vanilla data here). tools/pr_ready.py not run.


🔄 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/4138 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/issue-4131-crystal-random-rotation` --- ### 📝 Commits (1) - [`557c4c5`](https://github.com/horizon-rust/horizon/commit/557c4c5cf996ee96448734eee8ca91cede024bad) Start remote end crystal spin from a random phase ### 📊 Changes **1 file changed** (+13 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+13 -8) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4131 **Cause:** the add-entity packet path (`game/remote_projectiles.rs`) spawned end crystals with `time: 0`, so every placed crystal shows the same spin phase. Vanilla's constructor starts `time` at a random value (`nextInt(100000)`), and the other crystal spawn paths in Horizon already do this. A crystal has no yaw, so only the spin phase differs. **Change:** that spawn draws a random `time` with the same call and range as the other spawn paths. One arm changed. **Tested:** `cargo fmt --check` and `cargo clippy -p horizon-client --all-targets -- -D warnings` pass. `cargo test -p horizon-client --bins` passes (196 and 18; 3 ignored). No test covers the spawn phase, none was added. **Not tested:** no in-game run and no live server. The reporter's video was not downloaded, so the visual result is not compared. No vanilla parity run (no `.local` vanilla data here). `tools/pr_ready.py` not run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:35 +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#5436
No description provided.