Incinerator Drone: Difference between revisions

From Metroid Prime Speedrunning Wiki
Jump to navigation Jump to search
m (1 revision imported)
(moving m2k2 info to wiki)
Line 1: Line 1:
The '''Incinerator Drone''' ('''I-Drone''') is a miniboss in the [[Burn Dome]] in Chozo Ruins. It guards the [[Morph Ball Bomb]].
The '''Incinerator Drone''' ('''I-Drone''') is a miniboss in the [[Burn Dome]] in Chozo Ruins. It guards the [[Morph Ball Bomb]].


This fight is pretty simple, but unfortunately contains a lot of [[RNG]]. The fight has four rounds, and for each round, the time it takes for Incinerator Drone to open up its weak spot is random. For the first round, it always takes between 8 and 13 seconds to open up its weak spot, and for the other three rounds it takes between 15 and 25 seconds. So the overall minimum and maximum possible total times are 53 and 88 seconds, respectively.
The Incinerator Drone must be damaged sufficiently 4 times before it is destroyed. It can only be damaged when its weak point is exposed. Where the weak point appears is not random. The weak spot is exposed either facing North to South or East to West room and alternates every other round starting with facing the East to West. There is a standable ledge around Incinerator Drone right in front of its top. In standing here, you can't get hit by the flames and can spawn kill the [[War Wasp|War Wasps]]. This lets you quickly shoot the weak spot, essentially for free. There are 4 rounds to the fight. The amount of time it takes to expose its weak point is random each time, but there are limits. After defeating Incinerator Drone you will fall into [[Morph Ball Bomb]].


Where the weak point appears is not random. The weak spot is exposed either facing the door of the room or to the sides of the room and alternates every other round starting with facing the sides. To make the fight even easier one can jump onto a ledge around Incinerator Drone right in front of its top, where you can't get hit by the flames and quickly shoot the weak spot with ease.
==During the Fight==


==Randomizer==
* Incinerator Drone is vulnerable to [[Ice Beam]], which can be obtained before the fight using [[Out of Bounds]]. (<small>''see also: [[Early Ice Beam]]''</small>)
* The [[Morph Ball]] tunnel blockage is damageable with [[Power Bombs]] which can be obtained before the fight using [[Out of Bounds]]. This allows you to get the [[Missile Expansion]] in this room during the fight. (<small>''see also: [[Power Bombs Before Bombs]]''</small>)
 
==How the RNG Works==
 
The round time it takes between 8 and 13 seconds (480-780 frames), and the remaining times it takes 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).
 
This is how the Random Number Generation works for this fight:
 
1. A random unsigned 16-bit integer (between 0 and 65535) is generated.
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.
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.
4. Every frame, 1/60 is subtracted from the timer.
5. When the timer hits zero, the weak point becomes exposed.
6. The process is repeated until the I-Drone has no more hitpoints.
 
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.
 
==Best possible RNG==
 
For the rounds other than the first, the there are 109 initial random numbers (0-65535) that result in the minimum number of frames (900), which are 0-128. For the first round, however, it turns out that there is only 1 initial random number that results in the minimum number of frames (480), which is 0. This is due to the nature of floating-point arithmetic. The probability of getting a perfect round is thus 1/65536 for the first round and 109/65536 for the other three rounds, for an overall probability of (1)*(109)^3 / (65536)^4, or (109^3) / (2^64), or about 7.02e-14, or about 1 in 14 billion.
 
==Worst possible RNG==
 
For the rounds other than the first, there are only 2 initial random numbers (0-65535) that result in the maximum number of frames (1500), which are 65534-65535. For the first round, there is again only 1 initial random number that results in the maximum number of frames (780), which is 65535. The probability of getting the worst possible round is thus 1/65536 for the first round and 2/65536 for the other three rounds, for an overall probability of (1)*(2)^3 / (65536)^4, or 1 / (2^61), or about 4.34e-19, or about 1 in 2.3 quintillion.
 
==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.
 
For example, 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.


* It's possible to get the ice beam before this point. One shot is all it takes to end each round but that can be easily accomplished by missiles.
* The weak point is immune to plasma beam.
* It's possible to get the hidden item past the morph ball tunnel while the fight is on-going if you already have bombs or power bombs.
[[Category:Boss]]
[[Category:Boss]]
[[Category:Creature]]
[[Category:Creature]]

Revision as of 01:50, 19 October 2021

The Incinerator Drone (I-Drone) is a miniboss in the Burn Dome in Chozo Ruins. It guards the Morph Ball Bomb.

The Incinerator Drone must be damaged sufficiently 4 times before it is destroyed. It can only be damaged when its weak point is exposed. Where the weak point appears is not random. The weak spot is exposed either facing North to South or East to West room and alternates every other round starting with facing the East to West. There is a standable ledge around Incinerator Drone right in front of its top. In standing here, you can't get hit by the flames and can spawn kill the War Wasps. This lets you quickly shoot the weak spot, essentially for free. There are 4 rounds to the fight. The amount of time it takes to expose its weak point is random each time, but there are limits. After defeating Incinerator Drone you will fall into Morph Ball Bomb.

During the Fight

How the RNG Works

The round time it takes between 8 and 13 seconds (480-780 frames), and the remaining times it takes 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).

This is how the Random Number Generation works for this fight:

1. A random unsigned 16-bit integer (between 0 and 65535) is generated. 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. 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. 4. Every frame, 1/60 is subtracted from the timer. 5. When the timer hits zero, the weak point becomes exposed. 6. The process is repeated until the I-Drone has no more hitpoints.

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.

Best possible RNG

For the rounds other than the first, the there are 109 initial random numbers (0-65535) that result in the minimum number of frames (900), which are 0-128. For the first round, however, it turns out that there is only 1 initial random number that results in the minimum number of frames (480), which is 0. This is due to the nature of floating-point arithmetic. The probability of getting a perfect round is thus 1/65536 for the first round and 109/65536 for the other three rounds, for an overall probability of (1)*(109)^3 / (65536)^4, or (109^3) / (2^64), or about 7.02e-14, or about 1 in 14 billion.

Worst possible RNG

For the rounds other than the first, there are only 2 initial random numbers (0-65535) that result in the maximum number of frames (1500), which are 65534-65535. For the first round, there is again only 1 initial random number that results in the maximum number of frames (780), which is 65535. The probability of getting the worst possible round is thus 1/65536 for the first round and 2/65536 for the other three rounds, for an overall probability of (1)*(2)^3 / (65536)^4, or 1 / (2^61), or about 4.34e-19, or about 1 in 2.3 quintillion.

Everything in between

This 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.

For example, 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.