Permalink
Browse files

Adding Leafeon test

An example to show adding a new Pokemon in pokered
  • Loading branch information...
dannye committed Aug 8, 2016
1 parent 032f961 commit c7ce0a95184784f029779426611324ff84f2ef12
@@ -151,5 +151,6 @@ const_value = 1
const DEX_DRAGONITE ; 149
const DEX_MEWTWO ; 150
const DEX_MEW ; 151
const DEX_LEAFEON ; 152

NUM_POKEMON EQU 151
NUM_POKEMON EQU 152
@@ -30,7 +30,7 @@ const_value = 1
const BLASTOISE ; $1C
const PINSIR ; $1D
const TANGELA ; $1E
const MISSINGNO_1F ; $1F
const LEAFEON ; $1F
const MISSINGNO_20 ; $20
const GROWLITHE ; $21
const ONIX ; $22
@@ -0,0 +1,28 @@
db DEX_LEAFEON ; pokedex id
db 130 ; base hp
db 65 ; base attack
db 60 ; base defense
db 65 ; base speed
db 110 ; base special
db GRASS ; species type 1
db GRASS ; species type 2
db 45 ; catch rate
db 196 ; base exp yield
INCBIN "pic/bmon/leafeon.pic",0,1 ; 77, sprite dimensions
dw LeafeonPicFront
dw LeafeonPicBack
; attacks known at lvl 0
db TACKLE
db SAND_ATTACK
db QUICK_ATTACK
db RAZOR_LEAF
db 0 ; growth rate
; learnset
tmlearn 3,6,8
tmlearn 9,10,15
tmlearn 20,21,22
tmlearn 31,32
tmlearn 33,34
tmlearn 44
tmlearn 50,51
db 0 ; padding
@@ -148,3 +148,5 @@ INCLUDE "data/baseStats/dratini.asm"
INCLUDE "data/baseStats/dragonair.asm"
INCLUDE "data/baseStats/dragonite.asm"
INCLUDE "data/baseStats/mewtwo.asm"
INCLUDE "data/baseStats/mew.asm"
INCLUDE "data/baseStats/leafeon.asm"
@@ -30,7 +30,7 @@ CryData:
db $13, $00, $80; Blastoise
db $14, $00, $80; Pinsir
db $12, $00, $80; Tangela
db $00, $00, $00; MissingNo.
db $1A, $AA, $FF; Leafeon

This comment has been minimized.

@nitrodragon

nitrodragon Sep 28, 2017

What are the 3 hexadecimal values for?

This comment has been minimized.

@dannye

dannye Sep 28, 2017

Member

The first is the base cry ID (from $00 to $25), the second is the pitch modifier, the third is the length modifier.
I haven't ever dug entirely deeply into how the specifics of these modifiers work.

This comment has been minimized.

@nitrodragon

nitrodragon Sep 28, 2017

Sweet, that was my initial guess—wanted to make sure.

db $00, $00, $00; MissingNo.
db $1F, $20, $40; Growlithe
db $17, $FF, $C0; Onix
@@ -29,7 +29,7 @@ EvosMovesPointerTable:
dw Mon009_EvosMoves
dw Mon127_EvosMoves
dw Mon114_EvosMoves
dw Mon152_EvosMoves ;MissingNo
dw Mon152_EvosMoves
dw Mon153_EvosMoves ;MissingNo
dw Mon058_EvosMoves
dw Mon095_EvosMoves
@@ -566,10 +566,17 @@ Mon114_EvosMoves:
db 0

Mon152_EvosMoves:
;MISSINGNO
;LEAFEON
;Evolutions
db 0
;Learnset
db 7,LEECH_SEED
db 13,VINE_WHIP
db 22,POISONPOWDER
db 30,RAZOR_LEAF
db 43,GROWTH
db 55,SLEEP_POWDER
db 65,SOLARBEAM
db 0

Mon153_EvosMoves:
@@ -1341,6 +1348,7 @@ Mon040_EvosMoves:
Mon133_EvosMoves:
;EEVEE
;Evolutions
db EV_ITEM,LEAF_STONE,1,LEAFEON
db EV_ITEM,FIRE_STONE,1,FLAREON
db EV_ITEM,THUNDER_STONE,1,JOLTEON
db EV_ITEM,WATER_STONE,1,VAPOREON
@@ -151,3 +151,4 @@ MonsterPalettes:
db PAL_BROWNMON ; DRAGONITE
db PAL_MEWMON ; MEWTWO
db PAL_MEWMON ; MEW
db PAL_GREENMON ; LEAFEON
@@ -74,4 +74,4 @@ MonPartyData:
dn SPRITE_BIRD_M, SPRITE_BIRD_M ;Zapdos/Moltres
dn SPRITE_SNAKE, SPRITE_SNAKE ;Dratini/Dragonair
dn SPRITE_SNAKE, SPRITE_MON ;Dragonite/Mewtwo
dn SPRITE_MON, 0 ;Mew/Padding
dn SPRITE_MON, SPRITE_QUADRUPED ;Mew/Leafeon
@@ -29,7 +29,7 @@ PokedexEntryPointers:
dw BlastoiseDexEntry
dw PinsirDexEntry
dw TangelaDexEntry
dw MissingNoDexEntry
dw LeafeonDexEntry
dw MissingNoDexEntry
dw GrowlitheDexEntry
dw OnixDexEntry
@@ -405,6 +405,13 @@ TangelaDexEntry:
TX_FAR _TangelaDexEntry
db "@"

