[2.0.73] EntityWithHealthPrototype.resistances.percent vs Resistance::percent

BurninSun
Long Handed Inserter
Long Handed Inserter
Posts: 82
Joined: Fri Mar 16, 2018 4:54 am
Contact:

[2.0.73] EntityWithHealthPrototype.resistances.percent vs Resistance::percent

Post by BurninSun »

In prototype stage, resistances.percent are on a percentage scale, 0-100.
In runtime stage, resistances.percent are decimal fractions, 0-1.
This either needs to be changed (which obviously may break things) or at least be clarified in the docs that runtime resistance percent values are not actually a percent but a decimal value.
Bilka
Factorio Staff
Factorio Staff
Posts: 3696
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [2.0.73] EntityWithHealthPrototype.resistances.percent vs Resistance::percent

Post by Bilka »

Thanks for the note, I added this to the docs for the next release.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”