summaryrefslogtreecommitdiff
path: root/engine/tempmon.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-02-25 20:39:54 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2018-02-25 20:39:54 -0500
commit335c2699f0b965be90c13bd3613b1df49f32af8b (patch)
tree7738a0c52a558fceec0d7977843d5dede30ddae7 /engine/tempmon.asm
parent10173f2a6293542f8976cc5dccc9d2080a52caa7 (diff)
parentf44f306cfd4b438d0ba2f56b61be4b118ef3274b (diff)
Merge branch 'master' of https://github.com/pret/pokecrystal
# Conflicts: # constants/map_constants.asm # constants/wram_constants.asm # data/radio/oaks_pkmn_talk_routes.asm # data/radio/pnp_hidden_places.asm # engine/battle/core.asm # engine/breeding.asm # engine/phone/phone_scripts.asm # engine/radio.asm # maps/BattleTower1F.asm # maps/OlivineLighthouse2F.asm # maps/OlivineLighthouse6F.asm # maps/PokemonFanClub.asm # maps/RadioTower1F.asm # maps/RadioTower2F.asm # maps/Route30BerryHouse.asm # maps/Route34IlexForestGate.asm # maps/Route36NationalParkGate.asm # maps/RuinsOfAlphKabutoChamber.asm # maps/RuinsOfAlphResearchCenter.asm # maps/VermilionPort.asm # maps/VictoryRoad.asm
Diffstat (limited to 'engine/tempmon.asm')
-rw-r--r--engine/tempmon.asm20
1 files changed, 10 insertions, 10 deletions
diff --git a/engine/tempmon.asm b/engine/tempmon.asm
index 03bec3755..723bfb1dd 100644
--- a/engine/tempmon.asm
+++ b/engine/tempmon.asm
@@ -1,10 +1,10 @@
-CopyPkmnToTempMon: ; 5084a
-; gets the BaseData of a Pkmn
-; and copys the PkmnStructure to wTempMon
+CopyMonToTempMon: ; 5084a
+; gets the BaseData of a mon
+; and copies the party_struct to wTempMon
ld a, [wCurPartyMon]
ld e, a
- call GetPkmnSpecies
+ call GetMonSpecies
ld a, [wCurPartySpecies]
ld [wCurSpecies], a
call GetBaseData
@@ -32,7 +32,7 @@ CopyPkmnToTempMon: ; 5084a
.done
ret
-CalcwBufferMonStats: ; 5088b
+CalcBufferMonStats: ; 5088b
ld bc, wBufferMon
jr _TempMonStatsCalculation
@@ -50,8 +50,8 @@ _TempMonStatsCalculation: ; 50893
ld hl, MON_STAT_EXP - 1
add hl, bc
push bc
- ld b, $1
- predef CalcPkmnStats
+ ld b, TRUE
+ predef CalcMonStats
pop bc
ld hl, MON_HP
add hl, bc
@@ -82,9 +82,9 @@ _TempMonStatsCalculation: ; 50893
ld [hl], a
ret
-GetPkmnSpecies: ; 508d5
-; [wMonType] has the type of the Pkmn
-; e = Nr. of Pkmn (i.e. [wCurPartyMon])
+GetMonSpecies: ; 508d5
+; [wMonType] has the type of the mon
+; e = Nr. of mon (i.e. [wCurPartyMon])
ld a, [wMonType]
and a ; PARTYMON