Incinerator Drone: Difference between revisions
Appearance
m Changed some wordings |
m add metroid prime creature category |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 9: | Line 9: | ||
==How the RNG Works== | ==How the RNG Works== | ||
[[File:IncineratorDrone.png|thumb|upright=2.0]] | |||
The round time | The first round time takes between 8 and 13 seconds (480-780 frames), and the remaining rounds take between 15 and 25 seconds (900-1500 frames). Since it is assumed that 1 frame passes between each of the rounds, the overall amount of time it takes is between 53.05 and 88.067 seconds (3183-5284 frames).<br><br> | ||
This is how the Random Number Generation works for this fight: | This is how the Random Number Generation works for this fight:<br><br> | ||
1. A random unsigned 16-bit integer (between 0 and 65535) is generated.<br> | |||
2. That number is divided by 65535, and the result is stored as a single-precision (32-bit) float. This number is always between 0 and 1.<br> | |||
3. A 32-bit floating point timer is initialized with an initial value of (5 * x) + 8 for the first round and (10 * x) + 15 for the rest, where x is the result from step 2.<br> | |||
4. Every frame, 1/60 is subtracted from the timer.<br> | |||
5. When the timer hits zero, the weak point becomes exposed.<br> | |||
6. The process is repeated until the I-Drone has no more hitpoints.<br> | |||
<br> | |||
There are 301 possible durations (numbers of frames) for the first round and 601 possible durations for the rest. Since there are 65536 possible random numbers, each duration for the first round should correspond to about 218 different random numbers, and each duration for the rest should correspond to about 109 different random numbers. | There are 301 possible durations (numbers of frames) for the first round and 601 possible durations for the rest. Since there are 65536 possible random numbers, each duration for the first round should correspond to about 218 different random numbers, and each duration for the rest should correspond to about 109 different random numbers. | ||
| Line 33: | Line 34: | ||
===Everything in between=== | ===Everything in between=== | ||
This [https://github.com/Skull64/metroid-rocks/tree/master/i_drone code] calculates the probability of I-Drone taking every possible number of frames. It also displays the cumulative probability of it taking all numbers of frames less than or greater than every possible number of frames. | This [https://github.com/Skull64/metroid-rocks/tree/master/i_drone code] calculates the probability of I-Drone taking every possible number of frames. It also displays the cumulative probability of it taking all numbers of frames less than or greater than every possible number of frames. | ||
* 90% of all fights fall between 62 and 79 seconds in length. | |||
* Average fight length ~ 70.55 seconds standard deviation of ~ 10.1 seconds. | |||
* 1.96% of fights are 60 seconds or faster. | |||
* 3.41% of fights are 80 seconds or slower. | |||
One of the slowest I-Drone fights was timed to have taken 85.933 seconds (5156 frames) after subtracting the time it took to shoot the weak points after they became visible. The code calculated that the probability of I-Drone taking 5156 or more frames is 1/6064. Thus it could be said that only 1/6000 or so I-Drone fights could be expected to have worse RNG than the RNG in that fight. | |||
==See Also== | |||
* [[RNG|Random Number Generator]] | |||
[[Category:Boss]] | [[Category:Boss]] | ||
[[Category:Creature]] | [[Category:Creature]] | ||
[[Category:Creature (Metroid Prime)]] | |||