diff options
author | Pokeglitch <pokeglitchx@gmail.com> | 2018-06-17 07:38:57 -0400 |
---|---|---|
committer | Pokeglitch <pokeglitchx@gmail.com> | 2018-06-17 07:38:57 -0400 |
commit | 2cb260953de9bc2f05e7016427b4d8e57c451fab (patch) | |
tree | c094a8e024b4645a3f826866c939ea3f5630db11 /constants/script_constants.asm | |
parent | 0ddae2eac07d890bad3bfe79fa9e59cb9d214040 (diff) |
Added constants, removed TODOs to health.asm
Diffstat (limited to 'constants/script_constants.asm')
-rwxr-xr-x | constants/script_constants.asm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/constants/script_constants.asm b/constants/script_constants.asm index 8045cc4..4a6390e 100755 --- a/constants/script_constants.asm +++ b/constants/script_constants.asm @@ -9,10 +9,14 @@ const SCRIPT_ID_05 ; 05
; Flags
-SCRIPT_FINISHED_FLAG EQU 7
+SCRIPT_FINISHED_F EQU 7
; Masks/Return Values
-SCRIPT_FINISHED_MASK EQU 1 << SCRIPT_FINISHED_FLAG
+SCRIPT_FINISHED_MASK EQU 1 << SCRIPT_FINISHED_F
SCRIPT_SUCCESS EQU $f
SCRIPT_FAIL EQU 0
-SCRIPT_FINISHED EQU $FF
\ No newline at end of file +
+; Some script don't combine the return value with the flag
+; Instead, they load this into the wFieldMoveScriptID, and keep
+; the return value in a
+SCRIPT_FINISHED EQU -1
\ No newline at end of file |