ssilk wrote:Ranakastrasz wrote:
Nonsense. No recipe in the game takes half an item
...
<Error, Recipe cannot use fractional items>
Well it does. Create 5 electronic circuits (=cakes) and use copper plates for it (=eggs). Then it uses 1.5 copper plates for each electronic circuit.
If you make more than one item, then there are for many recipes different brutto- and netto-item-values.
...gamble excessively and maybe get another egg ... Or you could, on cancel, round down.
You can, but then the next players come and mark that as bug.
I don't really see how this can be considered a valid counter-example.
If I don't see something, I try it out.

Ah, well, If you were to imagine that the cake used 3.5 eggs, then you need to have an intemediary, (bowl of egg?) which produces 2 per egg. Cake then uses 7 bowl of egg.
Say you want to bake a cake and need 3.5 eggs for it. But there are no 3.5 eggs, so you need to take always 4.
----
Now you want to bake 5 cakes. For that case you don't need to take 20, you need need only 17.5 eggs, Specifically, you need 35 Egg Bowls, 36 due to set limitations
You queue up 5 cakes. The game realizes you don't have enough Egg bowls, but have the eggs. It inserts, in front of the cake, 18 sets of egg bowls.
Now you change your mind, cancel one cake. The game would cancel 3.5 egg bowl sets, but can only cancel 4. You have 14 Egg Bowls queued and 4 cakes. You get 4 eggs back.
Now you change your mind, cancel one cake. The game would cancel 3 egg bowl sets, because there would be a spare egg bowl left over. You have 11 Egg Bowls and 3 cakes queued.
Repeat 3 more times
You end up with one egg bowl Queued for some reason, even though you canceled all the cakes.
You give in 18 eggs, and get 17 out, because one of them doesn't cancel if you cancel all the cakes, and you have two extra egg bowls you can't use.
That all said, that is actually how it works in game.
-----
More importantly, that isn't the intent of the OP.
Simply stated, If the first Crafting node is partly canceled, manually or as a result of a later node being canceled, then the progress should not reset on that node.
In the Egg-Eggbowl-cake example, suppose eggbowls take 10 seconds to craft.
You craft 5 cakes
Wait 9 seconds
Cancel one cake
The egg bowl, with one second remaining, is canceled, and the next egg bowl takes the full 10 seconds.
Cancel all the cakes
The whole queue is cleared, except for one egg bowl for some reason, which you have to clear manually.
The Wanted behavior is this.
You craft 5 cakes
Wait 9 seconds
Cancel one cake
The egg bowl, with one second remaining, continues crafting, but the count of how many egg bowls must be crafted before it crafts cake is reduced by one.
Cancel all the cakes.
The whole queue is cleared, including that rogue egg bowl.