[PR #2238] [MERGED] Give a partial item pickup the random pitch of a full pickup #4130

Closed
opened 2026-11-03 04:14:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2238
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/partial-pickup-pitch


📝 Commits (1)

  • 5b9a660 Give a partial item pickup the random pitch of a full pickup

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+7 -1)

📄 Description

What and why

Picking up part of a dropped stack (the rest did not fit in the inventory) always played the pickup sound at pitch 1.0, while a full pickup uses a random pitch around 2.0. The partial pickup now rolls the same random pitch.

Vanilla reference

  • ClientPacketListener.handleTakeItemEntity: ITEM_PICKUP at volume 0.2, pitch (nextFloat - nextFloat) * 1.4 + 2.0, for every take, full or partial.

Self-check

cargo check -p horizon-client passes.


🔄 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/2238 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/partial-pickup-pitch` --- ### 📝 Commits (1) - [`5b9a660`](https://github.com/horizon-rust/horizon/commit/5b9a66089e9bcabcad2a9f864be534fd35f841a7) Give a partial item pickup the random pitch of a full pickup ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+7 -1) </details> ### 📄 Description ## What and why Picking up part of a dropped stack (the rest did not fit in the inventory) always played the pickup sound at pitch 1.0, while a full pickup uses a random pitch around 2.0. The partial pickup now rolls the same random pitch. ## Vanilla reference - `ClientPacketListener.handleTakeItemEntity`: `ITEM_PICKUP` at volume 0.2, pitch `(nextFloat - nextFloat) * 1.4 + 2.0`, for every take, full or partial. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:14:54 +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#4130
No description provided.