[PR #2146] [MERGED] Pick the skeleton bow interval by difficulty #4047

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

📋 Pull Request Information

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

Base: main ← Head: fix/skeleton-attack-interval-difficulty


📝 Commits (1)

  • 02e5c72 Pick the skeleton bow interval by difficulty

📊 Changes

1 file changed (+26 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/mobs/undead.rs (+26 -6)

📄 Description

What and why

Skeletons always used the slow bow interval (40 ticks, or 70 for bogged and parched), so they shot as slowly on Hard as on Easy. The bow goal now uses the hard interval (20, or 50 for bogged and parched) when the world difficulty is Hard, and the normal one otherwise.

As in vanilla, the interval is not recomputed every tick. It is picked the first time the goal is checked after the skeleton spawns or loads, and again whenever it switches between bow and melee. Changing the difficulty while a skeleton keeps its bow does not change its interval.

Vanilla reference

  • AbstractSkeleton.reassessWeaponGoal: sets the bow goal's minimum attack interval to getHardAttackInterval() on Hard, else getAttackInterval().
  • AbstractSkeleton.getHardAttackInterval / getAttackInterval: 20 / 40. Bogged and Parched override them to 50 / 70.

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/2146 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/skeleton-attack-interval-difficulty` --- ### 📝 Commits (1) - [`02e5c72`](https://github.com/horizon-rust/horizon/commit/02e5c728c3e886ba29dd4c28c3745c4f83fcd966) Pick the skeleton bow interval by difficulty ### 📊 Changes **1 file changed** (+26 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/undead.rs` (+26 -6) </details> ### 📄 Description ## What and why Skeletons always used the slow bow interval (40 ticks, or 70 for bogged and parched), so they shot as slowly on Hard as on Easy. The bow goal now uses the hard interval (20, or 50 for bogged and parched) when the world difficulty is Hard, and the normal one otherwise. As in vanilla, the interval is not recomputed every tick. It is picked the first time the goal is checked after the skeleton spawns or loads, and again whenever it switches between bow and melee. Changing the difficulty while a skeleton keeps its bow does not change its interval. ## Vanilla reference - `AbstractSkeleton.reassessWeaponGoal`: sets the bow goal's minimum attack interval to `getHardAttackInterval()` on Hard, else `getAttackInterval()`. - `AbstractSkeleton.getHardAttackInterval` / `getAttackInterval`: 20 / 40. `Bogged` and `Parched` override them to 50 / 70. ## 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:17 +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#4047
No description provided.