spaces over tabs please don't eat my ass

This commit is contained in:
pkmnsnfrn 2024-08-14 22:14:48 -07:00
parent fed7fc4f0a
commit 287f6baaa9
3 changed files with 65 additions and 65 deletions

View file

@ -87,13 +87,13 @@
#define DEOXYS_ROCK_COMPLETE 3 #define DEOXYS_ROCK_COMPLETE 3
enum { enum {
OPEN_PARTY_SCREEN, OPEN_PARTY_SCREEN,
NO_PARTY_SCREEN NO_PARTY_SCREEN
}; };
enum { enum {
CURRENT_POSITION, CURRENT_POSITION,
TEMPLATE_POSITION TEMPLATE_POSITION
}; };
#endif // GUARD_CONSTANTS_FIELD_SPECIALS_H #endif // GUARD_CONSTANTS_FIELD_SPECIALS_H

View file

@ -9494,30 +9494,30 @@ static void DoTracksGroundEffect_BikeTireTracks(struct ObjectEvent *objEvent, st
static void DoTracksGroundEffect_SlitherTracks(struct ObjectEvent *objEvent, struct Sprite *sprite, u8 a) static void DoTracksGroundEffect_SlitherTracks(struct ObjectEvent *objEvent, struct Sprite *sprite, u8 a)
{ {
// Specifies which bike track shape to show next. // Specifies which bike track shape to show next.
// For example, when the bike turns from up to right, it will show // For example, when the bike turns from up to right, it will show
// a track that curves to the right. // a track that curves to the right.
// Each 4-byte row corresponds to the initial direction of the bike, and // Each 4-byte row corresponds to the initial direction of the bike, and
// each byte in that row is for the next direction of the bike in the order // each byte in that row is for the next direction of the bike in the order
// of down, up, left, right. // of down, up, left, right.
static const u8 slitherTracks_Transitions[4][4] = { static const u8 slitherTracks_Transitions[4][4] = {
{1, 2, 7, 8}, {1, 2, 7, 8},
{1, 2, 6, 5}, {1, 2, 6, 5},
{5, 8, 3, 4}, {5, 8, 3, 4},
{6, 7, 3, 4}, {6, 7, 3, 4},
}; };
if (objEvent->currentCoords.x != objEvent->previousCoords.x || objEvent->currentCoords.y != objEvent->previousCoords.y) if (objEvent->currentCoords.x != objEvent->previousCoords.x || objEvent->currentCoords.y != objEvent->previousCoords.y)
{ {
gFieldEffectArguments[0] = objEvent->previousCoords.x; gFieldEffectArguments[0] = objEvent->previousCoords.x;
gFieldEffectArguments[1] = objEvent->previousCoords.y; gFieldEffectArguments[1] = objEvent->previousCoords.y;
gFieldEffectArguments[2] = 149; gFieldEffectArguments[2] = 149;
gFieldEffectArguments[3] = 2; gFieldEffectArguments[3] = 2;
gFieldEffectArguments[4] = gFieldEffectArguments[4] =
slitherTracks_Transitions[objEvent->previousMovementDirection][objEvent->facingDirection - 5]; slitherTracks_Transitions[objEvent->previousMovementDirection][objEvent->facingDirection - 5];
gFieldEffectArguments[5] = objEvent->previousMetatileBehavior; gFieldEffectArguments[5] = objEvent->previousMetatileBehavior;
FieldEffectStart(FLDEFF_TRACKS_SLITHER); FieldEffectStart(FLDEFF_TRACKS_SLITHER);
} }
} }
void GroundEffect_Ripple(struct ObjectEvent *objEvent, struct Sprite *sprite) void GroundEffect_Ripple(struct ObjectEvent *objEvent, struct Sprite *sprite)

View file

@ -4270,58 +4270,58 @@ void PreparePartyForSkyBattle(void)
void GetObjectPosition(void) void GetObjectPosition(void)
{ {
u32 localId = gSpecialVar_0x8000; u32 localId = gSpecialVar_0x8000;
u32 useTemplate = gSpecialVar_0x8001; u32 useTemplate = gSpecialVar_0x8001;
u32 objectId; u32 objectId;
struct ObjectEvent* objEvent; struct ObjectEvent* objEvent;
u16 *x = &gSpecialVar_0x8007; u16 *x = &gSpecialVar_0x8007;
u16 *y = &gSpecialVar_0x8008; u16 *y = &gSpecialVar_0x8008;
if (useTemplate) if (useTemplate)
{ {
const struct ObjectEventTemplate *objTemplate = FindObjectEventTemplateByLocalId(localId, gSaveBlock1Ptr->objectEventTemplates, gMapHeader.events->objectEventCount); const struct ObjectEventTemplate *objTemplate = FindObjectEventTemplateByLocalId(localId, gSaveBlock1Ptr->objectEventTemplates, gMapHeader.events->objectEventCount);
*x = objTemplate->x; *x = objTemplate->x;
*y = objTemplate->y; *y = objTemplate->y;
return; return;
} }
objectId = GetObjectEventIdByLocalId(localId); objectId = GetObjectEventIdByLocalId(localId);
objEvent = &gObjectEvents[objectId]; objEvent = &gObjectEvents[objectId];
*x = objEvent->currentCoords.x - 7; *x = objEvent->currentCoords.x - 7;
*y = objEvent->currentCoords.y - 7; *y = objEvent->currentCoords.y - 7;
} }
bool32 CheckObjectAtXY(void) bool32 CheckObjectAtXY(void)
{ {
u32 x = gSpecialVar_0x8005 + 7; u32 x = gSpecialVar_0x8005 + 7;
u32 y = gSpecialVar_0x8006 + 7; u32 y = gSpecialVar_0x8006 + 7;
u32 i; u32 i;
for (i = 0; i < OBJECT_EVENTS_COUNT; i++) for (i = 0; i < OBJECT_EVENTS_COUNT; i++)
{ {
if (!gObjectEvents[i].active) if (!gObjectEvents[i].active)
continue; continue;
if (gObjectEvents[i].currentCoords.x != x) if (gObjectEvents[i].currentCoords.x != x)
continue; continue;
if (gObjectEvents[i].currentCoords.y != y) if (gObjectEvents[i].currentCoords.y != y)
continue; continue;
return TRUE; return TRUE;
} }
return FALSE; return FALSE;
} }
bool32 Script_GetSetPokedexFlag(void) bool32 Script_GetSetPokedexFlag(void)
{ {
u32 speciesId = SpeciesToNationalPokedexNum(gSpecialVar_0x8005); u32 speciesId = SpeciesToNationalPokedexNum(gSpecialVar_0x8005);
bool32 desiredFlag = gSpecialVar_0x8006; bool32 desiredFlag = gSpecialVar_0x8006;
if (desiredFlag == FLAG_SET_CAUGHT) if (desiredFlag == FLAG_SET_CAUGHT)
GetSetPokedexFlag(speciesId,FLAG_SET_SEEN); GetSetPokedexFlag(speciesId,FLAG_SET_SEEN);
return GetSetPokedexFlag(speciesId,desiredFlag); return GetSetPokedexFlag(speciesId,desiredFlag);
} }
void SetMonBall(void) void SetMonBall(void)
@ -4332,9 +4332,9 @@ void SetMonBall(void)
bool32 CheckPartyHasSpecie(void) bool32 CheckPartyHasSpecie(void)
{ {
u32 partyIndex; u32 partyIndex;
for (partyIndex = 0; partyIndex < CalculatePlayerPartyCount(); partyIndex++) for (partyIndex = 0; partyIndex < CalculatePlayerPartyCount(); partyIndex++)
if (GetMonData(&gPlayerParty[partyIndex], MON_DATA_SPECIES) == gSpecialVar_0x8005) if (GetMonData(&gPlayerParty[partyIndex], MON_DATA_SPECIES) == gSpecialVar_0x8005)
return TRUE; return TRUE;
@ -4343,6 +4343,6 @@ bool32 CheckPartyHasSpecie(void)
bool32 CheckChosenMonMatchDesiredSpecie(void) bool32 CheckChosenMonMatchDesiredSpecie(void)
{ {
return (GetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_SPECIES) == gSpecialVar_0x8005); return (GetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_SPECIES) == gSpecialVar_0x8005);
} }