summaryrefslogtreecommitdiff
path: root/arm9/asm/script_pokemon_util.s
diff options
context:
space:
mode:
authorultima-soul <akshayjhanji@hotmail.com>2020-08-26 00:23:47 -0700
committerultima-soul <akshayjhanji@hotmail.com>2020-08-26 00:23:47 -0700
commitac696c3c3921ad89bf0e98043f9e03a25af9094e (patch)
treed7dec04dd1ff67c9dfe688f1d947966d6f44d636 /arm9/asm/script_pokemon_util.s
parent49e32814a3d7ba8a8a7e441a53d1a1c0ccd1f3fe (diff)
Decompile script_pokemon_util through GiveMon and scrcmd_18 through ScrCmd_givemon.
Diffstat (limited to 'arm9/asm/script_pokemon_util.s')
-rw-r--r--arm9/asm/script_pokemon_util.s83
1 files changed, 0 insertions, 83 deletions
diff --git a/arm9/asm/script_pokemon_util.s b/arm9/asm/script_pokemon_util.s
index 49ac1fa6..90891e3f 100644
--- a/arm9/asm/script_pokemon_util.s
+++ b/arm9/asm/script_pokemon_util.s
@@ -3,89 +3,6 @@
.text
- thumb_func_start MonNotFaintedOrEgg
-MonNotFaintedOrEgg: ; 0x0204A01C
- push {r4, lr}
- mov r1, #0xa2
- mov r2, #0x0
- add r4, r0, #0x0
- bl GetMonData
- cmp r0, #0x0
- bne _0204A030
- mov r0, #0x0
- pop {r4, pc}
-_0204A030:
- add r0, r4, #0x0
- mov r1, #0x4c
- mov r2, #0x0
- bl GetMonData
- cmp r0, #0x0
- bne _0204A042
- mov r0, #0x1
- pop {r4, pc}
-_0204A042:
- mov r0, #0x0
- pop {r4, pc}
- .balign 4
-
- thumb_func_start GiveMon
-GiveMon: ; 0x0204A048
- push {r3-r7, lr}
- sub sp, #0x20
- add r6, r1, #0x0
- add r5, r0, #0x0
- add r0, r6, #0x0
- add r7, r2, #0x0
- str r3, [sp, #0x10]
- bl Sav2_PlayerData_GetProfileAddr
- str r0, [sp, #0x14]
- add r0, r6, #0x0
- bl SavArray_PlayerParty_get
- str r0, [sp, #0x18]
- add r0, r5, #0x0
- bl AllocMonZeroed
- add r4, r0, #0x0
- bl ZeroMonData
- mov r0, #0x0
- str r0, [sp, #0x0]
- str r0, [sp, #0x4]
- str r0, [sp, #0x8]
- str r0, [sp, #0xc]
- ldr r2, [sp, #0x10]
- add r0, r4, #0x0
- add r1, r7, #0x0
- mov r3, #0x20
- bl CreateMon
- ldr r0, [sp, #0x40]
- ldr r1, [sp, #0x14]
- str r0, [sp, #0x0]
- ldr r3, [sp, #0x3c]
- add r0, r4, #0x0
- mov r2, #0x4
- str r5, [sp, #0x4]
- bl FUN_0206A014
- add r0, sp, #0x28
- ldrh r0, [r0, #0x10]
- mov r1, #0x6
- add r2, sp, #0x1c
- str r0, [sp, #0x1c]
- add r0, r4, #0x0
- bl SetMonData
- ldr r0, [sp, #0x18]
- add r1, r4, #0x0
- bl AddMonToParty
- add r5, r0, #0x0
- beq _0204A0BC
- add r0, r6, #0x0
- add r1, r4, #0x0
- bl FUN_0202C144
-_0204A0BC:
- add r0, r4, #0x0
- bl FreeToHeap
- add r0, r5, #0x0
- add sp, #0x20
- pop {r3-r7, pc}
-
thumb_func_start GiveEgg
GiveEgg: ; 0x0204A0C8
push {r4-r7, lr}