Random Number Generation

From Kirby Speedrunning Wiki
Revision as of 19:40, 15 August 2023 by Nippo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Small Enemy RNG

Smirror

Spawning

When a Smirror enemy first spawns, it will advance RNG to check if it should immediately start attacking.

1.)

  • Skip first number (does nothing)

2.)

  • 128 < RNG < 191: Attack first, do not proceed to step 3.
  • Else: Continue to step 3

3.) Calculate how far Smirror walks (higher value = farther distance)

Defeated

When a Smirror enemy is defeated, it has a chance of teleporting away. This process uses a single random number.

  • 64 < RNG < 95, 128 < RNG < 159: Teleport
  • Else: Do not teleport (enemy is defeated)