summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2015-07-26 23:23:05 -0500
committerdannye <corrnondacqb@yahoo.com>2015-07-26 23:23:05 -0500
commitd7c5c8cf22c857830aae4da285c91e5e58c2cc02 (patch)
treee68f0dda79eda3f9bfe8aa69297cd58cc077e14a /main.asm
parent93255d6d17fbb3702a0f8670d7ecc2ed627af2a7 (diff)
parentbbb86671eaac735fe6ef57da01ef79fd16953238 (diff)
Merge branch 'master' of https://github.com/xCrystal/pokered
Diffstat (limited to 'main.asm')
-rwxr-xr-xmain.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.asm b/main.asm
index df59564d..c8cb3b63 100755
--- a/main.asm
+++ b/main.asm
@@ -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