mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
Merge pull request #1601 from GriffinRichards/fix-decor-flag
Fix FLAG_DECORATION_0 name
This commit is contained in:
commit
69759b2d12
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user