forked from Skeli789/Dynamic-Pokemon-Expansion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
special_inserts.asm
76 lines (57 loc) · 1.41 KB
/
special_inserts.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.text
.align 2
.thumb
.equ EVOS_PER_MON, 16
.equ FINAL_DEX_ENTRY, 898
@;.equ SEEN_DEX_FLAGS, 0x202583C
@;.equ CAUGHT_DEX_FLAGS, (SEEN_DEX_FLAGS + (FINAL_DEX_ENTRY / 8) + 1)
@@Fix Num Evolutions@@
.org 0x4598A, 0xFF
mov r5, #EVOS_PER_MON * 8
mov r3, r12
add r3, #EVOS_PER_MON * 8
@@Fix Egg Hatching Time@@
.org 0x46204, 0xFF
.word gBaseStats + 0x11
.org 0x462A8, 0xFF
.word gBaseStats + 0x11
@@Fix New Game Dex Flags Clear@@
.org 0x549B0, 0xFF
mov r0, r4
mov r8, r8
mov r1, #0x0
mov r2, #(FINAL_DEX_ENTRY / 8) + 1
.org 0x549BC, 0xFF
mov r0, r4
add r0, #(FINAL_DEX_ENTRY / 8) + 1
mov r1, #0x0
mov r2, #(FINAL_DEX_ENTRY / 8) + 1
@;.org 0x549D0, 0xFF
@;.word SEEN_DEX_FLAGS
@@Fix Dex Views@@
.org 0x88EA4, 0xFF @Pokedex Count
.word FINAL_DEX_ENTRY - 1
.org 0x1037D4, 0xFF @Weight View
.word FINAL_DEX_ENTRY - 1
.org 0x103870, 0xFF @Height View
.word FINAL_DEX_ENTRY - 1
.org 0x103920, 0xFF @General
.word FINAL_DEX_ENTRY - 1
@;.org 0x104B10, 0xFF
@;.word SEEN_DEX_FLAGS
@;.org 0x104B5C, 0xFF
@;.word CAUGHT_DEX_FLAGS
@;.org 0x104B94, 0xFF
@;.word SEEN_DEX_FLAGS
@;.org 0x104BB8, 0xFF
@;.word CAUGHT_DEX_FLAGS
.org 0x104C28, 0xFF
.word FINAL_DEX_ENTRY - 1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ Remove Caught Mon Pokedex 151 Limiter
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
.org 0x10682E, 0xFF
mov r8, r8
.org 0x106B80, 0xFF
RemoveCaughtMonPokedex151Limiter:
b RemoveCaughtMonPokedex151Limiter + 0x24 @0x106BA4