Assume single item belts for estimated throughput calculation
Currently, if you have 16 hands for a recipe you'll see estimated performance 60
But if you have 17 hands, you'll see 63.75 which is not possible unless you mix items on belts
I would like to see performance assuming you don't mix items in a single hand
```ts
function getCraftingTime(recipe: number[], hands: number): number {
if (hands < recipe.length) return Infinity;
const assigned = new Array(recipe.length).fill(1);
let remaining = hands - recipe.length;
while (remaining > 0) {
const worstTime = Math.max(...recipe.map((qty, i) => qty / assigned[i]));
for (let i = 0; i < recipe.length; i++) {
if (recipe[i] / assigned[i] === worstTime) {
assigned[i]++;
remaining--;
if (remaining === 0) break;
}
}
}
return Math.max(...recipe.map((qty, i) => qty / assigned[i]));
}
```
Comments: 5
Oldest
•
Newest
•
Most likes
•
Fewest likes
-
13 Apr
DimavaHighlighted comment
I have implemented this in a mod, see https://discord.com/channels/1248736286026764401/1493279941012357261 -
13 Apr
ChronTactIXBut what if I do want to use cranes with functional amounts? Not displaying the increase would be weird, and this gives me info on what I am “missing out” on by not.
The calculation clearly warns you what it’s doing (assuming ratio is maintained).
While I wouldn’t do it myself, I’d worry limiting the calc for people who may play that way. -
13 Apr
Dimava> While I wouldn’t do it myself, I’d worry limiting the calc for people who may play that way.
The people who play this way don't need the estimation, knowing that the speed is faster is enough
There are 2 options, either 90% who never mix items would get the correct number even when they accidentally added an extra crane
> But what if I do want to use cranes with functional amounts
You would have more speed then estimate. Better then having *less* speed then the estimate imo