summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2015-07-18 23:45:39 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2015-07-18 23:45:39 -0400
commit60cd04b02300c288a01a2f78a44cb39cbe6861d1 (patch)
treeef5bb2bd660a2020864c909fb5dda73f027a9e7c /macros
parente674869018ffe8f9be2351b2b569eb7300910e6a (diff)
Trainer data structure and field move functions
Trainer data in map scripts is now a macro-defined structure. Field move functions in main.asm are now nearly completely annotated, with local references. Trailing white space deleted.
Diffstat (limited to 'macros')
-rw-r--r--macros/movement.asm18
-rw-r--r--macros/trainer.asm7
2 files changed, 23 insertions, 2 deletions
diff --git a/macros/movement.asm b/macros/movement.asm
index 71eb01339..a647e4176 100644
--- a/macros/movement.asm
+++ b/macros/movement.asm
@@ -292,7 +292,11 @@ fix_facing: macro
db movement_fix_facing ; $3b
endm
-__enum__ = $3d
+ enum movement_return_dig
+return_dig: macro
+ db movement_return_dig
+ db \1
+ endm
enum movement_hide_person
hide_person: macro
@@ -351,7 +355,17 @@ step_wait5: macro
db movement_step_wait5 ; $4f
endm
-__enum__ = $53
+__enum__ = $51
+
+ enum movement_fish_got_bite
+fish_got_bite: macro
+ db movement_fish_got_bite
+ endm
+
+ enum movement_fish_got_bite_2
+fish_got_bite_2: macro
+ db movement_fish_got_bite_2
+ endm
enum movement_hide_emote
hide_emote: macro
diff --git a/macros/trainer.asm b/macros/trainer.asm
index 610de1c13..b7c8ad803 100644
--- a/macros/trainer.asm
+++ b/macros/trainer.asm
@@ -2,3 +2,10 @@ trainerclass: MACRO
enum \1
const_value = 1
ENDM
+
+trainer: MACRO
+ ; flag, group, id, seen text, win text, lost text, talk-again text
+ dw \1
+ db \2, \3
+ dw \4, \5, \6, \7
+ENDM