[PR #7516] [MERGED] port_map: the powder snow climb goal and the spear's charge state #7637

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • 3aa0691 port_map: the powder snow climb goal and the spear's charge state

📊 Changes

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

View changed files

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

📄 Description

tools/port_map/game-009.tsv: two rows that said the behaviour is absent now name where it lives.

  • ClimbOnTopOfPowderSnowGoal.canUse -> crates/horizon-client/src/mobs/goals.rs::ClimbOnTopOfPowderSnow::can_use — the mob is in powder snow (ai::in_powder_snow), its kind is a powder_snow_walkable_mobs entity, and the block above its position is powder snow or has no collision; tick then asks for a jump. The goal is registered for the four species the old note named: silverfish (mobs/hostile.rs:60), endermites (:72), rabbits (mobs/rabbit.rs:38) and foxes (mobs/fox.rs:156), with mobs/ai.rs:3272 asserting the silverfish still has it.
  • SpearUseGoal.SpearUseState -> home crates/horizon-client/src/mobs/spear_use.rs — the nested class is the SpearUseState struct there: the engagement phase, the spear-down timer and the flee state, with its methods' comments naming SpearUseState.notEngagedYet and SpearUseState.startEngagement.

The file's other missing rows were rechecked and stay: GoalSelector.removeGoal (no per-goal removal; the callers fold the condition into can_use), StrollThroughVillageGoal.tick/moveRandomly (mobs/fox.rs:6 still says village strolls are not ported), ResetUniversalAngerTargetGoal.wasHurtByPlayer/getNearbyMobsOfSameType (universal_anger is read only by the wolf's target test) and TargetGoal.canReach (must_reach is set by reach() at mobs/goals.rs:1575 and never read).

Map-check:

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

Proven: every where cell resolves under map-check, and the citations were read at their sites: ClimbOnTopOfPowderSnow::can_use's three tests and every_tick, the four g.add(1, ClimbOnTopOfPowderSnow) registrations, and spear_use.rs's SpearUseState struct with the comments naming the vanilla methods.

Not proven: no in-game check. Nothing here watched a silverfish or a fox climb out of powder snow, or a zombie charge with a spear.


🔄 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/7516 **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/led2-game-009` --- ### 📝 Commits (1) - [`3aa0691`](https://github.com/horizon-rust/horizon/commit/3aa0691c819dce3620cf7ab361d520dd1a195d6d) port_map: the powder snow climb goal and the spear's charge state ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-009.tsv` (+2 -2) </details> ### 📄 Description `tools/port_map/game-009.tsv`: two rows that said the behaviour is absent now name where it lives. - `ClimbOnTopOfPowderSnowGoal.canUse` -> `crates/horizon-client/src/mobs/goals.rs::ClimbOnTopOfPowderSnow::can_use` — the mob is in powder snow (`ai::in_powder_snow`), its kind is a `powder_snow_walkable_mobs` entity, and the block above its position is powder snow or has no collision; `tick` then asks for a jump. The goal is registered for the four species the old note named: silverfish (`mobs/hostile.rs:60`), endermites (`:72`), rabbits (`mobs/rabbit.rs:38`) and foxes (`mobs/fox.rs:156`), with `mobs/ai.rs:3272` asserting the silverfish still has it. - `SpearUseGoal.SpearUseState` -> `home crates/horizon-client/src/mobs/spear_use.rs` — the nested class is the `SpearUseState` struct there: the engagement phase, the spear-down timer and the flee state, with its methods' comments naming `SpearUseState.notEngagedYet` and `SpearUseState.startEngagement`. The file's other `missing` rows were rechecked and stay: `GoalSelector.removeGoal` (no per-goal removal; the callers fold the condition into `can_use`), `StrollThroughVillageGoal.tick`/`moveRandomly` (`mobs/fox.rs:6` still says village strolls are not ported), `ResetUniversalAngerTargetGoal.wasHurtByPlayer`/`getNearbyMobsOfSameType` (`universal_anger` is read only by the wolf's target test) and `TargetGoal.canReach` (`must_reach` is set by `reach()` at `mobs/goals.rs:1575` and never read). Map-check: ``` PORT_LEDGER_OUT=/tmp/led-led python3 tools/port_ledger.py map-check tools/port_map/game-009.tsv 125 rows, no problems. ``` **Proven:** every `where` cell resolves under map-check, and the citations were read at their sites: `ClimbOnTopOfPowderSnow::can_use`'s three tests and `every_tick`, the four `g.add(1, ClimbOnTopOfPowderSnow)` registrations, and `spear_use.rs`'s `SpearUseState` struct with the comments naming the vanilla methods. **Not proven:** no in-game check. Nothing here watched a silverfish or a fox climb out of powder snow, or a zombie charge with a spear. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:21: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#7637
No description provided.