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

Place to report issues and suggest improvements to the API documentation.
BurninSun
Long Handed Inserter
Long Handed Inserter
Posts: 80
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.
Post Reply

Return to “Documentation Improvement Requests”