diff options
author | xCrystal <rgr.crystal@gmail.com> | 2015-07-24 10:49:33 +0200 |
---|---|---|
committer | xCrystal <rgr.crystal@gmail.com> | 2015-07-24 10:49:33 +0200 |
commit | bbb86671eaac735fe6ef57da01ef79fd16953238 (patch) | |
tree | 1a4d51999c926bd705b151b7953a4fc77092d843 /main.asm | |
parent | c34156c5fb333864c1ae85036ea587c9f615a65a (diff) |
Use more wram labels and other constants
Diffstat (limited to 'main.asm')
-rwxr-xr-x | main.asm | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3691,7 +3691,7 @@ _AddPartyMon: ; f2e5 (3:72e5) inc de jr .copyMonTypesAndMoves .copyEnemyMonData - ld bc, wPartyMon1DVs - wPartyMon1 + ld bc, wEnemyMon1DVs - wEnemyMon1 add hl, bc ld a, [wEnemyMonDVs] ; copy IVs from cur enemy mon ld [hli], a @@ -3762,7 +3762,7 @@ _AddPartyMon: ; f2e5 (3:72e5) ld a, [hExperience + 2] ld [de], a xor a - ld b, $a + ld b, NUM_STATS * 2 .writeEVsLoop ; set all EVs to 0 inc de ld [de], a @@ -3786,7 +3786,7 @@ _AddPartyMon: ; f2e5 (3:72e5) jr .done .calcFreshStats pop hl - ld bc, $10 + ld bc, wPartyMon1HPExp - 1 - wPartyMon1 add hl, bc ld b, $0 call CalcStats ; calculate fresh set of stats @@ -3798,7 +3798,7 @@ LoadMovePPs: ; f473 (3:7473) call GetPredefRegisters ; fallthrough AddPartyMon_WriteMovePP: ; f476 (3:7476) - ld b, $4 + ld b, NUM_MOVES .pploop ld a, [hli] ; read move ID and a |