diff options
-rw-r--r-- | Stair-Warps.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Stair-Warps.md b/Stair-Warps.md index a890ef9..51bfb6c 100644 --- a/Stair-Warps.md +++ b/Stair-Warps.md @@ -80,7 +80,7 @@ bool8 MetatileBehavior_IsDirectionalStairWarp(u8 metatileBehavior); This allows us to ignore the impassable tiles when we try to warp on the stairs. Open [include/global.fieldmap.h](../blob/master/include/global.fieldmap.h). Add `COLLISION_STAIR_WARP` after the enum define `COLLISION_HORIZONTAL_RAIL,` ### Add the collision exclusion -Open [src/field_player/avatar.c](../blob/master/src/field_player_avatar.c). +Open [src/field_player_avatar.c](../blob/master/src/field_player_avatar.c). **1.** First, let's add `#include "field_screen_effect.h"` to the top of the file. @@ -155,7 +155,7 @@ static bool8 TryArrowWarp(struct MapPosition *position, u16 metatileBehavior, u8 ``` ### Add `DoStairWarp` -This is the meat of the code implementation. Let's start by opening [src/field_screen_effect.h](../blob/master/src/field_screen_effect.c). +This is the meat of the code implementation. Let's start by opening [src/field_screen_effect.c](../blob/master/src/field_screen_effect.c). **1.** Find the function `static void SetUpWarpExitTask(void)`. Before `else if (MetatileBehavior_IsNonAnimDoor(behavior) == TRUE)`, Add the following: ```c |