diff options
| author | yenatch <yenatch@gmail.com> | 2015-04-09 12:25:29 -0400 |
|---|---|---|
| committer | yenatch <yenatch@gmail.com> | 2015-04-09 12:25:29 -0400 |
| commit | 941d2b9eb8a59b42ea71a08b34b25c06477cf36d (patch) | |
| tree | b304682416ef55ddb763759cab6d03aeb1af5f55 /engine/battle/read_trainer_party.asm | |
| parent | Merge pull request #90 from xCrystal/master (diff) | |
| parent | money won and trainer pic constants (diff) | |
| download | pokeyellow-941d2b9eb8a59b42ea71a08b34b25c06477cf36d.tar.gz pokeyellow-941d2b9eb8a59b42ea71a08b34b25c06477cf36d.tar.xz pokeyellow-941d2b9eb8a59b42ea71a08b34b25c06477cf36d.zip | |
Merge pull request #93 from xCrystal/master
Document some move effects
Diffstat (limited to 'engine/battle/read_trainer_party.asm')
| -rw-r--r-- | engine/battle/read_trainer_party.asm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engine/battle/read_trainer_party.asm b/engine/battle/read_trainer_party.asm index f1e3aaf1..3cdfb5cb 100644 --- a/engine/battle/read_trainer_party.asm +++ b/engine/battle/read_trainer_party.asm @@ -141,9 +141,10 @@ ReadTrainer: ; 39c53 (e:5c53) .GiveStarterMove ld a,b ld [wEnemyMon6Moves + 2],a -.FinishUp ; XXX this needs documenting - xor a ; clear D079-D07B - ld de,wd079 +.FinishUp +; clear wAmountMoneyWon addresses + xor a + ld de,wAmountMoneyWon ld [de],a inc de ld [de],a @@ -152,13 +153,14 @@ ReadTrainer: ; 39c53 (e:5c53) ld a,[W_CURENEMYLVL] ld b,a .LastLoop +; update wAmountMoneyWon addresses (money to win) based on enemy's level ld hl,wd047 - ld c,2 + ld c,2 ; wAmountMoneyWon is a 3-byte number push bc predef AddBCDPredef pop bc inc de inc de dec b - jr nz,.LastLoop + jr nz,.LastLoop ; repeat W_CURENEMYLVL times ret
\ No newline at end of file |
