a045281f76
Build / build (push) Failing after 6m27s
Replace the empty flat docs with the Media Farm shelf layout: vision, philosophy, language, architecture (including packages, RecipeProvider, and Create Goal), player day, and prototype freezes. The NeoForge example code is still not the architecture.
60 lines
1.3 KiB
Markdown
60 lines
1.3 KiB
Markdown
# 📈 Progress Calculation
|
||
|
||
Calculates progress from goals, requirements, and inventory.
|
||
|
||
---
|
||
|
||
## Calculates
|
||
|
||
- [[📉 Missing Material|Missing Materials]]
|
||
- [[🛠️ Ready To Craft|Ready-To-Craft Status]]
|
||
|
||
[[✅ Completed Goal|Completion]] is named. It is not in the first slice.
|
||
|
||
## Using
|
||
|
||
- [[🎯 Goal|Goals]]
|
||
- [[🧱 Material Requirement|Material Requirements]]
|
||
- [[🎒 Inventory State]]
|
||
- [[🔌 Recipe Provider]] (via [[🧾 Recipe Resolution]])
|
||
|
||
---
|
||
|
||
## Formula (first slice)
|
||
|
||
```text
|
||
for each active goal:
|
||
remaining = max(0, target quantity − available(target item))
|
||
requirements += resolve(target item, remaining)
|
||
|
||
aggregate requirements
|
||
(same material → one row)
|
||
|
||
for each material:
|
||
missing = max(0, required − available)
|
||
```
|
||
|
||
Owned finished goods reduce **how many to resolve**. They are not subtracted again from ingredients.
|
||
|
||
A goal is [[🛠️ Ready To Craft]] when its remaining-to-obtain is 0, or every material required for that remaining is available.
|
||
|
||
`resolve` is one crafting level. No recipe → the remaining target items *are* the requirements (gather).
|
||
|
||
---
|
||
|
||
## Related Documents
|
||
|
||
[[🧾 Recipe Resolution]]
|
||
|
||
[[🔌 Recipe Provider]]
|
||
|
||
[[➕ Material Aggregation]]
|
||
|
||
[[🛠️ Ready To Craft]]
|
||
|
||
[[✅ Completed Goal]]
|
||
|
||
[[▶️ Create Goal]]
|
||
|
||
[[🎒 Inventory State]]
|