Hnp: Mille-feuille Maker

If you liked this item, please rate it up on Steam Workshop page.

Author: Hinapi

Last revision: 17 May, 2025 at 10:09 UTC (2)

File size: 241.2 KB

On Steam Workshop

Description:
それは肥料でできている。

  • 成長可能な作物を中クリックするとコンテキストメニューに「みるふぃーゆ」のアクションが追加される。
  • 肥料と成長抑制剤を使って最適な構造の「肥料ミルフィーユ」を自動的に作成する。

It is made of fertilizer.

  • When middle-clicking on a growable crop, the context menu will include the "Mille-feuille" action.
  • Automatically creates an optimal structure of "Fertilizer Mille-Feuille" using fertilizers and defertilizers.


肥料ミルフィーユとは?

  • 肥料と抑制剤を正しい順番で積み重ねることで作物の成長を促進させるテクニック。
  • 肥料は内部値を+1増加させる。
  • 抑制剤は内部値を-1に設定する。
  • 内部値が0から1に変化する時に、1日分成長する。
  • 以上の仕様から、次のように積み重ねると3日分成長する。

内部値
アイテム
0
1
肥料 (成長)
-1
抑制剤
0
肥料
1
肥料 (成長)
-1
抑制剤
0
肥料
1
肥料 (成長)

アクションの詳細

  1. 中クリックしたセルに成長可能な作物か種があればコンテキストメニューに「みるふぃーゆ」のボタンを追加する。
  2. 対象のセルに設置されている肥料の情報を取得する。
    • 肥料の構造が正しい場合、それを維持する。次の成長段階が存在しなければ処理を中断する。
    • 肥料の構造が間違っている場合、それらを非設置状態にする。インベントリが空いていれば回収する。回収されなかった肥料は優先的に使用される。
  3. 各種情報に基づいて最適な構造を内部的に生成。肥料と抑制剤の必要数を算出。
  4. 次のものから肥料と抑制剤を探す。必要数を満たしていなければ処理を中断する。
    • 対象のセルにある設置されていないアイテム。
    • インベントリの中。
    • 設置されているコンテナの中。プレイヤーの領地とテント内でのみ有効。
  5. 可能であれば対象のセルに水を与える。
    • 水が入っているじょうろを所持しているならじょうろのチャージを1つ消費する。
    • 所持していなければ出血する。
  6. 生成された構造に基づいて肥料と抑制剤を積み重ねる。

補足
  • AM5時に「みるふぃーゆ」が実行された場合、AM6時の自動成長を加味した構造になる。
    • 自動成長による成長段階の上昇が予測されるなら、肥料は設置されない。
      • この時に「みるふぃーゆ」を実行しても積み重ねることはできない。
      • この振る舞いはきのこの種で起こりやすい。


What is Fertilizer Mille-Feuille?

  • A technique that promotes crop growth by stacking fertilizers and defertilizers in the correct order.
  • Fertilizer increases the internal value by +1.
  • Defertilizer sets the internal value to -1.
  • When the internal value changes from 0 to 1, the crop grows by one day.
  • Based on these mechanics, stacking them in the following way results in 3 days of growth.

Value
Item
0
1
Fertilizer (Growth)
-1
Defertilizer
0
Fertilizer
1
Fertilizer (Growth)
-1
Defertilizer
0
Fertilizer
1
Fertilizer (Growth)

Action Details

  1. If the middle-clicked cell contains a growable crop or seed, add a "Mille-Feuille" button to the context menu.
  2. Retrieve information about the fertilizer placed in the target cell.
    • If the fertilizer structure is correct, maintain it. If there is no next growth stage, terminate the process.
    • If the fertilizer structure is incorrect, unset it. If inventory space is available, collect it. Uncollected fertilizer will be prioritized for use.
  3. Internally generate the optimal structure based on various information. Calculate the required amounts of fertilizers and defertilizers.
  4. Search for fertilizers and defertilizers from the following sources. If the required amount is not met, terminate the process.
    • Unset items in the target cell.
    • Items in the inventory.
    • Items in placed containers, valid only within the player’s territory and inside tents.
  5. If possible, water the target cell.
    • If the player has a watering can with water, consume one charge from it.
    • If not, the player will bleed.
  6. Stack fertilizers and defertilizers based on the generated structure.

Supplementary Notes
  • If "Mille-Feuille" is executed at 5 AM, the structure will account for the automatic growth at 6 AM.
    • If growth stage advancement is predicted due to automatic growth, fertilizer will not be placed.
      • In this case, executing "Mille-Feuille" will not allow stacking.
      • This behavior is more likely to occur with mushroom seeds.


Links
Download
Revisions:

Old revisions of this mod are available below. Click the link to download.