[PR #7058] [MERGED] Clear stale game-012.tsv fox bite and tadpole brain rows #7304

Closed
opened 2026-11-03 06:37:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game-012-w


📝 Commits (1)

  • 08fb1e7 port map: game-012 rows whose gaps closed

📊 Changes

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

View changed files

📝 tools/port_map/game-012.tsv (+4 -4)

📄 Description

Four rows of tools/port_map/game-012.tsv described gaps that main has closed.

row verdict citation
Fox.FoxMeleeAttackGoal.checkAndPerformAttack inline (unchanged) crates/horizon-client/src/mobs/goals.rs::MeleeAttack::tick
Tadpole.customServerAiStep inline -> port crates/horizon-client/src/mobs/animal_brain.rs::tadpole_package
TadpoleAi.initIdleActivity inline -> port crates/horizon-client/src/mobs/animal_brain.rs::tadpole_package
FrogAi.initIdleActivity inline (unchanged) crates/horizon-client/src/mobs/frog.rs::register
  • FoxMeleeAttackGoal.checkAndPerformAttack said "the generic melee strike runs; a fox bite plays no entity.fox.bite sound". MeleeAttack carries a bite field ("FoxMeleeAttackGoal.checkAndPerformAttack: the bite after each strike"), fox.rs::register sets it to entity.fox.bite, and MeleeAttack::tick pushes the sound at 1.0/1.0 straight after do_hurt_target.
  • Tadpole.customServerAiStep and TadpoleAi.initIdleActivity said the goals stood in for a missing brain, with no look at players and no food tempt, and a swim at 1.0 where vanilla uses 0.5. The tadpole brain is there now: animal_brain.rs::tadpole_package gives it AnimalPanic 2.0 in the core activity, LookAtPlayerSometimes and FollowTemptation in the idle activity, then the swim stroll (walk target at 0.5), the walk from the look target and stay-in-water actions, all beside the AbstractFish goals aquatic.rs::register adds. Their citations move to that function because that is where the activity tables now live.
  • FrogAi.initIdleActivity said "no slimeball tempt, no mate search". mobs/frog.rs::register registers Breed at 2 and Tempt::new(1.25, food, false) behind Unless(is_pregnant, ..) at 3, so only the TryFindLand part of the old note still holds; the note says so and drops to gap: minor:.

The rest of the file is unchanged, including its missing rows: Fox.get, Fox.setTarget, Fox.FoxStrollThroughVillageGoal.canFoxMove, Frog.FrogNodeEvaluator.getStart, Frog.FrogNodeEvaluator.getPathType and Goat.setYHeadRot were re-read on main and are still absent (species_variant_component has no fox arm, mobs/fox.rs still states that defending a trusted player and village strolling are unported, mobs/nav.rs has no frog node evaluator, and the only 15 degree limit is the body rotation in mobs/control.rs). IronGolem.doPush was corrected by #7006 and is left alone.

Proven: each cited function is in the tree at the row's file::fn and does what the note says. crates/horizon-client/src/mobs/goals.rs::MeleeAttack::tick pushes MobEvent::Sound for self.bite after the strike and mobs/fox.rs::register passes .bite("entity.fox.bite"); crates/horizon-client/src/mobs/animal_brain.rs::tadpole_package holds the tadpole's activity entries (AnimalPanic speed 2.0, LookAtPlayerSometimes, FollowTemptation, SwimStroll with a 0.5 walk target) and aquatic.rs::register hands the species to animal_brain::init; mobs/frog.rs::register has Breed::new(1.0) and Tempt::new(1.25, food, false) in the same goal list as Croak, the stroll and LookAtPlayer::new(6.0). map-check deferred, build VM in cooldown - the box is cooling down until 10:55Z, so PORT_LEDGER_OUT=/tmp/led-game-012 python3 tools/port_ledger.py build --jar .../client.jar --jar .../server.jar && python3 tools/port_ledger.py map-check tools/port_map/game-012.tsv is re-run and reported here as soon as it answers.

Not proven: the map-check line count for this file; whether vanilla's frog idle activity really has a TryFindLand behaviour (that part of the note is kept from the row as it was written, not re-read from bytecode here).


🔄 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/7058 **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/ledger-game-012-w` --- ### 📝 Commits (1) - [`08fb1e7`](https://github.com/horizon-rust/horizon/commit/08fb1e7a807ab7bc20bfbb3d5efbefc929311e2c) port map: game-012 rows whose gaps closed ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-012.tsv` (+4 -4) </details> ### 📄 Description Four rows of `tools/port_map/game-012.tsv` described gaps that `main` has closed. | row | verdict | citation | | --- | --- | --- | | `Fox.FoxMeleeAttackGoal.checkAndPerformAttack` | `inline` (unchanged) | `crates/horizon-client/src/mobs/goals.rs::MeleeAttack::tick` | | `Tadpole.customServerAiStep` | `inline` -> `port` | `crates/horizon-client/src/mobs/animal_brain.rs::tadpole_package` | | `TadpoleAi.initIdleActivity` | `inline` -> `port` | `crates/horizon-client/src/mobs/animal_brain.rs::tadpole_package` | | `FrogAi.initIdleActivity` | `inline` (unchanged) | `crates/horizon-client/src/mobs/frog.rs::register` | - `FoxMeleeAttackGoal.checkAndPerformAttack` said "the generic melee strike runs; a fox bite plays no `entity.fox.bite` sound". `MeleeAttack` carries a `bite` field ("`FoxMeleeAttackGoal.checkAndPerformAttack`: the bite after each strike"), `fox.rs::register` sets it to `entity.fox.bite`, and `MeleeAttack::tick` pushes the sound at 1.0/1.0 straight after `do_hurt_target`. - `Tadpole.customServerAiStep` and `TadpoleAi.initIdleActivity` said the goals stood in for a missing brain, with no look at players and no food tempt, and a swim at 1.0 where vanilla uses 0.5. The tadpole brain is there now: `animal_brain.rs::tadpole_package` gives it `AnimalPanic` 2.0 in the core activity, `LookAtPlayerSometimes` and `FollowTemptation` in the idle activity, then the swim stroll (walk target at 0.5), the walk from the look target and stay-in-water actions, all beside the `AbstractFish` goals `aquatic.rs::register` adds. Their citations move to that function because that is where the activity tables now live. - `FrogAi.initIdleActivity` said "no slimeball tempt, no mate search". `mobs/frog.rs::register` registers `Breed` at 2 and `Tempt::new(1.25, food, false)` behind `Unless(is_pregnant, ..)` at 3, so only the `TryFindLand` part of the old note still holds; the note says so and drops to `gap: minor:`. The rest of the file is unchanged, including its `missing` rows: `Fox.get`, `Fox.setTarget`, `Fox.FoxStrollThroughVillageGoal.canFoxMove`, `Frog.FrogNodeEvaluator.getStart`, `Frog.FrogNodeEvaluator.getPathType` and `Goat.setYHeadRot` were re-read on `main` and are still absent (`species_variant_component` has no fox arm, `mobs/fox.rs` still states that defending a trusted player and village strolling are unported, `mobs/nav.rs` has no frog node evaluator, and the only 15 degree limit is the body rotation in `mobs/control.rs`). `IronGolem.doPush` was corrected by #7006 and is left alone. **Proven:** each cited function is in the tree at the row's `file::fn` and does what the note says. `crates/horizon-client/src/mobs/goals.rs::MeleeAttack::tick` pushes `MobEvent::Sound` for `self.bite` after the strike and `mobs/fox.rs::register` passes `.bite("entity.fox.bite")`; `crates/horizon-client/src/mobs/animal_brain.rs::tadpole_package` holds the tadpole's activity entries (`AnimalPanic` speed 2.0, `LookAtPlayerSometimes`, `FollowTemptation`, `SwimStroll` with a 0.5 walk target) and `aquatic.rs::register` hands the species to `animal_brain::init`; `mobs/frog.rs::register` has `Breed::new(1.0)` and `Tempt::new(1.25, food, false)` in the same goal list as `Croak`, the stroll and `LookAtPlayer::new(6.0)`. map-check deferred, build VM in cooldown - the box is cooling down until 10:55Z, so `PORT_LEDGER_OUT=/tmp/led-game-012 python3 tools/port_ledger.py build --jar .../client.jar --jar .../server.jar && python3 tools/port_ledger.py map-check tools/port_map/game-012.tsv` is re-run and reported here as soon as it answers. **Not proven:** the map-check line count for this file; whether vanilla's frog idle activity really has a `TryFindLand` behaviour (that part of the note is kept from the row as it was written, not re-read from bytecode here). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:37:26 +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#7304
No description provided.