[PR #2132] [MERGED] Apply suspicious stew effects when the stew is eaten #4034

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

📋 Pull Request Information

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

Base: main ← Head: fix/suspicious-stew-effects


📝 Commits (1)

  • e2781f7 Apply suspicious stew effects when the stew is eaten

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/consume.rs (+11 -0)

📄 Description

What and why

Eating a suspicious stew never gave the player its effect. Horizon already reads and saves the suspicious_stew_effects component, but finish_consuming only applied the food values and the item's own consume effects.

Now finish_consuming also adds each effect stored on the eaten stack to the player (amplifier 0, the stored duration), after the food and before the consume effects. Guests on a LAN host finish eating through the same Game code, so they get the effects too.

Vanilla reference

  • SuspiciousStewEffects.onConsume: adds effect.createEffectInstance() for every entry. It is a ConsumableListener, so Consumable.onConsume calls it through stack.getAllOfType(ConsumableListener.class), before the onConsumeEffects.
  • SuspiciousStewEffects.Entry.createEffectInstance: new MobEffectInstance(effect, duration).

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/2132 **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/suspicious-stew-effects` --- ### 📝 Commits (1) - [`e2781f7`](https://github.com/horizon-rust/horizon/commit/e2781f7939dfb4451f356a60d6513e25a4a271fa) Apply suspicious stew effects when the stew is eaten ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/consume.rs` (+11 -0) </details> ### 📄 Description ## What and why Eating a suspicious stew never gave the player its effect. Horizon already reads and saves the `suspicious_stew_effects` component, but `finish_consuming` only applied the food values and the item's own consume effects. Now `finish_consuming` also adds each effect stored on the eaten stack to the player (amplifier 0, the stored duration), after the food and before the consume effects. Guests on a LAN host finish eating through the same `Game` code, so they get the effects too. ## Vanilla reference - `SuspiciousStewEffects.onConsume`: adds `effect.createEffectInstance()` for every entry. It is a `ConsumableListener`, so `Consumable.onConsume` calls it through `stack.getAllOfType(ConsumableListener.class)`, before the `onConsumeEffects`. - `SuspiciousStewEffects.Entry.createEffectInstance`: `new MobEffectInstance(effect, duration)`. ## 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:10 +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#4034
No description provided.