Page 1 of 1

Is there a way to add 1 to quality or compare > set quality?

Posted: Fri Nov 22, 2024 12:35 am
by mooklepticon
I want to generalize my quality input/output/filter.

For example, I'm smelting iron plates. I want to set 1 constant combinator to request them, the inserter inputs them into a furnace with quality modules. If the output is the same quality, I want it to be put into Chest A. If it's higher quality, then put into Chest B.

If I set the constant comb to iron plate-normal, then it should put normal steel in Chest A and uncommon or higher into Chest B. If I set the constant comb to iron-plate rare, then it should put the normal steel in Chest A and the rare or higher in Chest B.

Something like that. I want to add 1 level to quality, or anything greater than the input quality be sent elsewhere.

Re: Is there a way to add 1 to quality or compare > set quality?

Posted: Fri Nov 22, 2024 1:08 am
by Khagan
mooklepticon wrote: Fri Nov 22, 2024 12:35 am If the output is the same quality, I want it to be put into Chest A. If it's higher quality, then put into Chest B.
The output will never be lower quality, so you can simplify 'higher quality' to 'not the same quality'. Give the inserter into A a whitelist filter on the current quality, and the inserter into B a blacklist one.

Re: Is there a way to add 1 to quality or compare > set quality?

Posted: Fri Nov 22, 2024 1:41 pm
by mooklepticon
Ah, so if I understand this, a quality applied item is either X (it's current quality) or X+1 (one step up). Since whitelist inserter of that same quality, it'll pickup the X. The blacklist Inserter will pick up everything else, and since we know it'll only be X+1 quality, it'll handle the rest.

Re: Is there a way to add 1 to quality or compare > set quality?

Posted: Fri Nov 22, 2024 9:52 pm
by Khagan
mooklepticon wrote: Fri Nov 22, 2024 1:41 pm Ah, so if I understand this, a quality applied item is either X (it's current quality) or X+1 (one step up). Since whitelist inserter of that same quality, it'll pickup the X. The blacklist Inserter will pick up everything else, and since we know it'll only be X+1 quality, it'll handle the rest.
It can also be X+2 (or X+3 ...). But that still matches your original statement of the problem in terms of 'higher' quality.