summaryrefslogtreecommitdiff
path: root/maps/Route6.asm
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 /maps/Route6.asm
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 'maps/Route6.asm')
-rw-r--r--maps/Route6.asm36
1 files changed, 2 insertions, 34 deletions
diff --git a/maps/Route6.asm b/maps/Route6.asm
index e3522e22a..6f3c1bc37 100644
--- a/maps/Route6.asm
+++ b/maps/Route6.asm
@@ -6,23 +6,7 @@ Route6_MapScriptHeader:
db 0
TrainerPokefanmRex:
- ; bit/flag number
- dw EVENT_BEAT_POKEFANM_REX
-
- ; trainer group && trainer id
- db POKEFANM, REX
-
- ; text when seen
- dw PokefanmRexSeenText
-
- ; text when trainer beaten
- dw PokefanmRexBeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw PokefanmRexScript
+ trainer EVENT_BEAT_POKEFANM_REX, POKEFANM, REX, PokefanmRexSeenText, PokefanmRexBeatenText, $0000, PokefanmRexScript
PokefanmRexScript:
talkaftercancel
@@ -33,23 +17,7 @@ PokefanmRexScript:
end
TrainerPokefanmAllan:
- ; bit/flag number
- dw EVENT_BEAT_POKEFANM_ALLAN
-
- ; trainer group && trainer id
- db POKEFANM, ALLAN
-
- ; text when seen
- dw PokefanmAllanSeenText
-
- ; text when trainer beaten
- dw PokefanmAllanBeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw PokefanmAllanScript
+ trainer EVENT_BEAT_POKEFANM_ALLAN, POKEFANM, ALLAN, PokefanmAllanSeenText, PokefanmAllanBeatenText, $0000, PokefanmAllanScript
PokefanmAllanScript:
talkaftercancel