Minor labelling of field effects
This commit is contained in:
+14
-14
@@ -1700,7 +1700,7 @@ static bool8 (*const sFishingStateFuncs[])(struct Task *) =
|
||||
};
|
||||
|
||||
static void Task_Fishing(u8 taskId);
|
||||
static void sub_808CF78(void);
|
||||
static void AlignFishingAnimationFrames(void);
|
||||
|
||||
#define tStep data[0]
|
||||
#define tFrameCounter data[1]
|
||||
@@ -1759,7 +1759,7 @@ static bool8 Fishing2(struct Task *task)
|
||||
|
||||
static bool8 Fishing3(struct Task *task)
|
||||
{
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
|
||||
// Wait one second
|
||||
task->tFrameCounter++;
|
||||
@@ -1791,7 +1791,7 @@ static bool8 Fishing5(struct Task *task)
|
||||
{
|
||||
const u8 dot[] = _("·");
|
||||
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
task->tFrameCounter++;
|
||||
if (gMain.newKeys & A_BUTTON)
|
||||
{
|
||||
@@ -1827,7 +1827,7 @@ static bool8 Fishing6(struct Task *task)
|
||||
{
|
||||
bool8 bite;
|
||||
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
task->tStep++;
|
||||
bite = FALSE;
|
||||
|
||||
@@ -1872,7 +1872,7 @@ static bool8 Fishing6(struct Task *task)
|
||||
// Oh! A Bite!
|
||||
static bool8 Fishing7(struct Task *task)
|
||||
{
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
AddTextPrinterParameterized(0, 1, gText_OhABite, 0, 17, 0, NULL);
|
||||
task->tStep++;
|
||||
task->tFrameCounter = 0;
|
||||
@@ -1884,7 +1884,7 @@ static bool8 Fishing8(struct Task *task)
|
||||
{
|
||||
const s16 reelTimeouts[3] = {36, 33, 30};
|
||||
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
task->tFrameCounter++;
|
||||
if (task->tFrameCounter >= reelTimeouts[task->tFishingRod])
|
||||
task->tStep = FISHING_GOT_AWAY;
|
||||
@@ -1903,7 +1903,7 @@ static bool8 Fishing9(struct Task *task)
|
||||
{70, 30}
|
||||
};
|
||||
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
task->tStep++;
|
||||
if (task->tRoundsPlayed < task->tMinRoundsRequired)
|
||||
{
|
||||
@@ -1922,7 +1922,7 @@ static bool8 Fishing9(struct Task *task)
|
||||
|
||||
static bool8 Fishing10(struct Task *task)
|
||||
{
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
FillWindowPixelBuffer(0, 0x11);
|
||||
AddTextPrinterParameterized2(0, 1, gText_PokemonOnHook, 1, 0, 2, 1, 3);
|
||||
task->tStep++;
|
||||
@@ -1933,7 +1933,7 @@ static bool8 Fishing10(struct Task *task)
|
||||
static bool8 Fishing11(struct Task *task)
|
||||
{
|
||||
if (task->tFrameCounter == 0)
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
|
||||
RunTextPrinters();
|
||||
|
||||
@@ -1969,7 +1969,7 @@ static bool8 Fishing11(struct Task *task)
|
||||
// Not even a nibble
|
||||
static bool8 Fishing12(struct Task *task)
|
||||
{
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
StartSpriteAnim(&gSprites[gPlayerAvatar.spriteId], GetFishingNoCatchDirectionAnimNum(GetPlayerFacingDirection()));
|
||||
FillWindowPixelBuffer(0, 0x11);
|
||||
AddTextPrinterParameterized2(0, 1, gText_NotEvenANibble, 1, 0, 2, 1, 3);
|
||||
@@ -1980,7 +1980,7 @@ static bool8 Fishing12(struct Task *task)
|
||||
// It got away
|
||||
static bool8 Fishing13(struct Task *task)
|
||||
{
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
StartSpriteAnim(&gSprites[gPlayerAvatar.spriteId], GetFishingNoCatchDirectionAnimNum(GetPlayerFacingDirection()));
|
||||
FillWindowPixelBuffer(0, 0x11);
|
||||
AddTextPrinterParameterized2(0, 1, gText_ItGotAway, 1, 0, 2, 1, 3);
|
||||
@@ -1991,14 +1991,14 @@ static bool8 Fishing13(struct Task *task)
|
||||
// Wait one second
|
||||
static bool8 Fishing14(struct Task *task)
|
||||
{
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
task->tStep++;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static bool8 Fishing15(struct Task *task)
|
||||
{
|
||||
sub_808CF78();
|
||||
AlignFishingAnimationFrames();
|
||||
if (gSprites[gPlayerAvatar.spriteId].animEnded)
|
||||
{
|
||||
struct EventObject *playerEventObj = &gEventObjects[gPlayerAvatar.eventObjectId];
|
||||
@@ -2033,7 +2033,7 @@ static bool8 Fishing16(struct Task *task)
|
||||
#undef tFrameCounter
|
||||
#undef tFishingRod
|
||||
|
||||
static void sub_808CF78(void)
|
||||
static void AlignFishingAnimationFrames(void)
|
||||
{
|
||||
struct Sprite *playerSprite = &gSprites[gPlayerAvatar.spriteId];
|
||||
u8 animCmdIndex;
|
||||
|
||||
Reference in New Issue
Block a user