Merge pull request #1601 from GriffinRichards/fix-decor-flag

Fix FLAG_DECORATION_0 name
This commit is contained in:
GriffinR 2022-01-16 17:44:58 -05:00 committed by GitHub
commit 69759b2d12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 29 additions and 29 deletions

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -26,7 +26,7 @@
"trainer_type": "TRAINER_TYPE_NONE", "trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0", "trainer_sight_or_berry_tree_id": "0",
"script": "SecretBase_EventScript_RecordMixTrainer", "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0" "flag": "FLAG_HIDE_SECRET_BASE_TRAINER"
}, },
{ {
"graphics_id": "OBJ_EVENT_GFX_VAR_0", "graphics_id": "OBJ_EVENT_GFX_VAR_0",

View File

@ -133,7 +133,7 @@ SecretBase_EventScript_InitSecretBase::
closemessage closemessage
playse SE_EXIT playse SE_EXIT
setvar VAR_INIT_SECRET_BASE, 0 setvar VAR_INIT_SECRET_BASE, 0
setflag FLAG_DECORATION_0 setflag FLAG_HIDE_SECRET_BASE_TRAINER
special SetPlayerSecretBase special SetPlayerSecretBase
special EnterSecretBase special EnterSecretBase
setvar VAR_0x8004, 0 setvar VAR_0x8004, 0
@ -172,14 +172,14 @@ SecretBase_EventScript_Enter::
playse SE_EXIT playse SE_EXIT
special IsCurSecretBaseOwnedByAnotherPlayer special IsCurSecretBaseOwnedByAnotherPlayer
goto_if_eq VAR_RESULT, FALSE, SecretBase_EventScript_EnterPlayersBase goto_if_eq VAR_RESULT, FALSE, SecretBase_EventScript_EnterPlayersBase
clearflag FLAG_DECORATION_0 clearflag FLAG_HIDE_SECRET_BASE_TRAINER
special EnterSecretBase special EnterSecretBase
setvar VAR_SECRET_BASE_INITIALIZED, 0 setvar VAR_SECRET_BASE_INITIALIZED, 0
waitstate waitstate
end end
SecretBase_EventScript_EnterPlayersBase:: SecretBase_EventScript_EnterPlayersBase::
setflag FLAG_DECORATION_0 setflag FLAG_HIDE_SECRET_BASE_TRAINER
special EnterSecretBase special EnterSecretBase
setvar VAR_SECRET_BASE_INITIALIZED, 0 setvar VAR_SECRET_BASE_INITIALIZED, 0
waitstate waitstate

View File

@ -190,7 +190,7 @@
#define FLAG_RECEIVED_TM40 0xAA #define FLAG_RECEIVED_TM40 0xAA
#define FLAG_RECEIVED_TM04 0xAB #define FLAG_RECEIVED_TM04 0xAB
#define FLAG_RECEIVED_TM03 0xAC #define FLAG_RECEIVED_TM03 0xAC
#define FLAG_DECORATION_0 0xAD #define FLAG_HIDE_SECRET_BASE_TRAINER 0xAD
#define FLAG_DECORATION_1 0xAE #define FLAG_DECORATION_1 0xAE
#define FLAG_DECORATION_2 0xAF #define FLAG_DECORATION_2 0xAF
#define FLAG_DECORATION_3 0xB0 #define FLAG_DECORATION_3 0xB0

View File

@ -41,7 +41,7 @@
#define PLACE_DECORATION_SELECTOR_TAG 0xbe5 #define PLACE_DECORATION_SELECTOR_TAG 0xbe5
#define PLACE_DECORATION_PLAYER_TAG 0x008 #define PLACE_DECORATION_PLAYER_TAG 0x008
#define NUM_DECORATION_FLAGS (FLAG_DECORATION_14 - FLAG_DECORATION_0) #define NUM_DECORATION_FLAGS (FLAG_DECORATION_14 - FLAG_DECORATION_1 + 1)
#define tCursorX data[0] #define tCursorX data[0]
#define tCursorY data[1] #define tCursorY data[1]