LeafeonDexEntry:
db "LEAF@"
db 3,3
dw 640
TX_FAR _LeafeonDexEntry
db "@"

GrowlitheDexEntry:
db "PUPPY@"
db 2,4
@@ -29,7 +29,7 @@ PokedexOrder:
db DEX_BLASTOISE
db DEX_PINSIR
db DEX_TANGELA
db 0 ; MISSINGNO.
db DEX_LEAFEON
db 0 ; MISSINGNO.
db DEX_GROWLITHE
db DEX_ONIX
@@ -736,6 +736,10 @@ UncompressMonSprite::
ld a,BANK(MewPicFront)
jr z,.GotBank
ld a,b
cp LEAFEON
ld a,BANK(LeafeonPicFront)
jr z,.GotBank
ld a,b
cp FOSSIL_KABUTOPS
ld a,BANK(FossilKabutopsPic)
jr z,.GotBank
@@ -10,6 +10,7 @@ PICS_2 EQU $A
PICS_3 EQU $B
PICS_4 EQU $C
PICS_5 EQU $D
PICS_6 EQU $2D


INCLUDE "home.asm"
@@ -69,7 +70,6 @@ ResetStatusAndHalveMoneyOnBlackout::

MewPicFront:: INCBIN "pic/bmon/mew.pic"
MewPicBack:: INCBIN "pic/monback/mewb.pic"
INCLUDE "data/baseStats/mew.asm"

INCLUDE "engine/battle/safari_zone.asm"

@@ -6711,3 +6711,9 @@ INCLUDE "engine/evolution.asm"
INCLUDE "engine/overworld/elevator.asm"

INCLUDE "engine/items/tm_prices.asm"


SECTION "Pics 6", ROMX, BANK[PICS_6]

LeafeonPicFront:: INCBIN "pic/bmon/leafeon.pic"
LeafeonPicBack:: INCBIN "pic/monback/leafeonb.pic"
BIN +522 Bytes pic/bmon/leafeon.png
Binary file not shown.
BIN +528 Bytes pic/monback/leafeonb.png
Binary file not shown.
@@ -29,7 +29,7 @@ MonsterNames:
db "BLASTOISE@"
db "PINSIR@@@@"
db "TANGELA@@@"
db "MISSINGNO."
db "LEAFEON@@@"
db "MISSINGNO."
db "GROWLITHE@"
db "ONIX@@@@@@"
@@ -298,6 +298,16 @@ _TangelaDexEntry::
next "shake as it walks"
dex

_LeafeonDexEntry::
text "LEAFEON is always"
next "surrounded by"
next "fresh clean air"

page "because it uses"
next "photosynthesis"
next "just like a plant"
dex

_GrowlitheDexEntry::
text "Very protective"
next "of its territory."

6 comments on commit c7ce0a9

@imnachos

This comment has been minimized.

imnachos replied Sep 27, 2017

Very interesting thing to see, thank you!

@nitrodragon

This comment has been minimized.

nitrodragon replied Sep 27, 2017

Is the project beginning to include characters that weren't in Pokemon Red/Blue/Yellow? If so, there's likely something I could add.

@imnachos

This comment has been minimized.

imnachos replied Sep 27, 2017

I think not, this was just a test. The idea of the project is for it to compile into the very same rom, so no added stuff.

@nitrodragon

This comment has been minimized.

nitrodragon replied Sep 27, 2017

Yeah, that's what I thought—still really helps for understanding the code. Now I can fork this and add Quilava to my own ROM. It's the only thing Red/Blue/Yellow needs to be perfect.

@dannye

This comment has been minimized.

Member

dannye replied Sep 27, 2017

Right, this was just made as a sample to use as reference. This way, when anyone is making a mod they can refer to this to make sure they have not missed a necessary step.

@nitrodragon

This comment has been minimized.

nitrodragon replied Sep 28, 2017

@dannye Figured as much. Super helpful—thanks a ton. Are there more example commits for things like adding moves, etc.?

Please sign in to comment.