Files
satistaskory/docs/02-Domain/📈 Progress Calculation.md
T
Stephen Fasciani bac020f335
Build / build (push) Failing after 32s
Count every plank a chest will take, not only oak.
Tag ingredients are one interchangeable requirement. Available is the sum. Overlay names the stack the player holds; empty shows Planks, not oak-by-default.
2026-09-08 06:28:04 -04:00

1.4 KiB
Raw Blame History

📈 Progress Calculation

Calculates progress from goals, requirements, and inventory.


Calculates

✅ Completed Goal is named. It is not in the first slice.

Using


Formula (first slice)

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:
    available = sum of every interchangeable option (or that one item)
    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).


🧾 Recipe Resolution

🔌 Recipe Provider

➕ Material Aggregation

🛠️ Ready To Craft

✅ Completed Goal

▶️ Create Goal

🎒 Inventory State