projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b03c608
)
defs: Added battle record struct
author
Lukas Krickl
<lukas@krickl.dev>
Wed, 13 Aug 2025 16:23:10 +0000
(18:23 +0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Wed, 13 Aug 2025 16:23:10 +0000
(18:23 +0200)
src/defs.s
patch
|
blob
|
history
src/wram.s
patch
|
blob
|
history
diff --git
a/src/defs.s
b/src/defs.s
index d36597da1573b12d9ae4590639bb794a916c6b32..94993d546fa4503727c9f9060ded633622a529be 100644
(file)
--- a/
src/defs.s
+++ b/
src/defs.s
@@
-341,6
+341,14
@@
.de obja_timer, 1
.de obja_size, 0
+#define BR_MAX 4
+
+ ; battle record
+.se 0
+.de br_act_ptr, 2
+.de br_size, 0
+
+
; special text commands
; consumes the command
diff --git
a/src/wram.s
b/src/wram.s
index d76153257012e7b4e7ee18e83470f6d226b44edc..0855400da18e99d4df5e5351941e233b7b298645 100644
(file)
--- a/
src/wram.s
+++ b/
src/wram.s
@@
-177,4
+177,6
@@
map_header: .adv 2
act_sg: .adv act_sg_size * UNITS_MAX * FLOOR_MAP_COUNT
act_sg_end:
+battle_records: .adv br_size * BR_MAX
+
state_end: