[PR #7363] [MERGED] port map: game-009's six class rows name their home files #7551

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7363
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/mapgap-game-009


📝 Commits (1)

  • 0a13a0d port map: game-009's six class rows name their home files

📊 Changes

1 file changed (+6 additions, -6 deletions)

View changed files

📝 tools/port_map/game-009.tsv (+6 -6)

📄 Description

Six rows of tools/port_map/game-009.tsv (74-76 and 82-86) are class rows — a class named without a method — carrying port or inline, which the ledger refuses: a class row takes skip:<reason>, missing or home, not port. Every one of those classes is in the tree with the goal it names, so each row says home <file> now, and what the old cell claimed moved into the note.

row class was now
74 FollowFlockLeaderGoal port crates/horizon-client/src/mobs/aquatic.rs::FollowFlockLeader home crates/horizon-client/src/mobs/aquatic.rs
75 FollowMobGoal port crates/horizon-client/src/mobs/goals.rs::FollowMob home crates/horizon-client/src/mobs/goals.rs
76 FollowPlayerRiddenEntityGoal port crates/horizon-client/src/mobs/dolphin.rs::FollowPlayerRidden home crates/horizon-client/src/mobs/dolphin.rs
82 GolemRandomStrollInVillageGoal inline crates/horizon-client/src/mobs/golem.rs::register_iron home crates/horizon-client/src/mobs/golem.rs
85 MoveBackToVillageGoal inline crates/horizon-client/src/mobs/golem.rs::register_iron home crates/horizon-client/src/mobs/golem.rs
86 MoveThroughVillageGoal inline crates/horizon-client/src/mobs/undead.rs::MoveThroughVillage home crates/horizon-client/src/mobs/undead.rs
  • aquatic.rs has FollowFlockLeader, whose doc names FollowFlockLeaderGoal and whose name() returns the vanilla name; the schools that register it (cod, salmon, tropical fish) are in that file.
  • goals.rs has FollowMob, doc'd as FollowMobGoal with the mutual-look branch left out — the reason the row already gave, kept in the note.
  • dolphin.rs has FollowPlayerRidden, doc'd as FollowPlayerRiddenEntityGoal(mob, AbstractBoat / AbstractNautilus), with the "only the player the mob sees" limit kept in the note.
  • golem.rs has no per-class type for the two village goals: register_iron builds two named Strolls. The back one it adds at 2 is MoveBackToVillageGoal (interval 10, the outside_village gate, back_to_village_position); the one it adds at 4 is GolemRandomStrollInVillageGoal (interval 240, village_stroll_position). Both rows therefore share that home, and their notes now say which Stroll each is — the old cells' shared "a named Stroll with a gate and a position" was only true of the first.
  • undead.rs has MoveThroughVillage, doc'd as MoveThroughVillageGoal; zombies add it at 6. The raider's Raider$RaiderMoveThroughVillageGoal is a different vanilla class and lives in raider.rs::MoveThroughVillage, which the note now says (the old cell called it "the raider variant" of this class).

Map-check:

$ PORT_LEDGER_OUT=/tmp/led-mapgap python3 tools/port_ledger.py map-check tools/port_map/game-009.tsv
125 rows, no problems.

Proven: each home file exists and holds the named goal, read at the cites above: FollowFlockLeader (aquatic.rs 812, its name() returning the vanilla name at 833), FollowMob (goals.rs 2354), FollowPlayerRidden (dolphin.rs 276, its name() returning the vanilla name at 309), the two Strolls built in register_iron (golem.rs 36-48) with their intervals, gate and positions, and MoveThroughVillage (undead.rs 964) added at 6 (undead.rs 42-45).

Not proven: tick-for-tick parity for any of the six goals — three of the notes still claim it from the older cells ("tick for tick with vanilla in mob_ai ..."), and I did not re-run the mob_ai parity comparison for them here. MoveThroughVillage's note still stands on "no tick parity check yet", which is the absence of a check, not a pass. Turning a class row into a home row changes where the class lives, not what its methods do.


🔄 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/7363 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/mapgap-game-009` --- ### 📝 Commits (1) - [`0a13a0d`](https://github.com/horizon-rust/horizon/commit/0a13a0d2e254a9c7e755c56e6f219da9f0160a70) port map: game-009's six class rows name their home files ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-009.tsv` (+6 -6) </details> ### 📄 Description Six rows of `tools/port_map/game-009.tsv` (74-76 and 82-86) are class rows — a class named without a method — carrying `port` or `inline`, which the ledger refuses: `a class row takes skip:<reason>, missing or home, not port`. Every one of those classes is in the tree with the goal it names, so each row says `home <file>` now, and what the old cell claimed moved into the note. | row | class | was | now | | --- | --- | --- | --- | | 74 | `FollowFlockLeaderGoal` | `port crates/horizon-client/src/mobs/aquatic.rs::FollowFlockLeader` | `home crates/horizon-client/src/mobs/aquatic.rs` | | 75 | `FollowMobGoal` | `port crates/horizon-client/src/mobs/goals.rs::FollowMob` | `home crates/horizon-client/src/mobs/goals.rs` | | 76 | `FollowPlayerRiddenEntityGoal` | `port crates/horizon-client/src/mobs/dolphin.rs::FollowPlayerRidden` | `home crates/horizon-client/src/mobs/dolphin.rs` | | 82 | `GolemRandomStrollInVillageGoal` | `inline crates/horizon-client/src/mobs/golem.rs::register_iron` | `home crates/horizon-client/src/mobs/golem.rs` | | 85 | `MoveBackToVillageGoal` | `inline crates/horizon-client/src/mobs/golem.rs::register_iron` | `home crates/horizon-client/src/mobs/golem.rs` | | 86 | `MoveThroughVillageGoal` | `inline crates/horizon-client/src/mobs/undead.rs::MoveThroughVillage` | `home crates/horizon-client/src/mobs/undead.rs` | - `aquatic.rs` has `FollowFlockLeader`, whose doc names `FollowFlockLeaderGoal` and whose `name()` returns the vanilla name; the schools that register it (cod, salmon, tropical fish) are in that file. - `goals.rs` has `FollowMob`, doc'd as `FollowMobGoal` with the mutual-look branch left out — the reason the row already gave, kept in the note. - `dolphin.rs` has `FollowPlayerRidden`, doc'd as `FollowPlayerRiddenEntityGoal(mob, AbstractBoat / AbstractNautilus)`, with the "only the player the mob sees" limit kept in the note. - `golem.rs` has no per-class type for the two village goals: `register_iron` builds two named `Stroll`s. The `back` one it adds at 2 is `MoveBackToVillageGoal` (interval 10, the `outside_village` gate, `back_to_village_position`); the one it adds at 4 is `GolemRandomStrollInVillageGoal` (interval 240, `village_stroll_position`). Both rows therefore share that home, and their notes now say which `Stroll` each is — the old cells' shared "a named Stroll with a gate and a position" was only true of the first. - `undead.rs` has `MoveThroughVillage`, doc'd as `MoveThroughVillageGoal`; zombies add it at 6. The raider's `Raider$RaiderMoveThroughVillageGoal` is a different vanilla class and lives in `raider.rs::MoveThroughVillage`, which the note now says (the old cell called it "the raider variant" of this class). Map-check: ``` $ PORT_LEDGER_OUT=/tmp/led-mapgap python3 tools/port_ledger.py map-check tools/port_map/game-009.tsv 125 rows, no problems. ``` **Proven:** each `home` file exists and holds the named goal, read at the cites above: `FollowFlockLeader` (aquatic.rs 812, its `name()` returning the vanilla name at 833), `FollowMob` (goals.rs 2354), `FollowPlayerRidden` (dolphin.rs 276, its `name()` returning the vanilla name at 309), the two `Stroll`s built in `register_iron` (golem.rs 36-48) with their intervals, gate and positions, and `MoveThroughVillage` (undead.rs 964) added at 6 (undead.rs 42-45). **Not proven:** tick-for-tick parity for any of the six goals — three of the notes still claim it from the older cells ("tick for tick with vanilla in mob_ai ..."), and I did not re-run the `mob_ai` parity comparison for them here. `MoveThroughVillage`'s note still stands on "no tick parity check yet", which is the absence of a check, not a pass. Turning a class row into a `home` row changes where the class lives, not what its methods do. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:19:34 +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#7551
No description provided.