[PR #959] [MERGED] Carry: YUNG's dead-end pools, modifiers and piece_in_range #2941

Closed
opened 2026-11-02 16:00:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/959
Author: @ludovic111
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @ludovic111

Base: main ← Head: feat/carry-yung-modifiers


📝 Commits (4)

  • 44b8aea Carry: YUNG's and Moog's terrain adaptation as the game's terrain kernel
  • 9a836c5 Docs: carried terrain kernels and what they change in seed 1234
  • 8246171 Carry: YUNG's dead-end pools, modifiers and piece_in_range
  • a19a6b5 docs/modpacks.md: YUNG's modifiers and dead-end pools, Towns and Towers' namespaces

📊 Changes

2 files changed (+232 additions, -31 deletions)

View changed files

📝 crates/horizon-port-pack/src/worldgen.rs (+212 -26)
📝 docs/modpacks.md (+20 -5)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Stacked on #956 (both rewrite yung_element); merge that first. The game reads these rules in #958.

What

YUNG's single elements keep their dead-end pool and their modifiers under horizon:yungsapi instead of counting them lost:

  • A modifier keeps its condition and its transform (output templates, offset [x, y, z]) and delay_generation actions.
  • A modifier aimed at a target other than self is counted lost, and so is an unknown action (just that action).
  • piece_in_range carries as it is. The game reads yungsapi:all as any piece.
  • docs/modpacks.md: the YUNG paragraph, and the "still lost" list.

Proof

  • Better Fortresses' carry-report.json, rules lost: piece_in_range 4, deadend_pool 7, modifiers 8, enhanced terrain 1 → none. The other YUNG mods use none of these.
  • In the game (#958, with #957): Better Fortresses 3,765 → 4,106 pieces over seed 1234's Nether chunks -64..63.
  • The test yungs_jigsaws_keep_their_rules now covers dead-end pools, both actions, a piece_in_range condition, an unknown action and a target other than self.

Self-check

cargo fmt --all --check                                   ok
cargo clippy --workspace --all-targets -- -D warnings     ok
cargo test -p horizon-port-pack                           ok

No game code here.

Nothing needs Ludovic.

🤖 Generated with Claude Code


🔄 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/959 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/carry-yung-modifiers` --- ### 📝 Commits (4) - [`44b8aea`](https://github.com/horizon-rust/horizon/commit/44b8aeab0a98edf001c617ab7bb3845b3b69bd75) Carry: YUNG's and Moog's terrain adaptation as the game's terrain kernel - [`9a836c5`](https://github.com/horizon-rust/horizon/commit/9a836c50a830f023c6a08bca328c0f7c80592795) Docs: carried terrain kernels and what they change in seed 1234 - [`8246171`](https://github.com/horizon-rust/horizon/commit/8246171ae98fae62bd058b352cb3d7a35239234d) Carry: YUNG's dead-end pools, modifiers and piece_in_range - [`a19a6b5`](https://github.com/horizon-rust/horizon/commit/a19a6b5bccdb1b044aec2df48bcbe391373708e8) docs/modpacks.md: YUNG's modifiers and dead-end pools, Towns and Towers' namespaces ### 📊 Changes **2 files changed** (+232 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/worldgen.rs` (+212 -26) 📝 `docs/modpacks.md` (+20 -5) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #956 (both rewrite `yung_element`); merge that first. The game reads these rules in #958. ## What YUNG's single elements keep their dead-end pool and their modifiers under `horizon:yungsapi` instead of counting them lost: - A modifier keeps its condition and its `transform` (output templates, offset `[x, y, z]`) and `delay_generation` actions. - A modifier aimed at a target other than `self` is counted lost, and so is an unknown action (just that action). - `piece_in_range` carries as it is. The game reads `yungsapi:all` as any piece. - docs/modpacks.md: the YUNG paragraph, and the "still lost" list. ## Proof - Better Fortresses' `carry-report.json`, rules lost: `piece_in_range` 4, `deadend_pool` 7, `modifiers` 8, enhanced terrain 1 → none. The other YUNG mods use none of these. - In the game (#958, with #957): Better Fortresses 3,765 → 4,106 pieces over seed 1234's Nether chunks -64..63. - The test `yungs_jigsaws_keep_their_rules` now covers dead-end pools, both actions, a `piece_in_range` condition, an unknown action and a target other than `self`. ## Self-check ``` cargo fmt --all --check ok cargo clippy --workspace --all-targets -- -D warnings ok cargo test -p horizon-port-pack ok ``` No game code here. Nothing needs Ludovic. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:00:17 +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#2941
No description provided.