Line 22: |
Line 22: |
| *Note: The check is done from top to bottom, if the requirements of multiple pools are fulfilled, only the topmost one is used. | | *Note: The check is done from top to bottom, if the requirements of multiple pools are fulfilled, only the topmost one is used. |
| | | |
− | Upon starting a construction, a random ship will be selected based on a formula using 2 values that are generated:
| + | The constructed ship is selected in the pool by a value we call <math>ID</math> which can go from 1 to 100. It is calculated by substating two random value <math>Rand_1</math> and <math>Rand_2</math>. |
| + | |
| + | {|class="wikitable mw-collapsible mw-collapsed" width="100%" |
| + | !colspan=2|<math>ID</math> Calculation |
| + | |- |
| + | | |
| + | {|style="padding:10px; margin:20px; border:1px solid orange; border-radius:10px" |
| + | |valign="center"| <math>ID=Rand_1-Rand_2</math> |
| + | |} |
| + | |
| + | ;With |
| + | *<math>Rand_1</math> a random number between 0 and 100, |
| + | *<math>Rand_2</math> a random number generated between 0 and <math>Res-1</math>. |
| + | In case value ID becomes 0 or negative, the value will be converted back into a positive value and incremented by 2: |
| + | |- |
| + | | |
| + | ;Note |
| + | Every random function here give a random whole number between ''A'' and ''B'' with ''A'' and ''B'' included |
| + | |- |
| + | | |
| + | Which resources that are used to increment value <math>Res</math> is dependent on the pool that has been selected: |
| *Pool 1: {{Steel}} {{Bauxite}} | | *Pool 1: {{Steel}} {{Bauxite}} |
− | <math>??</math> | + | {|style="padding:10px; margin:20px; border:1px solid orange; border-radius:10px" |
| + | |valign="center"| <math>Res=MAX \Bigg( abs \Big( \Bigg\lceil \frac{Steel-400}{25} \Bigg\rceil + \Bigg\lceil \frac{Baux-300}{20} \Bigg\rceil \Big); 51\Bigg)</math> |
| + | |} |
| + | |
| | | |
| *Pool 2: {{Ammo}} {{Steel}} | | *Pool 2: {{Ammo}} {{Steel}} |
− | <math>??</math> | + | {|style="padding:10px; margin:20px; border:1px solid orange; border-radius:10px" |
| + | |valign="center"| <math>Res=MAX \Bigg( abs \Big( \Bigg\lceil \frac{abs(Ammo-400)}{25} \Bigg\rceil + \Bigg\lceil \frac{abs(Steel-600)}{30} \Bigg\rceil \Big); 51\Bigg)</math> |
| + | |} |
| + | |
| | | |
| *Pool 3: {{Ammo}} {{Steel}} | | *Pool 3: {{Ammo}} {{Steel}} |
− | <math>??</math> | + | {|style="padding:10px; margin:20px; border:1px solid orange; border-radius:10px" |
| + | |valign="center"| <math>Res=MAX \Bigg( abs \Big( \Bigg\lceil \frac{abs(Ammo-200)}{13} \Bigg\rceil + \Bigg\lceil \frac{abs(Steel-200)}{20} \Bigg\rceil \Big); 51\Bigg)</math> |
| + | |} |
| + | |
| | | |
| *Pool 4: {{Fuel}} {{Steel}} | | *Pool 4: {{Fuel}} {{Steel}} |
− | <math>??</math> | + | {|style="padding:10px; margin:20px; border:1px solid orange; border-radius:10px" |
| + | |valign="center"| <math>Res=MAX \Bigg( abs \Big( \Bigg\lceil \frac{abs(Fuel-100)}{10} \Bigg\rceil + \Bigg\lceil \frac{abs(Steel-30)}{15} \Bigg\rceil \Big); 51\Bigg)</math> |
| + | |} |
| | | |
| ;With | | ;With |
Line 39: |
Line 70: |
| **51 is its maximum possible value. | | **51 is its maximum possible value. |
| **The resources used to increment this value depend on the pool that has been selected. | | **The resources used to increment this value depend on the pool that has been selected. |
− | *<math>Rand_1</math> a random number between 0 and 100, | + | *<math>\lceil x \rceil</math> is the function ceiling which round decimals upwards |
− | *<math>Rand_2</math> a random number generated between 0 and <math>Res</math>. The resulting value is subtracted by 1 if it is higher than 0. | + | *<math>abs</math> is the function absolute, which always return the number positive. |
− | *<math>ID</math> the value achieved by subtracting <math>Rand_1</math> with <math>Rand_2</math>. This value is what determines which ship will be crafted.
| + | [https://tsundb.kc3.moe/construction] |
− | In case <math>ID</math> becomes 0 or negative, the value will be converted back into a positive value and incremented by 2.
| + | |} |
| | | |
− | [https://tsundb.kc3.moe/construction]
| + | ;Pratical conclusion |
| + | * Only 2 resource will have an effect depending of the pool. Changing the two other will ahve no effect as long as it doesn't change the pool. |
| + | * On the two resource that have an effect one have a bigger effect than the other. |
| + | ** the effect is capped, above a certain threshold increasing the resources further won't have any effect. |
| + | * The effect of changing resources will increase the drop of some ship by reducing the drop of others. |
| | | |
| ==Large Ship Construction== | | ==Large Ship Construction== |