[PR #2509] [MERGED] Villagers in an ongoing raid splash for guests too (entity event 42) #4379

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

📋 Pull Request Information

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

Base: main ← Head: fix/lan-entity-event-particles


📝 Commits (1)

  • 960b8aa Villagers in an ongoing raid splash: send entity event 42

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/raids.rs (+21 -0)

📄 Description

What and why

A villager in an ongoing raid has a 1 in 100 chance each tick of splash particles around it (entity event 42). Horizon never drew them: nothing in the villager code emitted event 42, for the host or for anyone else.

Now each villager in an ongoing raid (not a no-AI one) rolls that chance, sends entity event 42 to the guests, and this game draws the splash itself. The client side already knows event 42 for villagers (particles::entity_event_burst). On the server thread the window also needs the entity-event arm from #2125, which draws these events; this change only adds the missing sender.

Vanilla reference

  • Villager.customServerAiStep: random.nextInt(100) == 0 in an active, not over raid, then broadcastEntityEvent(this, (byte)42).
  • Villager.handleEntityEvent 42: addParticlesAroundSelf(SPLASH).

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/2509 **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/lan-entity-event-particles` --- ### 📝 Commits (1) - [`960b8aa`](https://github.com/horizon-rust/horizon/commit/960b8aabad302a88f01a3e71b11bbdebfd7ad567) Villagers in an ongoing raid splash: send entity event 42 ### 📊 Changes **1 file changed** (+21 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/raids.rs` (+21 -0) </details> ### 📄 Description ## What and why A villager in an ongoing raid has a 1 in 100 chance each tick of splash particles around it (entity event 42). Horizon never drew them: nothing in the villager code emitted event 42, for the host or for anyone else. Now each villager in an ongoing raid (not a no-AI one) rolls that chance, sends entity event 42 to the guests, and this game draws the splash itself. The client side already knows event 42 for villagers (`particles::entity_event_burst`). On the server thread the window also needs the entity-event arm from #2125, which draws these events; this change only adds the missing sender. ## Vanilla reference - `Villager.customServerAiStep`: `random.nextInt(100) == 0` in an active, not over raid, then `broadcastEntityEvent(this, (byte)42)`. - `Villager.handleEntityEvent` 42: `addParticlesAroundSelf(SPLASH)`. ## 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:16:43 +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#4379
No description provided.