summaryrefslogtreecommitdiff
path: root/maps/AzaleaGym.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/AzaleaGym.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/AzaleaGym.asm')
-rw-r--r--maps/AzaleaGym.asm90
1 files changed, 5 insertions, 85 deletions
diff --git a/maps/AzaleaGym.asm b/maps/AzaleaGym.asm
index f1f78ba9a..88a00d7dc 100644
--- a/maps/AzaleaGym.asm
+++ b/maps/AzaleaGym.asm
@@ -61,23 +61,7 @@ AzaleaGymTriggerRockets:
jumpstd radiotowerrockets
TrainerTwinsAmyandmay1:
- ; bit/flag number
- dw EVENT_BEAT_TWINS_AMY_AND_MAY
-
- ; trainer group && trainer id
- db TWINS, AMYANDMAY1
-
- ; text when seen
- dw TwinsAmyandmay1SeenText
-
- ; text when trainer beaten
- dw TwinsAmyandmay1BeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw TwinsAmyandmay1Script
+ trainer EVENT_BEAT_TWINS_AMY_AND_MAY, TWINS, AMYANDMAY1, TwinsAmyandmay1SeenText, TwinsAmyandmay1BeatenText, $0000, TwinsAmyandmay1Script
TwinsAmyandmay1Script:
talkaftercancel
@@ -88,23 +72,7 @@ TwinsAmyandmay1Script:
end
TrainerTwinsAmyandmay2:
- ; bit/flag number
- dw EVENT_BEAT_TWINS_AMY_AND_MAY
-
- ; trainer group && trainer id
- db TWINS, AMYANDMAY2
-
- ; text when seen
- dw TwinsAmyandmay2SeenText
-
- ; text when trainer beaten
- dw TwinsAmyandmay2BeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw TwinsAmyandmay2Script
+ trainer EVENT_BEAT_TWINS_AMY_AND_MAY, TWINS, AMYANDMAY2, TwinsAmyandmay2SeenText, TwinsAmyandmay2BeatenText, $0000, TwinsAmyandmay2Script
TwinsAmyandmay2Script:
talkaftercancel
@@ -115,23 +83,7 @@ TwinsAmyandmay2Script:
end
TrainerBug_catcherBug_catcher_benny:
- ; bit/flag number
- dw EVENT_BEAT_BUG_CATCHER_BENNY
-
- ; trainer group && trainer id
- db BUG_CATCHER, BUG_CATCHER_BENNY
-
- ; text when seen
- dw Bug_catcherBug_catcher_bennySeenText
-
- ; text when trainer beaten
- dw Bug_catcherBug_catcher_bennyBeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw Bug_catcherBug_catcher_bennyScript
+ trainer EVENT_BEAT_BUG_CATCHER_BENNY, BUG_CATCHER, BUG_CATCHER_BENNY, Bug_catcherBug_catcher_bennySeenText, Bug_catcherBug_catcher_bennyBeatenText, $0000, Bug_catcherBug_catcher_bennyScript
Bug_catcherBug_catcher_bennyScript:
talkaftercancel
@@ -142,23 +94,7 @@ Bug_catcherBug_catcher_bennyScript:
end
TrainerBug_catcherAl:
- ; bit/flag number
- dw EVENT_BEAT_BUG_CATCHER_AL
-
- ; trainer group && trainer id
- db BUG_CATCHER, AL
-
- ; text when seen
- dw Bug_catcherAlSeenText
-
- ; text when trainer beaten
- dw Bug_catcherAlBeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw Bug_catcherAlScript
+ trainer EVENT_BEAT_BUG_CATCHER_AL, BUG_CATCHER, AL, Bug_catcherAlSeenText, Bug_catcherAlBeatenText, $0000, Bug_catcherAlScript
Bug_catcherAlScript:
talkaftercancel
@@ -169,23 +105,7 @@ Bug_catcherAlScript:
end
TrainerBug_catcherJosh:
- ; bit/flag number
- dw EVENT_BEAT_BUG_CATCHER_JOSH
-
- ; trainer group && trainer id
- db BUG_CATCHER, JOSH
-
- ; text when seen
- dw Bug_catcherJoshSeenText
-
- ; text when trainer beaten
- dw Bug_catcherJoshBeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw Bug_catcherJoshScript
+ trainer EVENT_BEAT_BUG_CATCHER_JOSH, BUG_CATCHER, JOSH, Bug_catcherJoshSeenText, Bug_catcherJoshBeatenText, $0000, Bug_catcherJoshScript
Bug_catcherJoshScript:
talkaftercancel