[PR #2239] [MERGED] Make breeze shots follow the world difficulty and aim higher at riders #4131

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/2239
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/breeze-shot-spread-and-aim


📝 Commits (1)

  • c273a72 Make breeze shots follow the world difficulty and aim higher at riders

📊 Changes

7 files changed (+28 additions, -4 deletions)

View changed files

📝 crates/horizon-client/examples/probe/mob_ai_probe.rs (+1 -0)
📝 crates/horizon-client/src/game/creatures.rs (+1 -0)
📝 crates/horizon-client/src/game/lan_mobs.rs (+1 -0)
📝 crates/horizon-client/src/mobs.rs (+5 -0)
📝 crates/horizon-client/src/mobs/monster_brain.rs (+12 -4)
📝 crates/horizon-client/src/mobs/spawning.rs (+4 -0)
📝 crates/horizon-client/src/mobs/world.rs (+4 -0)

📄 Description

What and why

A breeze always shot as if the world were on Normal, and always aimed at 30% of the target's height. In vanilla:

  • the shot spread is 5 - difficulty id * 4 (peaceful 5, easy 1, normal -3, hard -7), so it changes with the world difficulty;
  • when the target is riding something (a horse, boat, happy ghast), the breeze aims at 80% of its height instead of 30%.

The local difficulty now remembers the difficulty id, and mobs and the player now report whether they are a passenger. The breeze uses both.

Vanilla reference

  • Breeze Shoot.tick (monster/breeze/Shoot.java): target.getY(target.isPassenger() ? 0.8 : 0.3) and Projectile.spawnProjectileUsingShoot(..., 0.7F, 5 - level.getDifficulty().getId() * 4).
  • Entity.isPassenger.

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/2239 **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/breeze-shot-spread-and-aim` --- ### 📝 Commits (1) - [`c273a72`](https://github.com/horizon-rust/horizon/commit/c273a7271ed3dbc53c28ad50784f2cbb69d04e76) Make breeze shots follow the world difficulty and aim higher at riders ### 📊 Changes **7 files changed** (+28 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/mob_ai_probe.rs` (+1 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+1 -0) 📝 `crates/horizon-client/src/game/lan_mobs.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs.rs` (+5 -0) 📝 `crates/horizon-client/src/mobs/monster_brain.rs` (+12 -4) 📝 `crates/horizon-client/src/mobs/spawning.rs` (+4 -0) 📝 `crates/horizon-client/src/mobs/world.rs` (+4 -0) </details> ### 📄 Description ## What and why A breeze always shot as if the world were on Normal, and always aimed at 30% of the target's height. In vanilla: - the shot spread is `5 - difficulty id * 4` (peaceful 5, easy 1, normal -3, hard -7), so it changes with the world difficulty; - when the target is riding something (a horse, boat, happy ghast), the breeze aims at 80% of its height instead of 30%. The local difficulty now remembers the difficulty id, and mobs and the player now report whether they are a passenger. The breeze uses both. ## Vanilla reference - `Breeze Shoot.tick` (`monster/breeze/Shoot.java`): `target.getY(target.isPassenger() ? 0.8 : 0.3)` and `Projectile.spawnProjectileUsingShoot(..., 0.7F, 5 - level.getDifficulty().getId() * 4)`. - `Entity.isPassenger`. ## 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#4131
No description provided.