summaryrefslogtreecommitdiff
path: root/engine/oak_speech.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2016-09-19 14:10:00 -0500
committerdannye <corrnondacqb@yahoo.com>2016-09-20 00:44:17 -0500
commit028a362ebb447626f1a5bcccbc8712decb93e7be (patch)
tree6a1eef4b70b90e71a2e4e6597935aea34a5671f1 /engine/oak_speech.asm
parent032f961ef26a94caf385f6d5ae5823a0066d4d66 (diff)
Give all Pokemon after Oak speechgive-all-mons
Diffstat (limited to 'engine/oak_speech.asm')
-rwxr-xr-xengine/oak_speech.asm46
1 files changed, 46 insertions, 0 deletions
diff --git a/engine/oak_speech.asm b/engine/oak_speech.asm
index 43efecbc..64529433 100755
--- a/engine/oak_speech.asm
+++ b/engine/oak_speech.asm
@@ -150,6 +150,52 @@ OakSpeech:
ld [wUpdateSpritesEnabled],a
ld c,50
call DelayFrames
+
+; Give one of each 151 mons at level 100.
+; Prompts a box change every 19 mons.
+
+ ld de,PokeballTileGraphics
+ ld hl,vChars2 + $780
+ lb bc, BANK(PokeballTileGraphics), $01
+ call CopyVideoData
+
+ ld hl, wPartyCount
+ ld a, [hl]
+ push hl
+ push af
+ ld a, 6
+ ld [hl], a
+
+ ld a, 001
+.loop
+ cp NUM_POKEMON + 1
+ jr nc, .done
+
+ push af
+ ld a, [wNumInBox]
+ cp MONS_PER_BOX - 1
+ jr c, .dont_change_box
+ farcall IncBox
+.dont_change_box
+ pop af
+
+ push af
+ ld [wd11e], a
+ farcall PokedexToIndex
+ ld a, [wd11e]
+ ld b, a
+ ld c, 100
+ call GivePokemon
+ pop af
+
+ inc a
+ jr .loop
+
+.done
+ pop af
+ pop hl
+ ld [hl], a
+
call GBFadeOutToWhite
jp ClearScreen
OakSpeechText1: