We just released a Feb. 5 '89 prototype of DuckTales for the NES!
If you'd like to support our preservation efforts (and this wasn't cheap), please consider donating or supporting us on Patreon. Thank you!

Prerelease:Pokémon Red and Blue/Unused Code

From The Cutting Room Floor
< Prerelease:Pokémon Red and Blue
Revision as of 21:30, 3 May 2021 by DarthDub (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a sub-page of Prerelease:Pokémon Red and Blue.

This cactus is UNDER CONSTRUCTION
This article is a work in progress.
...Well, all the articles here are, in a way. But this one moreso, and the article may contain incomplete information and editor's notes.
Notes: Add the rest of the unused code.

Various bits of code could be found within the leaked data, with their corresponding effects documented below.

Overworld Palette

An unused bit of code, which is set by function "SetPal_Overworld" (pret naming). When enabled, and as long as the player is in an area set in Celadon City, the screen will be divided in four vertical sections, each being assigned to display a different palette. While odd at first, this function actually makes sense, given how Celadon City's gym rewards you with the Rainbow Badge. While seemingly working perfectly, this feature was likely scrapped due to it looking a bit too busy.

(Source: Rangi.)

Trainer AI

Within D_ACTION.DMG, Trainer AI code exists for the unused Prof. Oak and Chief trainer classes, as well as the class for the "Jacky" character. The equivalent code for the pokered disassembly as of this writing, revision 5d99572, is as follows:

JackyAI:
    cp 6 percent + 1 ; cp a, $10
    ret nc
    jp AIUseXAttack

OakAI:
    cp 25 percent + 1 ; cp a, $40
    ret nc
    ld a, 5
    call AICheckIfHPBelowFraction
    ret nc
    jp AIUseHyperPotion
    ret

ChiefAI:
    cp 25 percent + 1 ; cp a, $40
    ret nc
    jp AIUseDireHit ; unused in the final game
(Source: Zumi.)