Discrepancy on Damage page on wiki

Anything related to the content on our wiki (https://wiki.factorio.com/)

Moderator: Bilka

Post Reply
JonathanMorgan
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sat Apr 22, 2017 3:33 pm

Discrepancy on Damage page on wiki

Post by JonathanMorgan » Mon Mar 26, 2018 5:46 pm

When looking at the table for Damage, Flat Resistance, Modified damage (with 0% resistance) I've noticed it doesn't line up with the formula when modified damage less than 1.

For example, The table says when raw damage is 5 and Flat Resistance is 5 the modified damage is 1/2 (.5). However, when inserting those values into the following formula:
M=1/(1-(D-R))=1/(1+R-D)
M = 1/(1-(5-5)) = 1/(1+5-5) = 1/1 = 1

The result is 1 not .5

I would think the table is correct for all the examples, not the formula, since it would make sense in the example of:
raw damage is 5 and Flat Resistance is 4 the modified damage is 1. As a result, the damage should decrease not stay the same if flat resistance is 5. But this needs verified.

I think the formula should be:
M=1/(2-(D-R))=1/(2+R-D)

Also, this means that the formula that incorporates the percentile resistance (when modified damage less than 1) needs modified if the assumption above is correct:
F = (1 - P) / (1 + R - D)

Wiki page in question:
https://wiki.factorio.com/Damage

User avatar
Bilka
Factorio Staff
Factorio Staff
Posts: 987
Joined: Sat Aug 13, 2016 9:20 am

Re: Discrepancy on Damage page on wiki

Post by Bilka » Tue Mar 27, 2018 2:25 pm

You are right, the formula was wrong. I found the right formulas in the source code and corrected the page.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

JonathanMorgan
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sat Apr 22, 2017 3:33 pm

Re: Discrepancy on Damage page on wiki

Post by JonathanMorgan » Tue Apr 24, 2018 5:03 pm

Thank you very much Bilka.

Post Reply

Return to “Wiki Talk”