More quest log documentation amid other stuff
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@
|
||||
#define B_ACTION_RUN 3
|
||||
#define B_ACTION_SAFARI_WATCH_CAREFULLY 4
|
||||
#define B_ACTION_SAFARI_BALL 5
|
||||
#define B_ACTION_SAFARI_POKEBLOCK 6
|
||||
#define B_ACTION_SAFARI_BAIT 6
|
||||
#define B_ACTION_SAFARI_GO_NEAR 7
|
||||
#define B_ACTION_SAFARI_RUN 8
|
||||
#define B_ACTION_OLDMAN_THROW 9
|
||||
|
||||
@@ -276,7 +276,7 @@
|
||||
#define ANIM_TAG_GREEN_SPIKE (ANIM_SPRITES_START + 266)
|
||||
#define ANIM_TAG_WHITE_CIRCLE_OF_LIGHT (ANIM_SPRITES_START + 267)
|
||||
#define ANIM_TAG_GLOWY_BLUE_ORB (ANIM_SPRITES_START + 268)
|
||||
#define ANIM_TAG_POKEBLOCK (ANIM_SPRITES_START + 269)
|
||||
#define ANIM_TAG_SAFARI_BAIT (ANIM_SPRITES_START + 269)
|
||||
#define ANIM_TAG_WHITE_FEATHER (ANIM_SPRITES_START + 270)
|
||||
#define ANIM_TAG_SPARKLE_6 (ANIM_SPRITES_START + 271)
|
||||
#define ANIM_TAG_SPLASH (ANIM_SPRITES_START + 272)
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
#define MB_OCEAN_WATER 0x15
|
||||
#define MB_PUDDLE 0x16
|
||||
#define MB_SHALLOW_WATER 0x17
|
||||
#define MB_19 0x19
|
||||
#define MB_UNDERWATER_BLOCKED_ABOVE 0x19
|
||||
#define MB_1A 0x1A
|
||||
#define MB_1B 0x1B
|
||||
#define MB_STRENGTH_BUTTON 0x20
|
||||
#define MB_SAND 0x21
|
||||
#define MB_22 0x22
|
||||
#define MB_SEAWEED 0x22
|
||||
#define MB_ICE 0x23
|
||||
#define MB_THIN_ICE 0x26
|
||||
#define MB_CRACKED_ICE 0x27
|
||||
@@ -68,14 +68,14 @@
|
||||
#define MB_SOUTH_ARROW_WARP 0x65
|
||||
#define MB_FALL_WARP 0x66
|
||||
#define MB_REGULAR_WARP 0x67
|
||||
#define MB_68 0x68
|
||||
#define MB_LAVARIDGE_1F_WARP 0x68
|
||||
#define MB_WARP_DOOR 0x69
|
||||
#define MB_UP_ESCALATOR 0x6A
|
||||
#define MB_DOWN_ESCALATOR 0x6B
|
||||
#define MB_UNKNOWN_WARP_6C 0x6C
|
||||
#define MB_UNKNOWN_WARP_6D 0x6D
|
||||
#define MB_UNKNOWN_WARP_6E 0x6E
|
||||
#define MB_UNKNOWN_WARP_6F 0x6F
|
||||
#define MB_UP_RIGHT_STAIR_WARP 0x6C
|
||||
#define MB_UP_LEFT_STAIR_WARP 0x6D
|
||||
#define MB_DOWN_RIGHT_STAIR_WARP 0x6E
|
||||
#define MB_DOWN_LEFT_STAIR_WARP 0x6F
|
||||
#define MB_UNION_ROOM_WARP 0x71
|
||||
#define MB_COUNTER 0x80
|
||||
#define MB_BOOKSHELF 0x81
|
||||
|
||||
@@ -2,9 +2,14 @@
|
||||
#define GUARD_CONSTANTS_QUEST_LOG_H
|
||||
|
||||
// TODO: Name and use state constants
|
||||
#define QL_STATE_1 1
|
||||
#define QL_STATE_2 2
|
||||
#define QL_STATE_3 3
|
||||
#define QL_STATE_RECORDING 1
|
||||
#define QL_STATE_PLAYBACK 2
|
||||
#define QL_STATE_PLAYBACK_LAST 3
|
||||
|
||||
#define QL_START_NORMAL 1
|
||||
#define QL_START_WARP 2
|
||||
|
||||
#define QL_IS_PLAYBACK_STATE (gQuestLogState == QL_STATE_PLAYBACK || gQuestLogState == QL_STATE_PLAYBACK_LAST)
|
||||
|
||||
#define QL_EVENT_0 0 // Null
|
||||
#define QL_EVENT_1 1 // Null
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
#include "global.h"
|
||||
|
||||
bool8 sub_8069590(void);
|
||||
bool8 NativeScript_WaitPlayerStopMoving(void);
|
||||
void ScriptFreezeObjectEvents(void);
|
||||
bool8 sub_8069648(void);
|
||||
bool8 NativeScript_WaitPlayerAndTargetNPCStopMoving(void);
|
||||
void LockSelectedObjectEvent(void);
|
||||
void sub_8098630(void);
|
||||
bool8 sub_8098734(void);
|
||||
|
||||
@@ -66,7 +66,7 @@ u8 GetObjectEventIdByXY(s16, s16);
|
||||
void SetObjectEventDirection(struct ObjectEvent *, u8);
|
||||
u8 sub_808D4F4(void);
|
||||
void RemoveObjectEventByLocalIdAndMap(u8 localId, u8 mapNum, u8 mapGroup);
|
||||
u16 sub_805FCD8(u8 localId, u8 mapNum, u8 mapGroup);
|
||||
u16 GetObjectEventFlagByLocalIdAndMap(u8 localId, u8 mapNum, u8 mapGroup);
|
||||
void LoadPlayerObjectReflectionPalette(u16, u8);
|
||||
void LoadSpecialObjectReflectionPalette(u16, u8);
|
||||
void TryMoveObjectEventToMapCoords(u8, u8, u8, s16, s16);
|
||||
|
||||
@@ -26,15 +26,15 @@ extern struct FieldInput gInputToStoreInQuestLogMaybe;
|
||||
void RestartWildEncounterImmunitySteps(void);
|
||||
void ClearPoisonStepCounter(void);
|
||||
int SetCableClubWarp(void);
|
||||
void sub_806DE28(struct ObjectEvent *);
|
||||
void HandleBoulderFallThroughHole(struct ObjectEvent *);
|
||||
bool8 dive_warp(struct MapPosition * pos, u16 behavior);
|
||||
bool8 sub_806DB84(u16 metatileBehavior, u8 playerDirection);
|
||||
bool8 IsDirectionalStairWarpMetatileBehavior(u16 metatileBehavior, u8 playerDirection);
|
||||
const u8 *GetInteractedLinkPlayerScript(struct MapPosition *position, u8 metatileBehavior, u8 direction);
|
||||
const u8 *GetCoordEventScriptAtMapPosition(struct MapPosition *position);
|
||||
void FieldClearPlayerInput(struct FieldInput *input);
|
||||
int ProcessPlayerFieldInput(struct FieldInput *input);
|
||||
void FieldInput_HandleCancelSignpost(struct FieldInput * input);
|
||||
void FieldGetPlayerInput(struct FieldInput *input, u16 newKeys, u16 heldKeys);
|
||||
void sub_806DE70(u16 x, u16 y);
|
||||
void HandleBoulderActivateVictoryRoadSwitch(u16 x, u16 y);
|
||||
|
||||
#endif //GUARD_FIELD_CONTROL_AVATAR_H
|
||||
|
||||
@@ -10,7 +10,7 @@ void DoDoorWarp(void);
|
||||
|
||||
void DoFallWarp(void);
|
||||
void DoTeleportWarp(void);
|
||||
void sub_807E500(void);
|
||||
void DoTeleport2Warp(void);
|
||||
void FieldCB_DefaultWarpExit(void);
|
||||
void WarpFadeOutScreen(void);
|
||||
void FieldCB_ContinueScriptHandleMusic(void);
|
||||
@@ -22,7 +22,7 @@ void sub_807DCE4(void);
|
||||
|
||||
bool32 FieldFadeTransitionBackgroundEffectIsFinished(void);
|
||||
void palette_bg_faded_fill_black(void);
|
||||
void sub_807E4A0(u16 metatileBehavior, u16 delay);
|
||||
void DoStairWarp(u16 metatileBehavior, u16 delay);
|
||||
void DoEscalatorWarp(u8 a0);
|
||||
void DoLavaridgeGymB1FWarp(void);
|
||||
void DoLavaridgeGym1FWarp(void);
|
||||
|
||||
@@ -14,7 +14,7 @@ u8 PlayerGetCopyableMovement(void);
|
||||
void MovePlayerNotOnBike(u8 direction, u16 heldKeys);
|
||||
|
||||
void MovementType_Player(struct Sprite * sprite);
|
||||
void sub_805C270(void);
|
||||
void HandleEnforcedLookDirectionOnPlayerStopMoving(void);
|
||||
void StopPlayerAvatar(void);
|
||||
void GetXYCoordsOneStepInFrontOfPlayer(s16 *xPtr, s16 *yPtr);
|
||||
u8 GetPlayerAvatarGraphicsIdByStateId(u8);
|
||||
@@ -22,7 +22,7 @@ void SetPlayerAvatarStateMask(u8 mask);
|
||||
void AlignFishingAnimationFrames(struct Sprite *sprite);
|
||||
void CreateStopSurfingTask_NoMusicChange(u8 direction);
|
||||
void SavePlayerFacingDirectionForTeleport(u8 direction);
|
||||
void SetPlayerAvatarTransitionFlags(u16 a);
|
||||
void SetPlayerAvatarTransitionFlags(u16 flags);
|
||||
bool8 IsPlayerFacingSurfableFishableWater(void);
|
||||
void StartFishing(u8 secondaryId);
|
||||
u8 GetPlayerAvatarObjectId(void);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
void sub_80AF79C(void);
|
||||
void AnimateFlash(u8);
|
||||
void sub_80B0244(void);
|
||||
void sub_807E3EC(void);
|
||||
void FieldCB_SafariZoneRanOutOfBalls(void);
|
||||
void DoOutwardBarnDoorWipe(void);
|
||||
void Task_BarnDoorWipe(u8 taskId);
|
||||
void FieldCB_RushInjuredPokemonToCenter(void);
|
||||
|
||||
+2
-2
@@ -619,7 +619,7 @@ struct QuestLogObjectEvent
|
||||
|
||||
struct QuestLog
|
||||
{
|
||||
/*0x0000*/ u8 unk_000;
|
||||
/*0x0000*/ u8 startType;
|
||||
/*0x0001*/ u8 mapGroup;
|
||||
/*0x0002*/ u8 mapNum;
|
||||
/*0x0003*/ u8 warpId;
|
||||
@@ -632,7 +632,7 @@ struct QuestLog
|
||||
/*0x0148*/ u8 flags[FLAGS_COUNT];
|
||||
/*0x02c8*/ u16 vars[VARS_COUNT];
|
||||
/*0x0468*/ struct QuestLogNPCData npcData[64];
|
||||
/*0x0568*/ u16 unk_568[128];
|
||||
/*0x0568*/ u16 script[128];
|
||||
/*0x0668*/ u16 end[0];
|
||||
};
|
||||
|
||||
|
||||
+2
-2
@@ -3943,7 +3943,7 @@ extern const u32 gBattleAnimSpriteGfx_IcicleSpear[];
|
||||
extern const u32 gBattleAnimSpriteGfx_Hail[];
|
||||
extern const u32 gBattleAnimSpriteGfx_GlowyRedOrb[];
|
||||
extern const u32 gBattleAnimSpriteGfx_GreenSpike[];
|
||||
extern const u32 gBattleAnimSpriteGfx_Pokeblock[];
|
||||
extern const u32 gBattleAnimSpriteGfx_SafariBait[];
|
||||
extern const u32 gBattleAnimSpriteGfx_WhiteFeather[];
|
||||
extern const u32 gBattleAnimSpriteGfx_Sparkle6[];
|
||||
extern const u32 gBattleAnimSpriteGfx_Splash[];
|
||||
@@ -4196,7 +4196,7 @@ extern const u32 gBattleAnimSpritePal_GlowyGreenOrb[];
|
||||
extern const u32 gBattleAnimSpritePal_GreenSpike[];
|
||||
extern const u32 gBattleAnimSpritePal_WhiteCircleOfLight[];
|
||||
extern const u32 gBattleAnimSpritePal_GlowyBlueOrb[];
|
||||
extern const u32 gBattleAnimSpritePal_Pokeblock[];
|
||||
extern const u32 gBattleAnimSpritePal_SafariBait[];
|
||||
extern const u32 gBattleAnimSpritePal_WhiteFeather[];
|
||||
extern const u32 gBattleAnimSpritePal_Sparkle6[];
|
||||
extern const u32 gBattleAnimSpritePal_Splash[];
|
||||
|
||||
@@ -17,11 +17,11 @@ bool8 MetatileBehavior_IsIce(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsWarpDoor(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsWarpDoor_2(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsEscalator(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsUnknownWarp6C(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsUnknownWarp6D(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsUnknownWarp6E(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsUnknownWarp6F(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsUnknownWarp6C_to_6F(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsDirectionalUpRightStairWarp(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsDirectionalUpLeftStairWarp(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsDirectionalDownRightStairWarp(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsDirectionalDownLeftStairWarp(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsDirectionalStairWarp(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsLadder(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsNonAnimDoor(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsDeepSouthWarp(u8 metatileBehavior);
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
#include "field_control_avatar.h"
|
||||
|
||||
extern u8 gQuestLogState;
|
||||
extern u8 gUnknown_3005E88;
|
||||
extern u8 gQuestLogPlaybackState;
|
||||
extern const u16 gUnknown_84566A8[];
|
||||
extern struct FieldInput gQuestLogFieldInput;
|
||||
|
||||
@@ -59,7 +59,7 @@ bool8 sub_8113748(void);
|
||||
void sub_81119C8(void);
|
||||
void sub_8111F14(void);
|
||||
void sub_8110FCC(void);
|
||||
u8 sub_8110AC8(void);
|
||||
u8 GetQuestLogStartType(void);
|
||||
void sub_81113E4(void);
|
||||
void sub_8111438(void);
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#ifndef GUARD_SCRCMD_H
|
||||
#define GUARD_SCRCMD_H
|
||||
|
||||
extern struct ScriptContext * gUnknown_3005070;
|
||||
extern struct ScriptContext * sQuestLogScriptContextPtr;
|
||||
|
||||
#endif //GUARD_SCRCMD_H
|
||||
|
||||
Reference in New Issue
Block a user