Merge pull request #1316 from GriffinRichards/doc-scrcmd
Label remaining script commands, document some scrcmd.c, event_object_lock, trainer_see, berry tree
This commit is contained in:
@@ -37,7 +37,7 @@ void ConfigureAndSetUpOneTrainerBattle(u8 trainerObjEventId, const u8 *trainerSc
|
||||
void ConfigureTwoTrainersBattle(u8 trainerObjEventId, const u8 *trainerScript);
|
||||
void SetUpTwoTrainersBattle(void);
|
||||
bool32 GetTrainerFlagFromScriptPointer(const u8 *data);
|
||||
void SetUpTrainerMovement(void);
|
||||
void SetTrainerFacingDirection(void);
|
||||
u8 GetTrainerBattleMode(void);
|
||||
bool8 GetTrainerFlag(void);
|
||||
bool8 HasTrainerBeenFought(u16 trainerId);
|
||||
@@ -49,7 +49,7 @@ void ShowTrainerIntroSpeech(void);
|
||||
const u8 *BattleSetup_GetScriptAddrAfterBattle(void);
|
||||
const u8 *BattleSetup_GetTrainerPostBattleScript(void);
|
||||
void ShowTrainerCantBattleSpeech(void);
|
||||
void SetUpTrainerEncounterMusic(void);
|
||||
void PlayTrainerEncounterMusic(void);
|
||||
const u8 *GetTrainerALoseText(void);
|
||||
const u8 *GetTrainerBLoseText(void);
|
||||
const u8 *GetTrainerWonSpeech(void);
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef GUARD_BERRY_H
|
||||
#define GUARD_BERRY_H
|
||||
|
||||
#include "constants/berry.h"
|
||||
|
||||
void ClearEnigmaBerries(void);
|
||||
void SetEnigmaBerry(u8 *src);
|
||||
bool32 IsEnigmaBerryValid(void);
|
||||
@@ -24,7 +26,7 @@ void ObjectEventInteractionPlantBerryTree(void);
|
||||
void ObjectEventInteractionPickBerryTree(void);
|
||||
void ObjectEventInteractionRemoveBerryTree(void);
|
||||
bool8 PlayerHasBerries(void);
|
||||
void ResetBerryTreeSparkleFlags(void);
|
||||
void SetBerryTreesSeen(void);
|
||||
|
||||
extern const struct Berry gBerries[];
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ void MovePlayerOnBike(u8 direction, u16 newKeys, u16 heldKeys);
|
||||
void Bike_TryAcroBikeHistoryUpdate(u16 newKeys, u16 heldKeys);
|
||||
bool8 RS_IsRunningDisallowed(u8 tile);
|
||||
bool8 IsBikingDisallowedByPlayer(void);
|
||||
bool8 player_should_look_direction_be_enforced_upon_movement(void);
|
||||
bool8 IsPlayerNotUsingAcroBikeOnBumpySlope(void);
|
||||
void GetOnOffBike(u8 transitionFlags);
|
||||
void BikeClearState(int newDirHistory, int newAbStartHistory);
|
||||
void Bike_UpdateBikeCounterSpeed(u8 counter);
|
||||
|
||||
@@ -39,8 +39,6 @@
|
||||
|
||||
// These are the "abnormal weather events" that are used
|
||||
// to find Kyogre and Groudon.
|
||||
#define ABNORMAL_WEATHER_LOCATIONS (MARINE_CAVE_LOCATIONS + TERRA_CAVE_LOCATIONS)
|
||||
#define ABNORMAL_WEATHER_NONE 0
|
||||
|
||||
// Groudon/Terra Cave locations
|
||||
#define TERRA_CAVE_LOCATIONS_START 1
|
||||
@@ -66,4 +64,7 @@
|
||||
#define ABNORMAL_WEATHER_ROUTE_129_EAST (MARINE_CAVE_LOCATIONS_START + 7)
|
||||
#define MARINE_CAVE_LOCATIONS 8
|
||||
|
||||
#define ABNORMAL_WEATHER_LOCATIONS (MARINE_CAVE_LOCATIONS + TERRA_CAVE_LOCATIONS)
|
||||
#define ABNORMAL_WEATHER_NONE 0
|
||||
|
||||
#endif // GUARD_CONSTANTS_WEATHER_H
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#ifndef GUARD_EVENT_OBJECT_LOCK_H
|
||||
#define GUARD_EVENT_OBJECT_LOCK_H
|
||||
|
||||
bool8 sub_80983C4(void);
|
||||
bool8 IsFreezePlayerFinished(void);
|
||||
void ScriptFreezeObjectEvents(void);
|
||||
bool8 sub_809847C(void);
|
||||
bool8 IsFreezeSelectedObjectAndPlayerFinished(void);
|
||||
void LockSelectedObjectEvent(void);
|
||||
void sub_8098630(void);
|
||||
bool8 sub_8098734(void);
|
||||
void FreezeForApproachingTrainers(void);
|
||||
bool8 IsFreezeObjectAndPlayerFinished(void);
|
||||
void ScriptUnfreezeObjectEvents(void);
|
||||
void UnionRoom_UnlockPlayerAndChatPartner(void);
|
||||
|
||||
|
||||
@@ -106,11 +106,11 @@ void ObjectEventSetGraphicsId(struct ObjectEvent *, u8 graphicsId);
|
||||
void ObjectEventTurn(struct ObjectEvent *, u8);
|
||||
void ObjectEventTurnByLocalIdAndMap(u8, u8, u8, u8);
|
||||
const struct ObjectEventGraphicsInfo *GetObjectEventGraphicsInfo(u8 graphicsId);
|
||||
void npc_by_local_id_and_map_set_field_1_bit_x20(u8, u8, u8, u8);
|
||||
void SetObjectInvisibility(u8, u8, u8, bool8);
|
||||
void FreeAndReserveObjectSpritePalettes(void);
|
||||
void SetObjectEventSpritePosByLocalIdAndMap(u8 localId, u8 mapNum, u8 mapGroup, s16 x, s16 y);
|
||||
void sub_808E7E4(u8, u8, u8);
|
||||
void sub_808E78C(u8, u8, u8, u8);
|
||||
void ResetObjectPriority(u8, u8, u8);
|
||||
void SetObjectPriority(u8, u8, u8, u8);
|
||||
void sub_808E75C(s16, s16);
|
||||
void ObjectEventGetLocalIdAndMap(struct ObjectEvent *objectEvent, void *localId, void *mapNum, void *mapGroup);
|
||||
void ShiftObjectEventCoords(struct ObjectEvent *, s16, s16);
|
||||
@@ -189,7 +189,7 @@ void DestroyExtraMovementTask(u8);
|
||||
void UnfreezeObjectEvents(void);
|
||||
void FreezeObjectEventsExceptOne(u8 objectEventId);
|
||||
void TurnObjectEventSprite(u8, u8);
|
||||
void sub_8098074(u8 var1, u8 var2);
|
||||
void FreezeObjectEventsExceptTwo(u8 objectEventId1, u8 objectEventId2);
|
||||
void FreezeObjectEvents(void);
|
||||
bool8 FreezeObjectEvent(struct ObjectEvent *objectEvent);
|
||||
u8 GetMoveDirectionFastAnimNum(u8);
|
||||
@@ -203,7 +203,7 @@ s16 GetFigure8XOffset(s16 idx);
|
||||
s16 GetFigure8YOffset(s16 idx);
|
||||
void CameraObjectReset2(void);
|
||||
u8 GetObjectEventBerryTreeId(u8 objectEventId);
|
||||
void sub_8092EF0(u8 mapId, u8 mapNumber, u8 mapGroup);
|
||||
void SetBerryTreeJustPicked(u8 mapId, u8 mapNumber, u8 mapGroup);
|
||||
bool8 IsBerryTreeSparkling(u8, u8, u8);
|
||||
|
||||
void MovementType_None(struct Sprite *);
|
||||
@@ -307,11 +307,11 @@ u8 MovementType_WanderLeftAndRight_Step6(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_FaceDirection_Step0(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_FaceDirection_Step1(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_FaceDirection_Step2(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_BerryTreeGrowth_Step0(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_BerryTreeGrowth_Step1(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_BerryTreeGrowth_Step2(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_BerryTreeGrowth_Step3(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_BerryTreeGrowth_Step4(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_BerryTreeGrowth_Normal(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_BerryTreeGrowth_Move(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_BerryTreeGrowth_SparkleStart(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_BerryTreeGrowth_Sparkle(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_BerryTreeGrowth_SparkleEnd(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_FaceDownAndUp_Step0(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_FaceDownAndUp_Step1(struct ObjectEvent *, struct Sprite *);
|
||||
u8 MovementType_FaceDownAndUp_Step2(struct ObjectEvent *, struct Sprite *);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
extern const u8 EventScript_TestSignpostMsg[];
|
||||
extern const u8 EventScript_TryGetTrainerScript[];
|
||||
extern const u8 EventScript_271354[];
|
||||
extern const u8 EventScript_StartTrainerApproach[];
|
||||
extern const u8 EventScript_DoNoIntroTrainerBattle[];
|
||||
extern const u8 EventScript_TryDoDoubleTrainerBattle[];
|
||||
extern const u8 EventScript_TryDoNormalTrainerBattle[];
|
||||
|
||||
@@ -34,7 +34,7 @@ u8 PlayerGetZCoord(void);
|
||||
void SetPlayerAvatarTransitionFlags(u16 a);
|
||||
void sub_808BCE8(void);
|
||||
void InitPlayerAvatar(s16 a, s16 b, u8 c, u8 d);
|
||||
void sub_808B864(void);
|
||||
void PlayerFreeze(void);
|
||||
void sub_808BCF4(void);
|
||||
void SetSpinStartFacingDir(u8);
|
||||
void GetXYCoordsOneStepInFrontOfPlayer(s16 *xPtr, s16 *yPtr);
|
||||
|
||||
@@ -63,7 +63,7 @@ struct BerryTree
|
||||
{
|
||||
u8 berry;
|
||||
u8 stage:7;
|
||||
u8 growthSparkle:1;
|
||||
u8 stopGrowth:1;
|
||||
u16 minutesUntilNextStage;
|
||||
u8 berryYield;
|
||||
u8 regrowthCount:4;
|
||||
|
||||
@@ -17,8 +17,8 @@ extern bool8 gTrainerApproachedPlayer;
|
||||
extern u8 gApproachingTrainerId;
|
||||
|
||||
bool8 CheckForTrainersWantingBattle(void);
|
||||
void sub_80B4578(struct ObjectEvent *var);
|
||||
void EndTrainerApproach(void);
|
||||
void SetHiddenTrainerMovement(struct ObjectEvent *var);
|
||||
void DoTrainerApproach(void);
|
||||
void TryPrepareSecondApproachingTrainer(void);
|
||||
u8 FldEff_ExclamationMarkIcon(void);
|
||||
u8 FldEff_QuestionMarkIcon(void);
|
||||
|
||||
Reference in New Issue
Block a user