[PR #7281] [MERGED] port map: game2-009's spear use duration, and what the recipe book holds #7457

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

📋 Pull Request Information

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

Base: main ← Head: chore/vol-b-game2-009


📝 Commits (2)

  • dec795d port map: KineticWeapon.computeDamageUseDuration is Kinetic::damage_use_duration
  • 26438b9 port map: what the recipe book does have for smithing and slot displays

📊 Changes

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

View changed files

📝 tools/port_map/game2-009.tsv (+9 -9)

📄 Description

Rows of tools/port_map/game2-009.tsv (139 rows, map-check clean against 26.3).

Verdicts

row was now where
KineticWeapon.computeDamageUseDuration missing port crates/horizon-client/src/spear.rs::Kinetic::damage_use_duration
Ingredient.getSingleItem missing skip:data — (datagen only)

damage_use_duration is the delay plus the damage window and is what the spear's use duration reads: mobs/spear_use.rs:408 (SpearAttack.getKineticWeaponUseDuration) and :599 (SpearUseGoal.getKineticWeaponUseDuration). Ingredient.getSingleItem's only vanilla caller is BrewingRecipeBuilder.defaultId, and Horizon's brewing recipes come from the JSON tables.

Notes repaired (the rows stay gaps; they now say what the tree holds instead of "unsure")

  • SmithingTransformRecipe.display, SmithingTrimRecipe.display: Book::build makes entries from shaped, shapeless, furnace and special recipes only, so a smithing recipe gets its display count (1) and its station in RecipeIndex and no slot displays; the table's own screens come from StationRecipes::smithing_result.
  • SlotDisplay.Composite.resolve: SlotDisplay::Composite is parsed in horizon-protocol/src/packets/recipes.rs but nothing resolves it into stacks; Book::items_of reads an Ingredient's own item list.
  • SlotDisplay.OnlyWithComponent.resolve: the book's displays hold item ids rather than stacks, so there is no component for a predicate to test.
  • SlotDisplay.WithRemainder.resolve: remainders are kept for play in Recipes::remainders, and the book's displays never apply them.
  • RecipeDisplay.isEnabled, SlotDisplay.WithRemainder.isEnabled: neither the recipe load nor the book reads the level's enabled_features, so a display behind a disabled feature still shows.

Map-check:

PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game2-009.tsv
139 rows, no problems.

Proven: both verdict changes; the cited fn resolves (map-check), Kinetic::damage_use_duration is called from mobs/spear_use.rs, and Ingredient.getSingleItem has one vanilla caller, the datagen recipe builder. The seven notes state what Book::build, Book::items_of, RecipeIndex and Recipe::remainders do, each read in the tree.

Not proven: the gaps these rows record are still gaps — written-book selector resolution, smithing slot displays, composite/remainder/component-filtered displays and feature-flag gating have no port. Nothing here shows they cannot be ported, only that nothing in crates/ implements them at this commit.


🔄 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/7281 **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/vol-b-game2-009` --- ### 📝 Commits (2) - [`dec795d`](https://github.com/horizon-rust/horizon/commit/dec795da4c9d066f54e1b62c5ce1ae7a2dc3c45a) port map: KineticWeapon.computeDamageUseDuration is Kinetic::damage_use_duration - [`26438b9`](https://github.com/horizon-rust/horizon/commit/26438b9128c53e4ebc1174c159c5be57b8c9cd50) port map: what the recipe book does have for smithing and slot displays ### 📊 Changes **1 file changed** (+9 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-009.tsv` (+9 -9) </details> ### 📄 Description Rows of `tools/port_map/game2-009.tsv` (139 rows, map-check clean against 26.3). **Verdicts** | row | was | now | where | | --- | --- | --- | --- | | `KineticWeapon.computeDamageUseDuration` | missing | port | `crates/horizon-client/src/spear.rs::Kinetic::damage_use_duration` | | `Ingredient.getSingleItem` | missing | skip:data | — (datagen only) | `damage_use_duration` is the delay plus the damage window and is what the spear's use duration reads: `mobs/spear_use.rs:408` (`SpearAttack.getKineticWeaponUseDuration`) and `:599` (`SpearUseGoal.getKineticWeaponUseDuration`). `Ingredient.getSingleItem`'s only vanilla caller is `BrewingRecipeBuilder.defaultId`, and Horizon's brewing recipes come from the JSON tables. **Notes repaired** (the rows stay gaps; they now say what the tree holds instead of "unsure") - `SmithingTransformRecipe.display`, `SmithingTrimRecipe.display`: `Book::build` makes entries from shaped, shapeless, furnace and special recipes only, so a smithing recipe gets its display count (1) and its station in `RecipeIndex` and no slot displays; the table's own screens come from `StationRecipes::smithing_result`. - `SlotDisplay.Composite.resolve`: `SlotDisplay::Composite` is parsed in `horizon-protocol/src/packets/recipes.rs` but nothing resolves it into stacks; `Book::items_of` reads an `Ingredient`'s own item list. - `SlotDisplay.OnlyWithComponent.resolve`: the book's displays hold item ids rather than stacks, so there is no component for a predicate to test. - `SlotDisplay.WithRemainder.resolve`: remainders are kept for play in `Recipes::remainders`, and the book's displays never apply them. - `RecipeDisplay.isEnabled`, `SlotDisplay.WithRemainder.isEnabled`: neither the recipe load nor the book reads the level's `enabled_features`, so a display behind a disabled feature still shows. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game2-009.tsv 139 rows, no problems. ``` **Proven:** both verdict changes; the cited fn resolves (map-check), `Kinetic::damage_use_duration` is called from `mobs/spear_use.rs`, and `Ingredient.getSingleItem` has one vanilla caller, the datagen recipe builder. The seven notes state what `Book::build`, `Book::items_of`, `RecipeIndex` and `Recipe::remainders` do, each read in the tree. **Not proven:** the gaps these rows record are still gaps — written-book selector resolution, smithing slot displays, composite/remainder/component-filtered displays and feature-flag gating have no port. Nothing here shows they cannot be ported, only that nothing in `crates/` implements them at this commit. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:39:48 +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#7457
No description provided.