summaryrefslogtreecommitdiff
path: root/data-de/field_move_scripts.inc
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-06 20:57:36 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-06 20:57:36 -0500
commit86f0291f63ff6bc580476dae3c00fc4d6d7b15da (patch)
tree37d03c82f0b43a4a0b856610c5b36fe96dc3ebed /data-de/field_move_scripts.inc
parentdeac7fd3706ea9de855330881e2555a8c70d72f3 (diff)
parent680d3fd7b980578024226eccffe2e01072826227 (diff)
Merge branch 'master' of https://github.com/pret/pokeruby
Diffstat (limited to 'data-de/field_move_scripts.inc')
-rw-r--r--data-de/field_move_scripts.inc12
1 files changed, 4 insertions, 8 deletions
diff --git a/data-de/field_move_scripts.inc b/data-de/field_move_scripts.inc
index 91f6ca620..86a4d1b24 100644
--- a/data-de/field_move_scripts.inc
+++ b/data-de/field_move_scripts.inc
@@ -1,7 +1,6 @@
S_CuttableTree:: @ 81B0DCC
lockall
- checkflag FLAG_BADGE01_GET
- goto_if 0, CannotUseCut
+ goto_if_unset FLAG_BADGE01_GET, CannotUseCut
checkpartymove MOVE_CUT
compare RESULT, 6
goto_if_eq CannotUseCut
@@ -61,8 +60,7 @@ CannotUseCutText: @ 81B0E8E
S_BreakableRock:: @ 81B0EB7
lockall
- checkflag FLAG_BADGE03_GET
- goto_if 0, CannotUseRockSmash
+ goto_if_unset FLAG_BADGE03_GET, CannotUseRockSmash
checkpartymove MOVE_ROCK_SMASH
compare RESULT, 6
goto_if_eq CannotUseRockSmash
@@ -128,10 +126,8 @@ CannotUseRockSmashText: @ 81B0F90
S_PushableBoulder:: @ 81B0FCB
lockall
- checkflag FLAG_BADGE04_GET
- goto_if 0, CannotUseStrength
- checkflag FLAG_SYS_USE_STRENGTH
- goto_if_eq AlreadyUsedStrength
+ goto_if_unset FLAG_BADGE04_GET, CannotUseStrength
+ goto_if_set FLAG_SYS_USE_STRENGTH, AlreadyUsedStrength
checkpartymove 70
compare RESULT, 6
goto_if_eq CannotUseStrength