[PR #1590] [MERGED] Client: boss overlay — BossEvent bars, wither darkening, world fog #3617

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1590
Author: @socksprox
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @ludovic111

Base: main ← Head: feat/boss-overlay


📝 Commits (4)

  • d742d72 Client: the boss-overlay — BossEvent bars, wither darkening and world fog
  • 282ecf1 Tests: fix boss-event verify failures
  • 75c009e Boss events: one path from the host's diff to every overlay
  • e55b5b7 Boss events: custom bars first, as a joining player gets them

📊 Changes

14 files changed (+964 additions, -183 deletions)

View changed files

➕ crates/horizon-client/src/boss_overlay.rs (+243 -0)
📝 crates/horizon-client/src/bossbar.rs (+71 -37)
📝 crates/horizon-client/src/fog.rs (+29 -0)
📝 crates/horizon-client/src/game.rs (+14 -1)
📝 crates/horizon-client/src/game/bossbars.rs (+362 -46)
📝 crates/horizon-client/src/game/dragon.rs (+23 -23)
📝 crates/horizon-client/src/game/raids.rs (+42 -32)
📝 crates/horizon-client/src/game/remote.rs (+4 -0)
📝 crates/horizon-client/src/game/render_tick.rs (+4 -1)
📝 crates/horizon-client/src/game/wither.rs (+0 -41)
📝 crates/horizon-client/src/gfx.rs (+6 -0)
📝 crates/horizon-client/src/lan/playerdata.rs (+5 -0)
📝 crates/horizon-client/src/lib.rs (+1 -0)
📝 crates/horizon-protocol/src/packets/play.rs (+160 -2)

📄 Description

🤖 Opened by an AI agent (Devin) on behalf of socksprox, not by a human.

Summary

Vanilla ClientboundBossEventPacket handling and BossHealthOverlay/GameRenderer behaviour on a real server:

  • packets/play.rs: BossEvent/BossAction codec (boss_event), Clientbound::BossEvent entry, round-trip test.
  • boss_overlay.rs (new): BossOverlay — tracks the bars this window shows, tick_darken for the wither darkness fade, darken_amount for the frame, should_create_world_fog.
  • bossbars.rs, dragon.rs, wither.rs, raids.rs, bossbar.rs: entity-id/int-array uuids into bars, publish after entity ticks, raid/dragon/wither bars feeding the overlay.
  • fog.rs/gfx.rs/render_tick.rs: boss_darken frame param; the lightmap mixes toward 70/60/60% while a darkening bar is up; create-the-world fog suppressed the vanilla way.
  • game.rs/remote.rs/lib.rs: wiring — apply_boss_event dispatch, reset on connect/disconnect, tick.

Verification

  • cargo check -p horizon-protocol -p horizon-client --lib --bins — clean

🤖 Generated with Devin (Cognition)


🔄 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/1590 **Author:** [@socksprox](https://github.com/socksprox) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/boss-overlay` --- ### 📝 Commits (4) - [`d742d72`](https://github.com/horizon-rust/horizon/commit/d742d725f4ac51a55d8748ef646522c7b574de1b) Client: the boss-overlay — BossEvent bars, wither darkening and world fog - [`282ecf1`](https://github.com/horizon-rust/horizon/commit/282ecf16a974bc0c6de5c18b35d7f278ea9279c8) Tests: fix boss-event verify failures - [`75c009e`](https://github.com/horizon-rust/horizon/commit/75c009e3fc9ce99d3e6e31fa138a7c1656d89640) Boss events: one path from the host's diff to every overlay - [`e55b5b7`](https://github.com/horizon-rust/horizon/commit/e55b5b7c00fc05667eaa431af0e1626957565b86) Boss events: custom bars first, as a joining player gets them ### 📊 Changes **14 files changed** (+964 additions, -183 deletions) <details> <summary>View changed files</summary> ➕ `crates/horizon-client/src/boss_overlay.rs` (+243 -0) 📝 `crates/horizon-client/src/bossbar.rs` (+71 -37) 📝 `crates/horizon-client/src/fog.rs` (+29 -0) 📝 `crates/horizon-client/src/game.rs` (+14 -1) 📝 `crates/horizon-client/src/game/bossbars.rs` (+362 -46) 📝 `crates/horizon-client/src/game/dragon.rs` (+23 -23) 📝 `crates/horizon-client/src/game/raids.rs` (+42 -32) 📝 `crates/horizon-client/src/game/remote.rs` (+4 -0) 📝 `crates/horizon-client/src/game/render_tick.rs` (+4 -1) 📝 `crates/horizon-client/src/game/wither.rs` (+0 -41) 📝 `crates/horizon-client/src/gfx.rs` (+6 -0) 📝 `crates/horizon-client/src/lan/playerdata.rs` (+5 -0) 📝 `crates/horizon-client/src/lib.rs` (+1 -0) 📝 `crates/horizon-protocol/src/packets/play.rs` (+160 -2) </details> ### 📄 Description > 🤖 Opened by an AI agent (Devin) on behalf of socksprox, not by a human. ## Summary Vanilla `ClientboundBossEventPacket` handling and `BossHealthOverlay`/`GameRenderer` behaviour on a real server: - `packets/play.rs`: `BossEvent`/`BossAction` codec (`boss_event`), `Clientbound::BossEvent` entry, round-trip test. - `boss_overlay.rs` (new): `BossOverlay` — tracks the bars this window shows, `tick_darken` for the wither darkness fade, `darken_amount` for the frame, `should_create_world_fog`. - `bossbars.rs`, `dragon.rs`, `wither.rs`, `raids.rs`, `bossbar.rs`: entity-id/int-array uuids into bars, publish after entity ticks, raid/dragon/wither bars feeding the overlay. - `fog.rs`/`gfx.rs`/`render_tick.rs`: `boss_darken` frame param; the lightmap mixes toward 70/60/60% while a darkening bar is up; create-the-world fog suppressed the vanilla way. - `game.rs`/`remote.rs`/`lib.rs`: wiring — `apply_boss_event` dispatch, reset on connect/disconnect, tick. ## Verification - `cargo check -p horizon-protocol -p horizon-client --lib --bins` — clean 🤖 Generated with Devin (Cognition) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:10:50 +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#3617
No description provided.