Module quality effect doesn't match documentation

DaleStan
Filter Inserter
Filter Inserter
Posts: 371
Joined: Mon Jul 09, 2018 2:40 am
Contact:

Module quality effect doesn't match documentation

Post by DaleStan »

According to quality/prototypes/item.lua, a normal quality-module has the effect

Code: Select all

  effect = { quality = 0.1, speed = -0.05 }
According to the API docs, all five properties are EffectValues, so I would expect that to mean +10% quality, -5% speed, but the game shows +1% quality instead.
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 261
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: Module quality effect doesn't match documentation

Post by Therenas »

Quality is special, its effect value is divided by 10 internally. I added this information to the relevant places for the next release, thanks.
Post Reply

Return to “Resolved Requests”