Elin
Not enough ratings
Hnp: Mille-feuille Maker
   
Award
Favorite
Favorited
Unfavorite
Gameplay: General, QoL, Balance
File Size
Posted
Updated
246.530 KB
Feb 23 @ 5:10am
Mar 26 @ 1:10am
4 Change Notes ( view )

Subscribe to download
Hnp: Mille-feuille Maker

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
11 Comments
Guedez Mar 3 @ 10:06am 
OH!
I knew you could abuse defertilizers like that, but I didn't knew you could stack it all in one go
I had been manually adding the fertilizer, defertilizer one by one each hour :steamsad:
Question Feb 23 @ 10:43am 
I see, thanks for the explanation.
Ryozu Feb 23 @ 9:12am 
> if it only grows by one day when fert changes from 0 to 1, wouldnt it be more efficient to do 0 -> 1 -> 0 -> 1,

I think what you're missing is that defertilizer goes straight to -1
Hinapi  [author] Feb 23 @ 8:54am 
The defertilizer sets fert to -1.
(It will be -1 regardless of the current value, not the current value minus 1.)

+0
+1 Fertilizer (growth)
-1 Defertilizer
+0 Fertilizer
+1 Fertilizer (growth)
-1 Defertilizer
+0 Fertilizer
+1 Fertilizer (growth)
Question Feb 23 @ 8:40am 
OK, but what i dont get is, if it only grows by one day when fert changes from 0 to 1, wouldnt it be more efficient to do 0 -> 1 -> 0 -> 1, presumably by alternating fertilizer and defertilizer?
Hinapi  [author] Feb 23 @ 8:02am 
As a premise, this mod does not alter the growth system. It advances crop growth by stacking fertilizers and defertilizers in the correct order based on the game's mechanics.

- There is an internal value called fert.
- Giving fertilizer increases fert by 1.
- Giving defertilizer sets fert to -1.
- The crop only grows by one day when fert changes from 0 to 1.
- When fertilizers are stacked, they are processed in the order from the top.

For example, if fertilizers and defertilizers are stacked as follows:
  Fertilizer → Fertilizer → Defertilizer → Fertilizer → Fertilizer → Defertilizer → Fertilizer,
fert will change as follows:
  0 → 1 → -1 → 0 → 1 → -1 → 0 → 1
Since fert changes from 0 to 1 a total of 3 times, the crop grows by 3 days.
Question Feb 23 @ 7:46am 
But why does it require defertilizer rather than just stacking fertilizer to get multiple day's worth of growth?
Hinapi  [author] Feb 23 @ 7:12am 
Placing two fertilizers and one defertilizer in the correct order will advance a crop by one day's growth.

For example, if a crop has not yet been affected by fertilizer or defertilizer, placing them in the following order:
Fertilizer → Fertilizer → Defertilizer → Fertilizer → Fertilizer → Defertilizer → Fertilizer
will result in three days of growth.

This mod calculates the optimal structure based on various factors such as soil condition, crop status, and current time. With just a press of the context menu button, it will stack fertilizers and defertilizers in the correct order until the crop reaches the stage where seeds can be obtained.

(Of course, fertilizers and defertilizers are required. Items marked as important will not be used.)
Question Feb 23 @ 6:39am 
Then what is this mod supposed to do? I am confused.
Hinapi  [author] Feb 23 @ 5:22am 
That's a Japanese slang term.