[PR #2246] [MERGED] Merge a mob's repeated effects like vanilla #4139

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

📋 Pull Request Information

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

Base: main ← Head: fix/mob-effect-merge


📝 Commits (3)

  • 53501ab Merge a mob's repeated effects like vanilla
  • 36ef05b Keep infinite mob effects through the effect tick
  • d2ca443 Merge main into fix/mob-effect-merge

📊 Changes

2 files changed (+16 additions, -10 deletions)

View changed files

📝 crates/horizon-client/src/mobs.rs (+5 -5)
📝 crates/horizon-client/src/mobs/ai.rs (+11 -5)

📄 Description

What and why

When a mob already had an effect and got it again (a second splash, a witch drink, a command), Mob::add_effect took the longer duration and the higher level separately. A short Strength II splash on a mob with a long Strength I effect gave Strength II for the long time. Vanilla lets the stronger effect replace the old one with its own duration, and an equal level only extends the time.

Now a higher level replaces both level and duration, an equal level keeps the longer duration (an infinite one stays infinite), and a weaker level is ignored. Vanilla would keep the weaker one as a hidden effect to resume later; mobs have no hidden-effect slot here, so that part is left out.

Vanilla reference

  • MobEffectInstance.update

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/2246 **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/mob-effect-merge` --- ### 📝 Commits (3) - [`53501ab`](https://github.com/horizon-rust/horizon/commit/53501ab94ea4ad6e91003b14e2ae37106498ce2a) Merge a mob's repeated effects like vanilla - [`36ef05b`](https://github.com/horizon-rust/horizon/commit/36ef05b0b9470051b8a5e9e01ce0ba4811a30e0a) Keep infinite mob effects through the effect tick - [`d2ca443`](https://github.com/horizon-rust/horizon/commit/d2ca443d6fc005acd6c635981825894fc27c195a) Merge main into fix/mob-effect-merge ### 📊 Changes **2 files changed** (+16 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs.rs` (+5 -5) 📝 `crates/horizon-client/src/mobs/ai.rs` (+11 -5) </details> ### 📄 Description ## What and why When a mob already had an effect and got it again (a second splash, a witch drink, a command), `Mob::add_effect` took the longer duration and the higher level separately. A short Strength II splash on a mob with a long Strength I effect gave Strength II for the long time. Vanilla lets the stronger effect replace the old one with its own duration, and an equal level only extends the time. Now a higher level replaces both level and duration, an equal level keeps the longer duration (an infinite one stays infinite), and a weaker level is ignored. Vanilla would keep the weaker one as a hidden effect to resume later; mobs have no hidden-effect slot here, so that part is left out. ## Vanilla reference - `MobEffectInstance.update` ## 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:57 +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#4139
No description provided.