[PR #4014] [MERGED] Trial/Bad Omen of server players make trial spawners ominous #5355

Closed
opened 2026-11-03 05:12:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4014
Author: @DUzzL
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/issue-4003-guest-trial-omen


📝 Commits (1)

  • 21a033c Trial Omen and Bad Omen of a server's players make trial spawners ominous

📊 Changes

2 files changed (+87 additions, -25 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_mobs.rs (+21 -0)
📝 crates/horizon-client/src/game/trial_spawner.rs (+66 -25)

📄 Description

Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #4003

Guests' TrialPlayer.omen was always None, so on the server thread (where the window's player is a guest) a trial spawner never turned ominous. Now each guest's omen is read from its own effects (Trial Omen first, then Bad Omen; the acting guest's effects live on the game during their turn), and TrialEvent::TrialOmen converts the matching player's Bad Omen into Trial Omen (guest effects, or the in-frame player).

Tested: new unit test for the Bad->Trial Omen conversion (amplifier scaling, priority); cargo fmt, cargo clippy -p horizon-client --bins --tests -D warnings clean.
Not tested: no end-to-end lan_e2e/in-game run (no vanilla data in .local here), no parity harnesses run, guest sound/effect sync to the client not observed.


🔄 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/4014 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/issue-4003-guest-trial-omen` --- ### 📝 Commits (1) - [`21a033c`](https://github.com/horizon-rust/horizon/commit/21a033cea066430b54ed564879a94d36dc89a810) Trial Omen and Bad Omen of a server's players make trial spawners ominous ### 📊 Changes **2 files changed** (+87 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_mobs.rs` (+21 -0) 📝 `crates/horizon-client/src/game/trial_spawner.rs` (+66 -25) </details> ### 📄 Description Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4003 Guests' `TrialPlayer.omen` was always `None`, so on the server thread (where the window's player is a guest) a trial spawner never turned ominous. Now each guest's omen is read from its own effects (Trial Omen first, then Bad Omen; the acting guest's effects live on the game during their turn), and `TrialEvent::TrialOmen` converts the matching player's Bad Omen into Trial Omen (guest effects, or the in-frame player). Tested: new unit test for the Bad->Trial Omen conversion (amplifier scaling, priority); `cargo fmt`, `cargo clippy -p horizon-client --bins --tests -D warnings` clean. Not tested: no end-to-end lan_e2e/in-game run (no vanilla data in .local here), no parity harnesses run, guest sound/effect sync to the client not observed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:01 +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#5355
No description provided.