[PR #4512] [MERGED] RandomStandGoal parity: named as vanilla's, herd scenarios for the equines #5665

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4512
Author: @xFedeT
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/random-stand-parity


📝 Commits (1)

  • 0c66d46 RandomStandGoal: named as vanilla's, mob_ai herd scenarios for the equines

📊 Changes

3 files changed (+14 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/mobs/equine.rs (+3 -0)
📝 tools/port_map/game-009.tsv (+1 -1)
📝 tools/test_mob_ai_parity.py (+10 -0)

📄 Description

🤖 Opened by xFedeT's AI agent (Claude Code, Claude Sonnet 5.5), not by xFedeT personally.

Refs #3521

What and why

The row RandomStandGoal.playStandSound says horses rear with the angry sound, skeleton and zombie horses rear silently and donkeys and mules never get the goal. Reading mobs/equine.rs and comparing with vanilla's Java shows it is already as vanilla's: the goal plays the ambient sound (baby variants too), and every equine but the llama has it. What was missing was a scenario that makes it run, so nothing compared it with vanilla.

New mob_ai scenarios: a horse, donkey, mule, zombie horse (at night: by day it burns), skeleton horse, llama and a baby horse alone for 800 ticks, and for each of horse, donkey, mule, zombie horse and skeleton horse a herd of eight for 1200 ticks, so the one in 400 draw lands often enough (1804 listed ticks of the goal in vanilla across the run).

They found one difference: the goal's name. Vanilla's goal list says RandomStandGoal, Horizon's said RandomStand; the harness compares them, so the first mob that started the goal diverged. Renamed.

Proof against vanilla's Java

python3 tools/test_mob_ai_parity.py --only _rears_alone and --only _herd_rears: 7/7 and 5/5 scenarios, 5607/5607 and 48040/48040 mob-ticks identical (position, motion, goals, look, rearing, sounds, every random draw).

Not touched: the frog row LongJumpToPreferredBlock.start is not here. Frogs run on goals that stand in for FrogAi's brain, so its long jump cannot be compared tick for tick before the brain exists; a draft scenario diverged at tick 0.

pr_ready --quick: fmt, clippy, 1064 tests and 481 python tests pass.

🤖 Generated with Claude Code


🔄 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/4512 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/random-stand-parity` --- ### 📝 Commits (1) - [`0c66d46`](https://github.com/horizon-rust/horizon/commit/0c66d4678dd716b030d329f3528bf57ba53f073b) RandomStandGoal: named as vanilla's, mob_ai herd scenarios for the equines ### 📊 Changes **3 files changed** (+14 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/equine.rs` (+3 -0) 📝 `tools/port_map/game-009.tsv` (+1 -1) 📝 `tools/test_mob_ai_parity.py` (+10 -0) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Claude Sonnet 5.5), not by xFedeT personally. Refs #3521 ## What and why The row `RandomStandGoal.playStandSound` says horses rear with the angry sound, skeleton and zombie horses rear silently and donkeys and mules never get the goal. Reading `mobs/equine.rs` and comparing with vanilla's Java shows it is already as vanilla's: the goal plays the ambient sound (baby variants too), and every equine but the llama has it. What was missing was a scenario that makes it run, so nothing compared it with vanilla. New `mob_ai` scenarios: a horse, donkey, mule, zombie horse (at night: by day it burns), skeleton horse, llama and a baby horse alone for 800 ticks, and for each of horse, donkey, mule, zombie horse and skeleton horse a herd of eight for 1200 ticks, so the one in 400 draw lands often enough (1804 listed ticks of the goal in vanilla across the run). They found one difference: the goal's name. Vanilla's goal list says `RandomStandGoal`, Horizon's said `RandomStand`; the harness compares them, so the first mob that started the goal diverged. Renamed. ## Proof against vanilla's Java `python3 tools/test_mob_ai_parity.py --only _rears_alone` and `--only _herd_rears`: 7/7 and 5/5 scenarios, 5607/5607 and 48040/48040 mob-ticks identical (position, motion, goals, look, rearing, sounds, every random draw). Not touched: the frog row `LongJumpToPreferredBlock.start` is not here. Frogs run on goals that stand in for `FrogAi`'s brain, so its long jump cannot be compared tick for tick before the brain exists; a draft scenario diverged at tick 0. `pr_ready --quick`: fmt, clippy, 1064 tests and 481 python tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:11 +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#5665
No description provided.