Fixed incorrect infection ratio formula.

This commit is contained in:
Richard Helgeby 2012-08-20 17:20:12 +02:00
parent 58a1d6dcdf
commit d4055aabfb

View File

@ -2563,7 +2563,7 @@ tune game balance.</p>
fifth player. To get the percentage you need to do <em>ratio</em> / <em>player slots</em>. fifth player. To get the percentage you need to do <em>ratio</em> / <em>player slots</em>.
Like 5 / 24 = 0.20 &rArr; 20% infection rate.</p> Like 5 / 24 = 0.20 &rArr; 20% infection rate.</p>
<p>Conversion formula from percent to ratio:</p> <p>Conversion formula from percent to ratio:</p>
<blockquote><p><em>ratio</em> = (<em>percent</em> / 100) * <em>player slots</em></p></blockquote> <blockquote><p><em>ratio</em> = <em>player slots</em> - ((<em>percent</em> / 100) * <em>player slots</em>)</p></blockquote>
<p>Decimals are stripped from the ratio because it's a integer value.</p> <p>Decimals are stripped from the ratio because it's a integer value.</p>
<p>Options:<br /> <p>Options:<br />
0 or a positive number up to max server slots</p> 0 or a positive number up to max server slots</p>