[PR #2342] [MERGED] Make skeleton arrow spread and damage follow the difficulty #4223

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

📋 Pull Request Information

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

Base: main ← Head: fix/skeleton-arrow-difficulty


📝 Commits (2)

  • 4c8ff02 Make skeleton arrow spread and damage follow the difficulty
  • accd271 Merge main into fix/skeleton-arrow-difficulty

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/mobs/undead.rs (+3 -2)

📄 Description

What and why

Skeleton arrows always used Normal difficulty numbers: spread 6 and damage randomness around 0.22. On Easy the arrows should be less accurate and on Hard they should be very accurate and a bit stronger.

LocalDifficulty now carries the difficulty id (0 to 3), and the skeleton shot uses it for both the spread and the damage randomness. This is separate from the bow interval change in #2146.

Vanilla reference

  • RangedAttackMob.rangedAttackUncertainty: 14 - difficulty.getId() * 4 (used by AbstractSkeleton.performRangedAttack).
  • AbstractArrow.setBaseDamageFromMob: power * 2 + random.triangle(difficulty.getId() * 0.11, 0.57425).

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/2342 **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/skeleton-arrow-difficulty` --- ### 📝 Commits (2) - [`4c8ff02`](https://github.com/horizon-rust/horizon/commit/4c8ff0296988236ff4b33e83b082a4892228a794) Make skeleton arrow spread and damage follow the difficulty - [`accd271`](https://github.com/horizon-rust/horizon/commit/accd2718acc1c68c7a159c1e76f87eb43301de03) Merge main into fix/skeleton-arrow-difficulty ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/undead.rs` (+3 -2) </details> ### 📄 Description ## What and why Skeleton arrows always used Normal difficulty numbers: spread 6 and damage randomness around 0.22. On Easy the arrows should be less accurate and on Hard they should be very accurate and a bit stronger. `LocalDifficulty` now carries the difficulty id (0 to 3), and the skeleton shot uses it for both the spread and the damage randomness. This is separate from the bow interval change in #2146. ## Vanilla reference - `RangedAttackMob.rangedAttackUncertainty`: `14 - difficulty.getId() * 4` (used by `AbstractSkeleton.performRangedAttack`). - `AbstractArrow.setBaseDamageFromMob`: `power * 2 + random.triangle(difficulty.getId() * 0.11, 0.57425)`. ## 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:15: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#4223
No description provided.