Merge pull request #485 from cbt6/movement
Rename some movement actions and functions
This commit is contained in:
+25
-13
@@ -14,10 +14,10 @@
|
||||
create_movement face_up_fast
|
||||
create_movement face_left_fast
|
||||
create_movement face_right_fast
|
||||
create_movement walk_slowest_down
|
||||
create_movement walk_slowest_up
|
||||
create_movement walk_slowest_left
|
||||
create_movement walk_slowest_right
|
||||
create_movement walk_slower_down
|
||||
create_movement walk_slower_up
|
||||
create_movement walk_slower_left
|
||||
create_movement walk_slower_right
|
||||
create_movement walk_slow_down
|
||||
create_movement walk_slow_up
|
||||
create_movement walk_slow_left
|
||||
@@ -55,10 +55,10 @@
|
||||
create_movement walk_in_place_fastest_up
|
||||
create_movement walk_in_place_fastest_left
|
||||
create_movement walk_in_place_fastest_right
|
||||
create_movement face_down_slow
|
||||
create_movement face_up_slow
|
||||
create_movement face_left_slow
|
||||
create_movement face_right_slow
|
||||
create_movement ride_water_current_down
|
||||
create_movement ride_water_current_up
|
||||
create_movement ride_water_current_lefft
|
||||
create_movement ride_water_current_right
|
||||
create_movement walk_fastest_down
|
||||
create_movement walk_fastest_up
|
||||
create_movement walk_fastest_left
|
||||
@@ -113,12 +113,24 @@
|
||||
create_movement rock_smash_break
|
||||
create_movement cut_tree
|
||||
|
||||
enum_start 0x91
|
||||
create_movement step_91
|
||||
create_movement step_92
|
||||
enum_start 0x94
|
||||
create_movement spin_down
|
||||
create_movement spin_up
|
||||
create_movement spin_left
|
||||
create_movement spin_right
|
||||
|
||||
enum_start 0x96
|
||||
create_movement step_96
|
||||
enum_start 0x9b
|
||||
create_movement walk_slowest_down
|
||||
create_movement walk_slowest_up
|
||||
create_movement walk_slowest_left
|
||||
create_movement walk_slowest_right
|
||||
create_movement shake_head
|
||||
|
||||
enum_start 0xa6
|
||||
create_movement jump_special_with_effect_down
|
||||
create_movement jump_special_with_effect_up
|
||||
create_movement jump_special_with_effect_left
|
||||
create_movement jump_special_with_effect_right
|
||||
|
||||
enum_start 0xfe
|
||||
create_movement step_end
|
||||
|
||||
@@ -115,11 +115,11 @@ BirthIsland_Exterior_EventScript_RanFromDeoxys:: @ 8165348
|
||||
end
|
||||
|
||||
Movement_DeoxysApproach: @ 8165353
|
||||
walk_slowest_down
|
||||
walk_slowest_down
|
||||
walk_slowest_down
|
||||
walk_slowest_down
|
||||
walk_slowest_down
|
||||
walk_slowest_down
|
||||
walk_slowest_down
|
||||
walk_slower_down
|
||||
walk_slower_down
|
||||
walk_slower_down
|
||||
walk_slower_down
|
||||
walk_slower_down
|
||||
walk_slower_down
|
||||
walk_slower_down
|
||||
step_end
|
||||
|
||||
@@ -251,8 +251,8 @@ CinnabarIsland_Movement_BoatArrive:: @ 8167195
|
||||
walk_fast_left
|
||||
walk_fast_left
|
||||
walk_left
|
||||
walk_slowest_left
|
||||
walk_slowest_left
|
||||
walk_slower_left
|
||||
walk_slower_left
|
||||
step_end
|
||||
|
||||
CinnabarIsland_Movement_BillBoardBoat:: @ 816719D
|
||||
|
||||
@@ -170,7 +170,7 @@ FourIsland_PokemonDayCare_Movement_RetrieveMon:: @ 8171B71
|
||||
delay_16
|
||||
delay_16
|
||||
face_up
|
||||
walk_slowest_up
|
||||
walk_slower_up
|
||||
set_invisible
|
||||
delay_16
|
||||
delay_16
|
||||
@@ -179,7 +179,7 @@ FourIsland_PokemonDayCare_Movement_RetrieveMon:: @ 8171B71
|
||||
delay_16
|
||||
face_down
|
||||
set_visible
|
||||
walk_slowest_down
|
||||
walk_slower_down
|
||||
step_end
|
||||
|
||||
@ Unused. Possibly a commented script, or a typo end added to the above Movement script
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
"x": 36,
|
||||
"y": 15,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_WANDER_AROUND_SLOWEST",
|
||||
"movement_type": "MOVEMENT_TYPE_WANDER_AROUND_SLOWER",
|
||||
"movement_range_x": 4,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
#define MOVEMENT_TYPE_VS_SEEKER_4D 0x4D
|
||||
#define MOVEMENT_TYPE_VS_SEEKER_4E 0x4E
|
||||
#define MOVEMENT_TYPE_VS_SEEKER_4F 0x4F
|
||||
#define MOVEMENT_TYPE_WANDER_AROUND_SLOWEST 0x50
|
||||
#define MOVEMENT_TYPE_WANDER_AROUND_SLOWER 0x50
|
||||
#define MOVEMENT_TYPES_COUNT 0x51
|
||||
|
||||
#define MOVEMENT_ACTION_FACE_DOWN 0x0
|
||||
@@ -93,10 +93,10 @@
|
||||
#define MOVEMENT_ACTION_FACE_UP_FAST 0x5
|
||||
#define MOVEMENT_ACTION_FACE_LEFT_FAST 0x6
|
||||
#define MOVEMENT_ACTION_FACE_RIGHT_FAST 0x7
|
||||
#define MOVEMENT_ACTION_WALK_SLOWEST_DOWN 0x8
|
||||
#define MOVEMENT_ACTION_WALK_SLOWEST_UP 0x9
|
||||
#define MOVEMENT_ACTION_WALK_SLOWEST_LEFT 0xA
|
||||
#define MOVEMENT_ACTION_WALK_SLOWEST_RIGHT 0xB
|
||||
#define MOVEMENT_ACTION_WALK_SLOWER_DOWN 0x8
|
||||
#define MOVEMENT_ACTION_WALK_SLOWER_UP 0x9
|
||||
#define MOVEMENT_ACTION_WALK_SLOWER_LEFT 0xA
|
||||
#define MOVEMENT_ACTION_WALK_SLOWER_RIGHT 0xB
|
||||
#define MOVEMENT_ACTION_WALK_SLOW_DOWN 0xC
|
||||
#define MOVEMENT_ACTION_WALK_SLOW_UP 0xD
|
||||
#define MOVEMENT_ACTION_WALK_SLOW_LEFT 0xE
|
||||
@@ -134,10 +134,10 @@
|
||||
#define MOVEMENT_ACTION_WALK_IN_PLACE_FASTEST_UP 0x2E
|
||||
#define MOVEMENT_ACTION_WALK_IN_PLACE_FASTEST_LEFT 0x2F
|
||||
#define MOVEMENT_ACTION_WALK_IN_PLACE_FASTEST_RIGHT 0x30
|
||||
#define MOVEMENT_ACTION_FACE_DOWN_SLOW 0x31
|
||||
#define MOVEMENT_ACTION_FACE_UP_SLOW 0x32
|
||||
#define MOVEMENT_ACTION_FACE_LEFT_SLOW 0x33
|
||||
#define MOVEMENT_ACTION_FACE_RIGHT_SLOW 0x34
|
||||
#define MOVEMENT_ACTION_RIDE_WATER_CURRENT_DOWN 0x31
|
||||
#define MOVEMENT_ACTION_RIDE_WATER_CURRENT_UP 0x32
|
||||
#define MOVEMENT_ACTION_RIDE_WATER_CURRENT_LEFT 0x33
|
||||
#define MOVEMENT_ACTION_RIDE_WATER_CURRENT_RIGHT 0x34
|
||||
#define MOVEMENT_ACTION_WALK_FASTEST_DOWN 0x35
|
||||
#define MOVEMENT_ACTION_WALK_FASTEST_UP 0x36
|
||||
#define MOVEMENT_ACTION_WALK_FASTEST_LEFT 0x37
|
||||
@@ -235,33 +235,29 @@
|
||||
#define MOVEMENT_ACTION_ACRO_WHEELIE_MOVE_UP 0x91
|
||||
#define MOVEMENT_ACTION_ACRO_WHEELIE_MOVE_LEFT 0x92
|
||||
#define MOVEMENT_ACTION_ACRO_WHEELIE_MOVE_RIGHT 0x93
|
||||
#define MOVEMENT_ACTION_ACRO_END_WHEELIE_MOVE_DOWN 0x94
|
||||
#define MOVEMENT_ACTION_ACRO_END_WHEELIE_MOVE_UP 0x95
|
||||
#define MOVEMENT_ACTION_ACRO_END_WHEELIE_MOVE_LEFT 0x96
|
||||
#define MOVEMENT_ACTION_ACRO_END_WHEELIE_MOVE_RIGHT 0x97
|
||||
|
||||
// 98-A3 are unknown
|
||||
#define MOVEMENT_ACTION_0x98 0x98
|
||||
#define MOVEMENT_ACTION_0x99 0x99
|
||||
#define MOVEMENT_ACTION_0x9A 0x9A
|
||||
#define MOVEMENT_ACTION_0x9B 0x9B
|
||||
#define MOVEMENT_ACTION_0x9C 0x9C
|
||||
#define MOVEMENT_ACTION_0x9D 0x9D
|
||||
#define MOVEMENT_ACTION_0x9E 0x9E
|
||||
#define MOVEMENT_ACTION_0x9F 0x9F
|
||||
#define MOVEMENT_ACTION_0xA0 0xA0
|
||||
#define MOVEMENT_ACTION_0xA1 0xA1
|
||||
#define MOVEMENT_ACTION_0xA2 0xA2
|
||||
#define MOVEMENT_ACTION_0xA3 0xA3
|
||||
|
||||
#define MOVEMENT_ACTION_SPIN_DOWN 0x94
|
||||
#define MOVEMENT_ACTION_SPIN_UP 0x95
|
||||
#define MOVEMENT_ACTION_SPIN_LEFT 0x96
|
||||
#define MOVEMENT_ACTION_SPIN_RIGHT 0x97
|
||||
#define MOVEMENT_ACTION_0x98 0x98
|
||||
#define MOVEMENT_ACTION_0x99 0x99
|
||||
#define MOVEMENT_ACTION_0x9A 0x9A
|
||||
#define MOVEMENT_ACTION_WALK_SLOWEST_DOWN 0x9B
|
||||
#define MOVEMENT_ACTION_WALK_SLOWEST_UP 0x9C
|
||||
#define MOVEMENT_ACTION_WALK_SLOWEST_LEFT 0x9D
|
||||
#define MOVEMENT_ACTION_WALK_SLOWEST_RIGHT 0x9E
|
||||
#define MOVEMENT_ACTION_SHAKE_HEAD 0x9F
|
||||
#define MOVEMENT_ACTION_0xA0 0xA0
|
||||
#define MOVEMENT_ACTION_0xA1 0xA1
|
||||
#define MOVEMENT_ACTION_0xA2 0xA2
|
||||
#define MOVEMENT_ACTION_0xA3 0xA3
|
||||
#define MOVEMENT_ACTION_FLY_UP 0xA4
|
||||
#define MOVEMENT_ACTION_FLY_DOWN 0xA5
|
||||
|
||||
// Duplicates of JUMP_SPECIAL?
|
||||
#define MOVEMENT_ACTION_0xA6 0xA6
|
||||
#define MOVEMENT_ACTION_0xA7 0xA7
|
||||
#define MOVEMENT_ACTION_0xA8 0xA8
|
||||
#define MOVEMENT_ACTION_0xA9 0xA9
|
||||
#define MOVEMENT_ACTION_JUMP_SPECIAL_WITH_EFFECT_DOWN 0xA6
|
||||
#define MOVEMENT_ACTION_JUMP_SPECIAL_WITH_EFFECT_UP 0xA7
|
||||
#define MOVEMENT_ACTION_JUMP_SPECIAL_WITH_EFFECT_LEFT 0xA8
|
||||
#define MOVEMENT_ACTION_JUMP_SPECIAL_WITH_EFFECT_RIGHT 0xA9
|
||||
|
||||
#define MOVEMENT_ACTION_STEP_END 0xFE
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ u8 ObjectEventCheckHeldMovementStatus(struct ObjectEvent *objectEvent);
|
||||
u8 GetWalkNormalMovementAction(u32);
|
||||
u8 GetWalkFastMovementAction(u32);
|
||||
u8 GetWalkFastestMovementAction(u32);
|
||||
u8 GetWalkSlowestMovementAction(u32 direction);
|
||||
u8 GetWalkSlowerMovementAction(u32 direction);
|
||||
u8 GetTrainerFacingDirectionMovementType(u8 direction);
|
||||
u8 GetFaceDirectionMovementAction(u32);
|
||||
u8 GetFaceDirectionFastMovementAction(u32);
|
||||
@@ -134,7 +134,7 @@ u8 GetSlideMovementAction(u32);
|
||||
u8 GetJumpInPlaceMovementAction(u32);
|
||||
u8 GetJumpMovementAction(u32);
|
||||
u8 GetJump2MovementAction(u32);
|
||||
bool8 NpcTakeStep(struct Sprite *sprite);
|
||||
bool8 UpdateWalkSlowerAnim(struct Sprite *sprite);
|
||||
void SetJumpSpriteData(struct Sprite *, u8, u8, u8);
|
||||
u8 DoJumpSpriteMovement(struct Sprite *);
|
||||
u8 DoJumpSpecialSpriteMovement(struct Sprite *);
|
||||
@@ -171,16 +171,16 @@ void UpdateObjectEventsForCameraUpdate(s16 x, s16 y);
|
||||
void UpdateObjectEventSpriteSubpriorityAndVisibility(struct Sprite *);
|
||||
void SetMovementDelay(struct Sprite *, s16);
|
||||
bool8 WaitForMovementDelay(struct Sprite *);
|
||||
void oamt_npc_ministep_reset(struct Sprite *, u8, u8);
|
||||
bool8 obj_npc_ministep(struct Sprite *sprite);
|
||||
void SetSpriteDataForNormalStep(struct Sprite *, u8);
|
||||
void SetSpriteDataForNormalStep2(struct Sprite *, u8);
|
||||
void SetSpriteDataForNormalStep(struct Sprite *, u8, u8);
|
||||
bool8 NpcTakeStep(struct Sprite *sprite);
|
||||
void SetWalkSlowerSpriteData(struct Sprite *, u8);
|
||||
void SetWalkSlowestSpriteData(struct Sprite *, u8);
|
||||
bool8 UpdateWalkSlowestAnim(struct Sprite *sprite);
|
||||
void SetWalkSlowSpriteData(struct Sprite *, u8);
|
||||
bool8 UpdateWalkSlowAnim(struct Sprite *sprite);
|
||||
void SetSpriteDataForNormalStep3(struct Sprite *, u8);
|
||||
bool8 sub_8068C18(struct Sprite *sprite);
|
||||
void DoShadowFieldEffect(struct ObjectEvent *);
|
||||
void SetSpriteDataForNormalStep4(struct Sprite *, u8);
|
||||
bool8 sub_8068CB4(struct Sprite *sprite);
|
||||
void SetRunSlowSpriteData(struct Sprite *, u8);
|
||||
bool8 UpdateRunSlowAnim(struct Sprite *sprite);
|
||||
void SetAndStartSpriteAnim(struct Sprite *, u8, u8);
|
||||
bool8 SpriteAnimEnded(struct Sprite *);
|
||||
u8 ObjectEventGetHeldMovementActionId(struct ObjectEvent *objectEvent);
|
||||
@@ -212,7 +212,7 @@ u8 GetJumpInPlaceTurnAroundMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieInPlaceDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroPopWheelieMoveDirectionMovementAction(u32 direction);
|
||||
u8 GetAcroWheelieMoveDirectionMovementAction(u32 direction);
|
||||
u8 sub_80641EC(u32 direction);
|
||||
u8 GetJumpSpecialWithEffectMovementAction(u32 direction);
|
||||
u8 GetFishingBiteDirectionAnimNum(u8 direction);
|
||||
void TrySpawnObjectEvents(s16 cameraX, s16 cameraY);
|
||||
void ResetObjectEvents(void);
|
||||
|
||||
@@ -56,7 +56,7 @@ void PlayerFaceDirection(u8 direction);
|
||||
void PlayerFaceDirectionFast(u8 direction);
|
||||
void PlayerTurnInPlace(u8 direction);
|
||||
void PlayerJumpLedge(u8 direction);
|
||||
void sub_805C260(void);
|
||||
void PlayerShakeHead(void);
|
||||
void player_step(u8 direction, u16 newKeys, u16 heldKeys);
|
||||
bool32 PlayerIsMovingOnRockStairs(u8 direction);
|
||||
void UpdatePlayerAvatarTransitionState(void);
|
||||
|
||||
@@ -471,10 +471,10 @@ bool8 (*const *const gMovementActionFuncs[])(struct ObjectEvent *, struct Sprite
|
||||
[MOVEMENT_ACTION_FACE_UP_FAST] = sMovementActionFuncs_x05,
|
||||
[MOVEMENT_ACTION_FACE_LEFT_FAST] = sMovementActionFuncs_x06,
|
||||
[MOVEMENT_ACTION_FACE_RIGHT_FAST] = sMovementActionFuncs_x07,
|
||||
[MOVEMENT_ACTION_WALK_SLOWEST_DOWN] = sMovementActionFuncs_x08,
|
||||
[MOVEMENT_ACTION_WALK_SLOWEST_UP] = sMovementActionFuncs_x09,
|
||||
[MOVEMENT_ACTION_WALK_SLOWEST_LEFT] = sMovementActionFuncs_x0A,
|
||||
[MOVEMENT_ACTION_WALK_SLOWEST_RIGHT] = sMovementActionFuncs_x0B,
|
||||
[MOVEMENT_ACTION_WALK_SLOWER_DOWN] = sMovementActionFuncs_x08,
|
||||
[MOVEMENT_ACTION_WALK_SLOWER_UP] = sMovementActionFuncs_x09,
|
||||
[MOVEMENT_ACTION_WALK_SLOWER_LEFT] = sMovementActionFuncs_x0A,
|
||||
[MOVEMENT_ACTION_WALK_SLOWER_RIGHT] = sMovementActionFuncs_x0B,
|
||||
[MOVEMENT_ACTION_WALK_SLOW_DOWN] = sMovementActionFuncs_x0C,
|
||||
[MOVEMENT_ACTION_WALK_SLOW_UP] = sMovementActionFuncs_x0D,
|
||||
[MOVEMENT_ACTION_WALK_SLOW_LEFT] = sMovementActionFuncs_x0E,
|
||||
@@ -512,10 +512,10 @@ bool8 (*const *const gMovementActionFuncs[])(struct ObjectEvent *, struct Sprite
|
||||
[MOVEMENT_ACTION_WALK_IN_PLACE_FASTEST_UP] = sMovementActionFuncs_x2E,
|
||||
[MOVEMENT_ACTION_WALK_IN_PLACE_FASTEST_LEFT] = sMovementActionFuncs_x2F,
|
||||
[MOVEMENT_ACTION_WALK_IN_PLACE_FASTEST_RIGHT] = sMovementActionFuncs_x30,
|
||||
[MOVEMENT_ACTION_FACE_DOWN_SLOW] = sMovementActionFuncs_x31,
|
||||
[MOVEMENT_ACTION_FACE_UP_SLOW] = sMovementActionFuncs_x32,
|
||||
[MOVEMENT_ACTION_FACE_LEFT_SLOW] = sMovementActionFuncs_x33,
|
||||
[MOVEMENT_ACTION_FACE_RIGHT_SLOW] = sMovementActionFuncs_x34,
|
||||
[MOVEMENT_ACTION_RIDE_WATER_CURRENT_DOWN] = sMovementActionFuncs_x31,
|
||||
[MOVEMENT_ACTION_RIDE_WATER_CURRENT_UP] = sMovementActionFuncs_x32,
|
||||
[MOVEMENT_ACTION_RIDE_WATER_CURRENT_LEFT] = sMovementActionFuncs_x33,
|
||||
[MOVEMENT_ACTION_RIDE_WATER_CURRENT_RIGHT] = sMovementActionFuncs_x34,
|
||||
[MOVEMENT_ACTION_WALK_FASTEST_DOWN] = sMovementActionFuncs_x35,
|
||||
[MOVEMENT_ACTION_WALK_FASTEST_UP] = sMovementActionFuncs_x36,
|
||||
[MOVEMENT_ACTION_WALK_FASTEST_LEFT] = sMovementActionFuncs_x37,
|
||||
@@ -611,28 +611,28 @@ bool8 (*const *const gMovementActionFuncs[])(struct ObjectEvent *, struct Sprite
|
||||
[MOVEMENT_ACTION_ACRO_WHEELIE_MOVE_UP] = sMovementActionFuncs_x91,
|
||||
[MOVEMENT_ACTION_ACRO_WHEELIE_MOVE_LEFT] = sMovementActionFuncs_x92,
|
||||
[MOVEMENT_ACTION_ACRO_WHEELIE_MOVE_RIGHT] = sMovementActionFuncs_x93,
|
||||
[MOVEMENT_ACTION_ACRO_END_WHEELIE_MOVE_DOWN] = sMovementActionFuncs_x94,
|
||||
[MOVEMENT_ACTION_ACRO_END_WHEELIE_MOVE_UP] = sMovementActionFuncs_x95,
|
||||
[MOVEMENT_ACTION_ACRO_END_WHEELIE_MOVE_LEFT] = sMovementActionFuncs_x96,
|
||||
[MOVEMENT_ACTION_ACRO_END_WHEELIE_MOVE_RIGHT] = sMovementActionFuncs_x97,
|
||||
[MOVEMENT_ACTION_SPIN_DOWN] = sMovementActionFuncs_x94,
|
||||
[MOVEMENT_ACTION_SPIN_UP] = sMovementActionFuncs_x95,
|
||||
[MOVEMENT_ACTION_SPIN_LEFT] = sMovementActionFuncs_x96,
|
||||
[MOVEMENT_ACTION_SPIN_RIGHT] = sMovementActionFuncs_x97,
|
||||
[MOVEMENT_ACTION_0x98] = sMovementActionFuncs_x98,
|
||||
[MOVEMENT_ACTION_0x99] = sMovementActionFuncs_x99,
|
||||
[MOVEMENT_ACTION_0x9A] = sMovementActionFuncs_x9A,
|
||||
[MOVEMENT_ACTION_0x9B] = sMovementActionFuncs_x9B,
|
||||
[MOVEMENT_ACTION_0x9C] = sMovementActionFuncs_x9C,
|
||||
[MOVEMENT_ACTION_0x9D] = sMovementActionFuncs_x9D,
|
||||
[MOVEMENT_ACTION_0x9E] = sMovementActionFuncs_x9E,
|
||||
[MOVEMENT_ACTION_0x9F] = sMovementActionFuncs_x9F,
|
||||
[MOVEMENT_ACTION_WALK_SLOWEST_DOWN] = sMovementActionFuncs_x9B,
|
||||
[MOVEMENT_ACTION_WALK_SLOWEST_UP] = sMovementActionFuncs_x9C,
|
||||
[MOVEMENT_ACTION_WALK_SLOWEST_LEFT] = sMovementActionFuncs_x9D,
|
||||
[MOVEMENT_ACTION_WALK_SLOWEST_RIGHT] = sMovementActionFuncs_x9E,
|
||||
[MOVEMENT_ACTION_SHAKE_HEAD] = sMovementActionFuncs_x9F,
|
||||
[MOVEMENT_ACTION_0xA0] = sMovementActionFuncs_xA0,
|
||||
[MOVEMENT_ACTION_0xA1] = sMovementActionFuncs_xA1,
|
||||
[MOVEMENT_ACTION_0xA2] = sMovementActionFuncs_xA2,
|
||||
[MOVEMENT_ACTION_0xA3] = sMovementActionFuncs_xA3,
|
||||
[MOVEMENT_ACTION_FLY_UP] = sMovementActionFuncs_xA4,
|
||||
[MOVEMENT_ACTION_FLY_DOWN] = sMovementActionFuncs_xA5,
|
||||
[MOVEMENT_ACTION_0xA6] = sMovementActionFuncs_xA6,
|
||||
[MOVEMENT_ACTION_0xA7] = sMovementActionFuncs_xA7,
|
||||
[MOVEMENT_ACTION_0xA8] = sMovementActionFuncs_xA8,
|
||||
[MOVEMENT_ACTION_0xA9] = sMovementActionFuncs_xA9,
|
||||
[MOVEMENT_ACTION_JUMP_SPECIAL_WITH_EFFECT_DOWN] = sMovementActionFuncs_xA6,
|
||||
[MOVEMENT_ACTION_JUMP_SPECIAL_WITH_EFFECT_UP] = sMovementActionFuncs_xA7,
|
||||
[MOVEMENT_ACTION_JUMP_SPECIAL_WITH_EFFECT_LEFT] = sMovementActionFuncs_xA8,
|
||||
[MOVEMENT_ACTION_JUMP_SPECIAL_WITH_EFFECT_RIGHT] = sMovementActionFuncs_xA9,
|
||||
};
|
||||
|
||||
static bool8 (*const sMovementActionFuncs_x00[])(struct ObjectEvent *, struct Sprite *) = {
|
||||
|
||||
@@ -4,7 +4,7 @@ static bool8 MovementType_WanderAround_Step2(struct ObjectEvent *objectEvent, st
|
||||
static bool8 MovementType_WanderAround_Step3(struct ObjectEvent *objectEvent, struct Sprite *sprite);
|
||||
static bool8 MovementType_WanderAround_Step4(struct ObjectEvent *objectEvent, struct Sprite *sprite);
|
||||
static bool8 MovementType_WanderAround_Step5(struct ObjectEvent *objectEvent, struct Sprite *sprite);
|
||||
static bool8 MovementType_WanderAround_Step5Slowest(struct ObjectEvent *objectEvent, struct Sprite *sprite);
|
||||
static bool8 MovementType_WanderAround_Step5Slower(struct ObjectEvent *objectEvent, struct Sprite *sprite);
|
||||
static bool8 MovementType_WanderAround_Step6(struct ObjectEvent *objectEvent, struct Sprite *sprite);
|
||||
static bool8 MovementType_LookAround_Step0(struct ObjectEvent *objectEvent, struct Sprite *sprite);
|
||||
static bool8 MovementType_LookAround_Step1(struct ObjectEvent *objectEvent, struct Sprite *sprite);
|
||||
@@ -170,13 +170,13 @@ u8 (*const gMovementTypeFuncs_WanderAround[])(struct ObjectEvent *, struct Sprit
|
||||
MovementType_WanderAround_Step6,
|
||||
};
|
||||
|
||||
u8 (*const gMovementTypeFuncs_WanderAroundSlowest[])(struct ObjectEvent *, struct Sprite *) = {
|
||||
u8 (*const gMovementTypeFuncs_WanderAroundSlower[])(struct ObjectEvent *, struct Sprite *) = {
|
||||
MovementType_WanderAround_Step0,
|
||||
MovementType_WanderAround_Step1,
|
||||
MovementType_WanderAround_Step2,
|
||||
MovementType_WanderAround_Step3,
|
||||
MovementType_WanderAround_Step4,
|
||||
MovementType_WanderAround_Step5Slowest,
|
||||
MovementType_WanderAround_Step5Slower,
|
||||
MovementType_WanderAround_Step6,
|
||||
};
|
||||
|
||||
|
||||
+563
-576
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1600,7 +1600,7 @@ static bool8 waterfall_2_wait_anim_finish_probably(struct Task * task, struct Ob
|
||||
|
||||
static bool8 waterfall_3_move_player_probably(struct Task * task, struct ObjectEvent * playerObj)
|
||||
{
|
||||
ObjectEventSetHeldMovement(playerObj, GetWalkSlowestMovementAction(DIR_NORTH));
|
||||
ObjectEventSetHeldMovement(playerObj, GetWalkSlowerMovementAction(DIR_NORTH));
|
||||
task->data[0]++;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -831,7 +831,7 @@ static void QL_TryRecordNPCStepWithDuration32(struct ObjectEvent * objectEvent,
|
||||
|
||||
void PlayerGoSlowest(u8 direction)
|
||||
{
|
||||
PlayerSetAnimId(GetWalkSlowestMovementAction(direction), 2);
|
||||
PlayerSetAnimId(GetWalkSlowerMovementAction(direction), 2);
|
||||
}
|
||||
|
||||
void PlayerGoSlow(u8 direction)
|
||||
@@ -908,9 +908,9 @@ void PlayerJumpLedge(u8 direction)
|
||||
PlayerSetAnimId(GetJump2MovementAction(direction), 8);
|
||||
}
|
||||
|
||||
void sub_805C260(void)
|
||||
void PlayerShakeHead(void)
|
||||
{
|
||||
PlayerSetAnimId(MOVEMENT_ACTION_0x9F, 0);
|
||||
PlayerSetAnimId(MOVEMENT_ACTION_SHAKE_HEAD, 0);
|
||||
}
|
||||
|
||||
void HandleEnforcedLookDirectionOnPlayerStopMoving(void)
|
||||
@@ -1428,7 +1428,7 @@ static bool8 DoBoulderDust(struct Task *task, struct ObjectEvent *playerObject,
|
||||
ObjectEventClearHeldMovementIfFinished(playerObject);
|
||||
ObjectEventClearHeldMovementIfFinished(strengthObject);
|
||||
QL_TryRecordPlayerStepWithDuration0(playerObject, GetWalkInPlaceNormalMovementAction((u8)task->data[2]));
|
||||
QL_TryRecordNPCStepWithDuration32(strengthObject, GetWalkSlowestMovementAction((u8)task->data[2]));
|
||||
QL_TryRecordNPCStepWithDuration32(strengthObject, GetWalkSlowerMovementAction((u8)task->data[2]));
|
||||
gFieldEffectArguments[0] = strengthObject->currentCoords.x;
|
||||
gFieldEffectArguments[1] = strengthObject->currentCoords.y;
|
||||
gFieldEffectArguments[2] = strengthObject->previousElevation;
|
||||
@@ -1560,7 +1560,7 @@ static bool8 PlayerAvatar_SecretBaseMatSpinStep3(struct Task *task, struct Objec
|
||||
{
|
||||
if (ObjectEventClearHeldMovementIfFinished(objectEvent))
|
||||
{
|
||||
QL_TryRecordPlayerStepWithDuration0(objectEvent, GetWalkSlowestMovementAction(GetOppositeDirection(task->data[1])));
|
||||
QL_TryRecordPlayerStepWithDuration0(objectEvent, GetWalkSlowerMovementAction(GetOppositeDirection(task->data[1])));
|
||||
ScriptContext2_Disable();
|
||||
gPlayerAvatar.preventStep = FALSE;
|
||||
DestroyTask(FindTaskIdByFunc(PlayerAvatar_DoSecretBaseMatSpin));
|
||||
@@ -1617,7 +1617,7 @@ static void Task_StopSurfingInit(u8 taskId)
|
||||
return;
|
||||
}
|
||||
SetSurfBlob_BobState(playerObjEvent->fieldEffectSpriteId, 2);
|
||||
QL_TryRecordPlayerStepWithDuration0(playerObjEvent, sub_80641EC((u8)gTasks[taskId].data[0]));
|
||||
QL_TryRecordPlayerStepWithDuration0(playerObjEvent, GetJumpSpecialWithEffectMovementAction((u8)gTasks[taskId].data[0]));
|
||||
gTasks[taskId].func = Task_WaitStopSurfing;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user