Skip to content
DP-RESTOCKReviewed · 2026-11-19Desktop 1.8 · Companion 1.1.1Lire en français

Decide what to craft ​

Restocking answers a bounded question: how many additional crafting runs should be suggested now, using saved evidence and the chosen reserve? It does not guarantee that stock will sell within the next three days.

Estimate a stock target ​

The model uses personal sales over the last seven days for the exact item. Demand is considered established after at least three sale records across two distinct UTC days. One large sale is not sufficient evidence of repeat demand.

When that condition holds:

text
target = ceil(units sold over 7 days × 3 / 7)
need = max(0, target − total stock)
crafting runs = ceil(need / recipe yield)

Without that evidence, the target is one recipe yield and the cap is one trial craft, only when no stock exists. A recipe yielding two items can therefore produce two units from one crafting run.

Worked example ​

An item recorded 14 units sold across four sales and three days. Its target is six units. Two are in bags, one in the bank and two at the AH: total five. One unit is missing. With a yield of two, one craft suffices and creates a small indivisible-batch surplus.

With six units already stocked, the suggestion becomes zero. With a single sale of 14 units, evidence remains limited: the model does not automatically infer a target of six. Reserve and other checks can still reduce any suggestion to zero.

Checks before acceptance ​

  1. Exclude alternative recipes already selected for the same item and sufficient stock.
  2. Pause after three expired lots since the last sale within the relevant window; block cooldown recipes.
  3. Require recent output, purchased-reagent and regional reference prices.
  4. Require a finite nonnegative cost and positive reference margin.
  5. Limit the plan to five recipes, then respect maxBatch and recipe yield.
  6. Recalculate the combined plan; reduce quantity until the cash budget and positive reference margin both hold.

Initial sorting uses reference profit per item. This is not a global optimizer exploring every possible combination. The three-day, five-recipe and two-hour thresholds are currently coded rules, not all interface settings.

Owned stock and cash spending ​

Total stock preventing overproduction includes bags, bank, mail and AH. Reagents already usable by the plan include bags, bank and mail, without consuming items still listed at the AH. An owned reagent needs no additional cash but retains a replacement cost in the economic margin.

The plan expands subcrafts, shares reagents across recipes and reuses batch surplus. Cash budget is max(0, available gold − reserve). Missing cost never arbitrarily becomes zero.

The Companion's recipe table is simpler: it suggests no-stock trials from in-memory TSM values and its own criteria. It does not reimplement the desktop's combined planner. See Companion and decisions.

A local-first advisor. Estimates stay visible.