[PR #7041] [MERGED] Clear stale game-006.tsv rows main already implements #7290

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game-006


📝 Commits (1)

  • 40d90d5 Clear stale game-006.tsv rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/game-006.tsv (+8 -8)

📄 Description

Seven rows in tools/port_map/game-006.tsv said missing while main already implements them, and one more carried a broken citation with a gap that has since closed.

row verdict where
LivingEntity.getLocalBoundsForPose inline crates/horizon-client/src/game/mounts.rs::rider_poses
Mob.canReplaceCurrentItem port crates/horizon-client/src/mobs/equip.rs::can_replace_current_item
Mob.compareArmor port crates/horizon-client/src/mobs/equip.rs::compare_armor
Mob.compareWeapons port crates/horizon-client/src/mobs/equip.rs::compare_weapons
Mob.getApproximateAttributeWith port crates/horizon-client/src/mobs/equip.rs::attribute_with
Mob.canReplaceEqualItem port crates/horizon-client/src/mobs/equip.rs::can_replace_equal_item
NeutralMob.isAngryAtAllPlayers inline crates/horizon-client/src/mobs/tame.rs::angry_at_player
LivingEntity.getFallDamageSound (citation only) inline crates/horizon-client/src/mobs/landing.rs::MobLanding::living_fall_sound

python3 tools/port_ledger.py map-check tools/port_map/game-006.tsv → 150 rows, no problems.

Proven:

  • the five Mob item comparisons — mobs/equip.rs ports each one (armour then toughness, the species' preferred weapon tag then attack damage, more enchantments then less damage then a custom name, the item's modifiers on the mob's own base value), and game/mob_looting.rs runs them for Mob.pickUpItem's candidate check, so the old note's "only used by loot pickup (Mob.pickUpItem, missing)" was out of date.
  • isAngryAtAllPlayers — javap: UNIVERSAL_ANGER.get() && isAngry() && getPersistentAngerTarget() == null. tame.rs::angry_at_player is that second clause (w.universal_anger && anger > 0 && angry_at.is_none()), the rule read from the world (creatures.rs).
  • getLocalBoundsForPose — javap: getDimensions(pose).makeBoundingBox(Vec3.ZERO). mounts.rs::rider_poses builds the rider's box in each of Player.getDismountPoses (standing, crouching, swimming) from the pose's dimensions at its scale, and the strider dismount tests dimensions.bounds(at) with DismountHelper.canDismountTo.
  • getFallDamageSound cited mobs/living.rs::Mob::cause_fall_damage, which does not exist. MobLanding::living_fall_sound picks entity.hostile.big_fall/small_fall for a monster and the generic pair otherwise, so the row's "monsters use the generic sounds" gap is closed too.

Not proven:

  • Interaction.readAdditionalSaveData and Interaction.addAdditionalSaveData stay missing: RemoteInteraction (game/interactions.rs) keeps only position, width, height, response and vehicle, and nothing saves or loads an interaction entity either way.
  • Interaction.getLastAttacker and Interaction.getTarget stay missing: no attack targets are kept for an interaction, the client copy answers the click only.
  • LivingEntity.getHitbox stays missing: javap raises the box's minY to getPassengerRidingPosition for a rider, while the spear pick (game/hand.rs::attack_range_pick) and melee use m.bounds() uncut.
  • Mob.onAttributeUpdated stays missing: PathNavigation.update_max_visited_nodes exists (mobs/nav.rs) but nothing calls it on an attribute change — only mob creation, the warden's spawn follow-range bonus and the creaking heart — so /attribute still leaves the visited-node cap alone.

🔄 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/7041 **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-006` --- ### 📝 Commits (1) - [`40d90d5`](https://github.com/horizon-rust/horizon/commit/40d90d5b80a101b277e35f15dc18031c145b8a1d) Clear stale game-006.tsv rows main already implements ### 📊 Changes **1 file changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-006.tsv` (+8 -8) </details> ### 📄 Description Seven rows in `tools/port_map/game-006.tsv` said `missing` while main already implements them, and one more carried a broken citation with a gap that has since closed. | row | verdict | where | | --- | --- | --- | | `LivingEntity.getLocalBoundsForPose` | inline | `crates/horizon-client/src/game/mounts.rs::rider_poses` | | `Mob.canReplaceCurrentItem` | port | `crates/horizon-client/src/mobs/equip.rs::can_replace_current_item` | | `Mob.compareArmor` | port | `crates/horizon-client/src/mobs/equip.rs::compare_armor` | | `Mob.compareWeapons` | port | `crates/horizon-client/src/mobs/equip.rs::compare_weapons` | | `Mob.getApproximateAttributeWith` | port | `crates/horizon-client/src/mobs/equip.rs::attribute_with` | | `Mob.canReplaceEqualItem` | port | `crates/horizon-client/src/mobs/equip.rs::can_replace_equal_item` | | `NeutralMob.isAngryAtAllPlayers` | inline | `crates/horizon-client/src/mobs/tame.rs::angry_at_player` | | `LivingEntity.getFallDamageSound` (citation only) | inline | `crates/horizon-client/src/mobs/landing.rs::MobLanding::living_fall_sound` | `python3 tools/port_ledger.py map-check tools/port_map/game-006.tsv` → `150 rows, no problems.` **Proven:** - the five `Mob` item comparisons — `mobs/equip.rs` ports each one (armour then toughness, the species' preferred weapon tag then attack damage, more enchantments then less damage then a custom name, the item's modifiers on the mob's own base value), and `game/mob_looting.rs` runs them for `Mob.pickUpItem`'s candidate check, so the old note's "only used by loot pickup (Mob.pickUpItem, missing)" was out of date. - `isAngryAtAllPlayers` — javap: `UNIVERSAL_ANGER.get() && isAngry() && getPersistentAngerTarget() == null`. `tame.rs::angry_at_player` is that second clause (`w.universal_anger && anger > 0 && angry_at.is_none()`), the rule read from the world (`creatures.rs`). - `getLocalBoundsForPose` — javap: `getDimensions(pose).makeBoundingBox(Vec3.ZERO)`. `mounts.rs::rider_poses` builds the rider's box in each of `Player.getDismountPoses` (standing, crouching, swimming) from the pose's dimensions at its scale, and the strider dismount tests `dimensions.bounds(at)` with `DismountHelper.canDismountTo`. - `getFallDamageSound` cited `mobs/living.rs::Mob::cause_fall_damage`, which does not exist. `MobLanding::living_fall_sound` picks `entity.hostile.big_fall`/`small_fall` for a monster and the generic pair otherwise, so the row's "monsters use the generic sounds" gap is closed too. **Not proven:** - `Interaction.readAdditionalSaveData` and `Interaction.addAdditionalSaveData` stay `missing`: `RemoteInteraction` (`game/interactions.rs`) keeps only position, width, height, response and vehicle, and nothing saves or loads an interaction entity either way. - `Interaction.getLastAttacker` and `Interaction.getTarget` stay `missing`: no attack targets are kept for an interaction, the client copy answers the click only. - `LivingEntity.getHitbox` stays `missing`: javap raises the box's minY to `getPassengerRidingPosition` for a rider, while the spear pick (`game/hand.rs::attack_range_pick`) and melee use `m.bounds()` uncut. - `Mob.onAttributeUpdated` stays `missing`: `PathNavigation.update_max_visited_nodes` exists (`mobs/nav.rs`) but nothing calls it on an attribute change — only mob creation, the warden's spawn follow-range bonus and the creaking heart — so `/attribute` still leaves the visited-node cap alone. --- <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: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#7290
No description provided.