1 Uncommon thing > 20 Normal Thing is true for some reason.

Bugs that are actually features.
SilentStorm
Inserter
Inserter
Posts: 43
Joined: Sun Jul 09, 2017 9:19 am
Contact:

1 Uncommon thing > 20 Normal Thing is true for some reason.

Post by SilentStorm »

Circuit conditions involving quality make no sense whatsoever.

Have a decider combinator that has a condition of "Each Red Wire >= Each Green Wire" and send it a signal of "Steel (Uncommon)" with the value of 2 on the red wire and a Signal of Steel 10 on the green wire and watch the condition be true in the combinator. Because of course 2 uncommon steel is in fact greater than 10 normal steel... It's not how numbers work in my reality but sure.

Not sure why and what the reasoning behind it is, or what the edge case would be where this is what you'd want but.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3947
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: 1 Uncommon thing > 20 Normal Thing is true for some reason.

Post by boskid »

Not a bug.

Signals of different quality are considered different signals and [Each] does not compare between them.

You have "steel (uncommon)" signal and "steel (normal)" signal.
- Steel (uncommon) on red is 1, Steel (uncommon) on green is 0 so condition passes
- Steel (normal) on red is 0, Steel (normal) on green is 20 so condition fails.
computeraddict
Filter Inserter
Filter Inserter
Posts: 348
Joined: Sat Oct 07, 2023 6:44 am
Contact:

Re: 1 Uncommon thing > 20 Normal Thing is true for some reason.

Post by computeraddict »

Signals with different quality are different signals.
Post Reply

Return to “Not a bug”