[2.1.14] LuaQualityPrototype levels are inconsistent

Bugs that are actually features.
radorei
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Jul 22, 2026 6:24 am
Contact:

[2.1.14] LuaQualityPrototype levels are inconsistent

Post by radorei »

When reading the level of the quality prototypes, I saw that the indexing is inconsistent. Between normal and epic they appear to be 0-based, and legendary appears to be 1-based

Code: Select all

prototypes.quality.normal.level: 0
prototypes.quality.uncommon.level: 1
prototypes.quality.rare.level: 2
prototypes.quality.epic.level: 3
prototypes.quality.legendary.level: 5
Attachments
factorio-current.log
(7.36 KiB) Downloaded 13 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4872
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.1.14] LuaQualityPrototype levels are inconsistent

Post by boskid »

Not a bug

level is not an index, it sets strength of various modifiers. It is not required to be continuous or 0 or 1 based.
Post Reply

Return to “Not a bug”