mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Merge branch 'master' into doc-rtcscreen
This commit is contained in:
commit
1912b0cf0a
@ -3,7 +3,6 @@
|
||||
.include "asm/macros/movement.inc"
|
||||
.include "asm/macros/window.inc"
|
||||
.include "asm/macros/pokemon_data.inc"
|
||||
.include "asm/macros/ec.inc"
|
||||
.include "asm/macros/map.inc"
|
||||
.include "asm/macros/field_effect_script.inc"
|
||||
.include "asm/macros/trainer_hill.inc"
|
||||
|
@ -1,19 +0,0 @@
|
||||
.macro ec_word word
|
||||
.2byte EC_WORD_\word
|
||||
.endm
|
||||
|
||||
.macro ec_move1 name
|
||||
.2byte (EC_GROUP_MOVE_1 << 9) | MOVE_\name
|
||||
.endm
|
||||
|
||||
.macro ec_move2 name
|
||||
.2byte (EC_GROUP_MOVE_2 << 9) | MOVE_\name
|
||||
.endm
|
||||
|
||||
.macro ec_pokemon1 name
|
||||
.2byte (EC_GROUP_POKEMON << 9) | SPECIES_\name
|
||||
.endm
|
||||
|
||||
.macro ec_pokemon2 name
|
||||
.2byte (EC_GROUP_POKEMON2 << 9) | SPECIES_\name
|
||||
.endm
|
@ -854,7 +854,7 @@ Move_TWINEEDLE:
|
||||
|
||||
Move_FIRE_BLAST:
|
||||
loadspritegfx ANIM_TAG_SMALL_EMBER
|
||||
createsoundtask sub_8158B30, SE_M_FLAME_WHEEL, SE_M_FLAME_WHEEL2
|
||||
createsoundtask SoundTask_FireBlast, SE_M_FLAME_WHEEL, SE_M_FLAME_WHEEL2
|
||||
call FireBlastRing
|
||||
call FireBlastRing
|
||||
call FireBlastRing
|
||||
|
@ -624,15 +624,15 @@ DewfordTown_EventScript_RejectTrendyPhrase:: @ 81E9952
|
||||
call Common_ShowEasyChatScreen
|
||||
lock
|
||||
faceplayer
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq DewfordTown_EventScript_GiveNewTrendyPhrase
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq DewfordTown_EventScript_CancelNewTrendyPhrase
|
||||
end
|
||||
|
||||
DewfordTown_EventScript_GiveNewTrendyPhrase:: @ 81E997D
|
||||
incrementgamestat GAME_STAT_STARTED_TRENDS
|
||||
compare VAR_0x8004, 0
|
||||
compare VAR_0x8004, FALSE
|
||||
goto_if_eq DewfordTown_EventScript_PhraseNotTrendyEnough
|
||||
msgbox DewfordTown_Text_OfCourseIKnowAboutThat, MSGBOX_DEFAULT
|
||||
release
|
||||
|
@ -33,6 +33,12 @@ struct SpriteCopyRequest
|
||||
u16 size;
|
||||
};
|
||||
|
||||
struct OamDimensions32
|
||||
{
|
||||
s32 width;
|
||||
s32 height;
|
||||
};
|
||||
|
||||
struct OamDimensions
|
||||
{
|
||||
s8 width;
|
||||
@ -240,25 +246,28 @@ static const AffineAnimCmdFunc sAffineAnimCmdFuncs[] =
|
||||
AffineAnimCmd_frame,
|
||||
};
|
||||
|
||||
static const s32 sUnknown_082EC6F4[3][4][2] =
|
||||
static const struct OamDimensions32 sOamDimensions32[3][4] =
|
||||
{
|
||||
[ST_OAM_SQUARE] =
|
||||
{
|
||||
{8, 8},
|
||||
{0x10, 0x10},
|
||||
{0x20, 0x20},
|
||||
{0x40, 0x40},
|
||||
[SPRITE_SIZE(8x8)] = { 8, 8 },
|
||||
[SPRITE_SIZE(16x16)] = { 16, 16 },
|
||||
[SPRITE_SIZE(32x32)] = { 32, 32 },
|
||||
[SPRITE_SIZE(64x64)] = { 64, 64 },
|
||||
},
|
||||
[ST_OAM_H_RECTANGLE] =
|
||||
{
|
||||
{0x10, 8},
|
||||
{0x20, 8},
|
||||
{0x20, 0x10},
|
||||
{0x40, 0x20},
|
||||
[SPRITE_SIZE(16x8)] = { 16, 8 },
|
||||
[SPRITE_SIZE(32x8)] = { 32, 8 },
|
||||
[SPRITE_SIZE(32x16)] = { 32, 16 },
|
||||
[SPRITE_SIZE(64x32)] = { 64, 32 },
|
||||
},
|
||||
[ST_OAM_V_RECTANGLE] =
|
||||
{
|
||||
{8, 0x10},
|
||||
{8, 0x20},
|
||||
{0x10, 0x20},
|
||||
{0x20, 0x40},
|
||||
[SPRITE_SIZE(8x16)] = { 8, 16 },
|
||||
[SPRITE_SIZE(8x32)] = { 8, 32 },
|
||||
[SPRITE_SIZE(16x32)] = { 16, 32 },
|
||||
[SPRITE_SIZE(32x64)] = { 32, 64 },
|
||||
},
|
||||
};
|
||||
|
||||
@ -1233,14 +1242,14 @@ void obj_update_pos2(struct Sprite *sprite, s32 a1, s32 a2)
|
||||
u32 matrixNum = sprite->oam.matrixNum;
|
||||
if (a1 != 0x800)
|
||||
{
|
||||
var0 = sUnknown_082EC6F4[sprite->oam.shape][sprite->oam.size][0];
|
||||
var0 = sOamDimensions32[sprite->oam.shape][sprite->oam.size].width;
|
||||
var1 = var0 << 8;
|
||||
var2 = (var0 << 16) / gOamMatrices[matrixNum].a;
|
||||
sprite->pos2.x = sub_8007E28(var1, var2, a1);
|
||||
}
|
||||
if (a2 != 0x800)
|
||||
{
|
||||
var0 = sUnknown_082EC6F4[sprite->oam.shape][sprite->oam.size][1];
|
||||
var0 = sOamDimensions32[sprite->oam.shape][sprite->oam.size].height;
|
||||
var1 = var0 << 8;
|
||||
var2 = (var0 << 16) / gOamMatrices[matrixNum].d;
|
||||
sprite->pos2.y = sub_8007E28(var1, var2, a2);
|
||||
|
@ -2,6 +2,7 @@
|
||||
#define GUARD_SPRITE_H
|
||||
|
||||
#define MAX_SPRITES 64
|
||||
#define SPRITE_NONE 0xFF
|
||||
#define SPRITE_INVALID_TAG 0xFFFF
|
||||
|
||||
struct SpriteSheet
|
||||
|
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 419 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 260 B |
@ -108,7 +108,7 @@ u8 GetBattlerSpriteBGPriority(u8 battlerId);
|
||||
void *LoadPointerFromVars(s16 bottom, s16 top);
|
||||
void StorePointerInVars(s16 *bottom, s16 *top, const void *ptr);
|
||||
void sub_80A8278(void);
|
||||
void sub_80A6B30(struct BattleAnimBgData*);
|
||||
void GetDefaultBattleAnimBgData(struct BattleAnimBgData*);
|
||||
void sub_80A6B90(struct BattleAnimBgData*, u32 arg1);
|
||||
u8 GetBattlerSpriteSubpriority(u8 battlerId);
|
||||
bool8 TranslateAnimHorizontalArc(struct Sprite *sprite);
|
||||
@ -127,12 +127,12 @@ void obj_delete_but_dont_free_vram(struct Sprite*);
|
||||
u8 sub_80A89C8(int, u8, int);
|
||||
void AnimLoadCompressedBgTilemapHandleContest(struct BattleAnimBgData*, const void*, u32);
|
||||
void AnimLoadCompressedBgGfx(u32, const u32*, u32);
|
||||
void sub_80A6DAC(bool8);
|
||||
void UpdateAnimBg3ScreenSize(bool8);
|
||||
void TranslateSpriteInGrowingCircleOverDuration(struct Sprite *);
|
||||
void sub_80A653C(struct Sprite *);
|
||||
void SetBattlerSpriteYOffsetFromYScale(u8 spriteId);
|
||||
void sub_80A805C(struct Task *task, u8 a2, s16 a3, s16 a4, s16 a5, s16 a6, u16 a7);
|
||||
u8 sub_80A80C8(struct Task *task);
|
||||
void PrepareEruptAnimTaskData(struct Task *task, u8 a2, s16 a3, s16 a4, s16 a5, s16 a6, u16 a7);
|
||||
u8 UpdateEruptAnimTask(struct Task *task);
|
||||
void DestroyAnimSpriteAndDisableBlend(struct Sprite *);
|
||||
void AnimLoadCompressedBgTilemap(u32 bgId, const void *src);
|
||||
void InitAnimFastLinearTranslationWithSpeed(struct Sprite *sprite);
|
||||
@ -149,7 +149,7 @@ bool8 RunAffineAnimFromTaskData(struct Task *task);
|
||||
void AnimThrowProjectile(struct Sprite *sprite);
|
||||
void sub_80A6BFC(struct BattleAnimBgData *unk, u8 unused);
|
||||
u8 CreateAdditionalMonSpriteForMoveAnim(u16 species, bool8 isBackpic, u8 a3, s16 x, s16 y, u8 subpriority, u32 personality, u32 trainerId, u32 battlerId, bool32 ignoreDeoxysForm);
|
||||
void sub_80A749C(struct Sprite *sprite);
|
||||
void ResetSpriteRotScale_PreserveAffine(struct Sprite *sprite);
|
||||
void TradeMenuBouncePartySprites(struct Sprite *sprite);
|
||||
void DestroyAnimVisualTaskAndDisableBlend(u8 taskId);
|
||||
void DestroySpriteAndFreeResources_(struct Sprite *sprite);
|
||||
|
@ -28,29 +28,29 @@
|
||||
#define EASY_CHAT_PERSON_BOY 2
|
||||
#define EASY_CHAT_PERSON_DISPLAY_NONE 3
|
||||
|
||||
#define EC_GROUP_POKEMON 0x0
|
||||
#define EC_GROUP_TRAINER 0x1
|
||||
#define EC_GROUP_STATUS 0x2
|
||||
#define EC_GROUP_BATTLE 0x3
|
||||
#define EC_GROUP_GREETINGS 0x4
|
||||
#define EC_GROUP_PEOPLE 0x5
|
||||
#define EC_GROUP_VOICES 0x6
|
||||
#define EC_GROUP_SPEECH 0x7
|
||||
#define EC_GROUP_ENDINGS 0x8
|
||||
#define EC_GROUP_FEELINGS 0x9
|
||||
#define EC_GROUP_CONDITIONS 0xa
|
||||
#define EC_GROUP_ACTIONS 0xb
|
||||
#define EC_GROUP_LIFESTYLE 0xc
|
||||
#define EC_GROUP_HOBBIES 0xd
|
||||
#define EC_GROUP_TIME 0xe
|
||||
#define EC_GROUP_MISC 0xf
|
||||
#define EC_GROUP_ADJECTIVES 0x10
|
||||
#define EC_GROUP_EVENTS 0x11
|
||||
#define EC_GROUP_MOVE_1 0x12
|
||||
#define EC_GROUP_MOVE_2 0x13
|
||||
#define EC_GROUP_TRENDY_SAYING 0x14
|
||||
#define EC_GROUP_POKEMON_2 0x15
|
||||
#define EC_NUM_GROUPS 0x16
|
||||
#define EC_GROUP_POKEMON 0
|
||||
#define EC_GROUP_TRAINER 1
|
||||
#define EC_GROUP_STATUS 2
|
||||
#define EC_GROUP_BATTLE 3
|
||||
#define EC_GROUP_GREETINGS 4
|
||||
#define EC_GROUP_PEOPLE 5
|
||||
#define EC_GROUP_VOICES 6
|
||||
#define EC_GROUP_SPEECH 7
|
||||
#define EC_GROUP_ENDINGS 8
|
||||
#define EC_GROUP_FEELINGS 9
|
||||
#define EC_GROUP_CONDITIONS 10
|
||||
#define EC_GROUP_ACTIONS 11
|
||||
#define EC_GROUP_LIFESTYLE 12
|
||||
#define EC_GROUP_HOBBIES 13
|
||||
#define EC_GROUP_TIME 14
|
||||
#define EC_GROUP_MISC 15
|
||||
#define EC_GROUP_ADJECTIVES 16
|
||||
#define EC_GROUP_EVENTS 17
|
||||
#define EC_GROUP_MOVE_1 18
|
||||
#define EC_GROUP_MOVE_2 19
|
||||
#define EC_GROUP_TRENDY_SAYING 20
|
||||
#define EC_GROUP_POKEMON_NATIONAL 21
|
||||
#define EC_NUM_GROUPS 22
|
||||
|
||||
// TRAINER
|
||||
#define EC_WORD_I_CHOOSE_YOU (EC_GROUP_TRAINER << 9) | 0x0
|
||||
@ -1105,13 +1105,22 @@
|
||||
#define PHRASE_COOL_LATIOS 4
|
||||
#define PHRASE_SUPER_HUSTLE 5
|
||||
|
||||
#define EC_NUM_ALPHABET_GROUPS 27 // 26 (1 for each letter) + 1 (Others)
|
||||
|
||||
#define EC_MAX_WORDS_IN_GROUP 270 // The closest is words by letter S, at 262
|
||||
|
||||
#define EC_MASK_GROUP 0x7F
|
||||
#define EC_MASK_INDEX 0x1FF
|
||||
|
||||
#define EC_POKEMON(mon) ((EC_GROUP_POKEMON << 9) | SPECIES_##mon)
|
||||
#define EC_POKEMON2(mon) ((EC_GROUP_POKEMON_2 << 9) | SPECIES_##mon)
|
||||
#define EC_POKEMON_NATIONAL(mon) ((EC_GROUP_POKEMON_NATIONAL << 9) | SPECIES_##mon)
|
||||
#define EC_MOVE(move) ((EC_GROUP_MOVE_1 << 9) | MOVE_##move)
|
||||
#define EC_MOVE2(move) ((EC_GROUP_MOVE_2 << 9) | MOVE_##move)
|
||||
|
||||
#define EC_GROUP(word) ((word) >> 9)
|
||||
#define EC_INDEX(word) ((word) & 0x1FF)
|
||||
#define EC_WORD(group, index) ((((group) & 0x7F) << 9) | ((index) & 0x1FF))
|
||||
#define EC_INDEX(word) ((word) & EC_MASK_INDEX)
|
||||
#define EC_WORD(group, index) ((((group) & EC_MASK_GROUP) << 9) | ((index) & EC_MASK_INDEX))
|
||||
|
||||
#define EC_EMPTY_WORD 0xFFFF
|
||||
|
||||
#endif // GUARD_CONSTANTS_EASY_CHAT_H
|
||||
|
@ -84,6 +84,7 @@
|
||||
#define MAIL_WORDS_COUNT 9
|
||||
#define EASY_CHAT_BATTLE_WORDS_COUNT 6
|
||||
#define MOVE_NAME_LENGTH 12
|
||||
#define NUM_QUESTIONNAIRE_WORDS 4
|
||||
|
||||
#define MALE 0
|
||||
#define FEMALE 1
|
||||
|
@ -495,7 +495,9 @@
|
||||
#define NUM_ROUTE_114_MAN_BERRIES (LAST_ROUTE_114_MAN_BERRY - FIRST_ROUTE_114_MAN_BERRY + 1)
|
||||
#define NUM_ROUTE_114_MAN_BERRIES_SKIPPED (FIRST_ROUTE_114_MAN_BERRY - FIRST_BERRY_INDEX)
|
||||
|
||||
#define ITEM_TO_BERRY(itemId)(((itemId - FIRST_BERRY_INDEX) + 1))
|
||||
#define ITEM_TO_BERRY(itemId)(((itemId) - FIRST_BERRY_INDEX) + 1)
|
||||
#define ITEM_TO_MAIL(itemId)((itemId) - FIRST_MAIL_INDEX)
|
||||
#define MAIL_NONE 0xFF
|
||||
|
||||
#define NUM_TECHNICAL_MACHINES 50
|
||||
#define NUM_HIDDEN_MACHINES 8
|
||||
|
@ -288,8 +288,6 @@
|
||||
#define MAX_TOTAL_EVS 510
|
||||
#define EV_ITEM_RAISE_LIMIT 100
|
||||
|
||||
#define UNOWN_FORM_COUNT 28
|
||||
|
||||
// Battle move flags
|
||||
#define FLAG_MAKES_CONTACT (1 << 0)
|
||||
#define FLAG_PROTECT_AFFECTED (1 << 1)
|
||||
|
@ -4,7 +4,7 @@
|
||||
void InitDewfordTrend(void);
|
||||
void UpdateDewfordTrendPerDay(u16);
|
||||
void UpdateDewfordTrendPerDay(u16 days);
|
||||
bool8 sub_81226D8(u16 *a);
|
||||
bool8 IsPhraseTrendy(u16 *a);
|
||||
void ReceiveEasyChatPairsData(struct EasyChatPair *a, size_t b, u8 unused);
|
||||
|
||||
|
||||
|
@ -24,55 +24,55 @@ struct EasyChatScreen
|
||||
/*0x01*/ u8 templateId;
|
||||
/*0x02*/ u8 numColumns;
|
||||
/*0x03*/ u8 numRows;
|
||||
/*0x04*/ u8 state;
|
||||
/*0x04*/ u8 inputState;
|
||||
/*0x05*/ s8 mainCursorColumn;
|
||||
/*0x06*/ s8 mainCursorRow;
|
||||
/*0x07*/ u8 unk_07;
|
||||
/*0x08*/ u8 stateBackup;
|
||||
/*0x09*/ u8 unk_09;
|
||||
/*0x0A*/ s8 unk_0a;
|
||||
/*0x0B*/ s8 unk_0b;
|
||||
/*0x0C*/ u8 unk_0c;
|
||||
/*0x0D*/ u8 unk_0d;
|
||||
/*0x0E*/ u8 unk_0e;
|
||||
/*0x0F*/ u8 unk_0f;
|
||||
/*0x10*/ s8 unk_10;
|
||||
/*0x11*/ s8 unk_11;
|
||||
/*0x07*/ u8 maxWords;
|
||||
/*0x08*/ u8 inputStateBackup;
|
||||
/*0x09*/ bool8 inAlphabetMode;
|
||||
/*0x0A*/ s8 keyboardColumn;
|
||||
/*0x0B*/ s8 keyboardRow;
|
||||
/*0x0C*/ u8 keyboardScrollOffset;
|
||||
/*0x0D*/ u8 keyboardLastRow;
|
||||
/*0x0E*/ u8 wordSelectScrollOffset;
|
||||
/*0x0F*/ u8 wordSelectLastRow;
|
||||
/*0x10*/ s8 wordSelectColumn;
|
||||
/*0x11*/ s8 wordSelectRow;
|
||||
/*0x12*/ u8 displayedPersonType;
|
||||
/*0x13*/ u8 unk_13;
|
||||
/*0x14*/ u8 unk_14[0x20];
|
||||
/*0x13*/ u8 unused; // Set to 0, never read
|
||||
/*0x14*/ u8 quizTitle[32];
|
||||
/*0x34*/ const u8 *titleText;
|
||||
/*0x38*/ u16 *words;
|
||||
/*0x3C*/ u16 ecWordBuffer[9];
|
||||
/*0x38*/ u16 *savedPhrase;
|
||||
/*0x3C*/ u16 currentPhrase[9];
|
||||
};
|
||||
|
||||
struct Unk203A11C
|
||||
struct EasyChatScreenControl
|
||||
{
|
||||
u16 unk0;
|
||||
u16 funcState;
|
||||
u16 windowId;
|
||||
u16 unk4;
|
||||
u8 unk6;
|
||||
u8 unk7;
|
||||
s8 unk8;
|
||||
u8 unk9;
|
||||
u8 unkA;
|
||||
u8 unkB[0xC1];
|
||||
u8 unkCC[0x202];
|
||||
u16 unk2CE;
|
||||
int unk2D0;
|
||||
int unk2D4;
|
||||
struct Sprite *unk2D8;
|
||||
struct Sprite *unk2DC;
|
||||
struct Sprite *unk2E0;
|
||||
struct Sprite *unk2E4;
|
||||
struct Sprite *unk2E8;
|
||||
struct Sprite *unk2EC;
|
||||
struct Sprite *unk2F0;
|
||||
struct Sprite *unk2F4;
|
||||
struct Sprite *unk2F8;
|
||||
struct Sprite *unk2FC;
|
||||
u16 unk300[BG_SCREEN_SIZE / 2];
|
||||
u16 unkB00[BG_SCREEN_SIZE / 2];
|
||||
u16 currentFuncId;
|
||||
u8 curWindowAnimState;
|
||||
u8 destWindowAnimState;
|
||||
s8 windowAnimStateDir;
|
||||
u8 modeWindowState;
|
||||
bool8 fourFooterOptions; // Never read (template is used directly instead)
|
||||
u8 phrasePrintBuffer[193];
|
||||
u8 wordSelectPrintBuffer[514];
|
||||
u16 scrollOffset;
|
||||
int scrollDest;
|
||||
int scrollSpeed;
|
||||
struct Sprite *mainCursorSprite;
|
||||
struct Sprite *rectangleCursorSpriteRight;
|
||||
struct Sprite *rectangleCursorSpriteLeft;
|
||||
struct Sprite *wordSelectCursorSprite;
|
||||
struct Sprite *buttonWindowSprite;
|
||||
struct Sprite *modeWindowSprite;
|
||||
struct Sprite *scrollIndicatorUpSprite;
|
||||
struct Sprite *scrollIndicatorDownSprite;
|
||||
struct Sprite *startButtonSprite;
|
||||
struct Sprite *selectButtonSprite;
|
||||
u16 bg1TilemapBuffer[BG_SCREEN_SIZE / 2];
|
||||
u16 bg3TilemapBuffer[BG_SCREEN_SIZE / 2];
|
||||
};
|
||||
|
||||
struct EasyChatPhraseFrameDimensions
|
||||
@ -104,15 +104,15 @@ struct EasyChatGroup
|
||||
u16 numEnabledWords;
|
||||
};
|
||||
|
||||
struct Unk203A120
|
||||
struct EasyChatScreenWordData
|
||||
{
|
||||
u16 unk0;
|
||||
u16 unk2[EC_NUM_GROUPS];
|
||||
u16 unk2E[27];
|
||||
u16 unk64[27][270];
|
||||
u8 filler3958[0x2C];
|
||||
u16 unk3984[0x10E];
|
||||
u16 unk3BA0;
|
||||
u16 numUnlockedGroups;
|
||||
u16 unlockedGroupIds[EC_NUM_GROUPS];
|
||||
u16 numUnlockedAlphabetWords[EC_NUM_ALPHABET_GROUPS];
|
||||
u16 unlockedAlphabetWords[EC_NUM_ALPHABET_GROUPS][EC_MAX_WORDS_IN_GROUP];
|
||||
u8 unused[44];
|
||||
u16 selectedGroupWords[EC_MAX_WORDS_IN_GROUP];
|
||||
u16 numSelectedGroupWords;
|
||||
}; /*size = 0x3BA4*/
|
||||
|
||||
struct EasyChatWordsByLetter
|
||||
@ -124,7 +124,7 @@ struct EasyChatWordsByLetter
|
||||
void InitEasyChatPhrases(void);
|
||||
void ShowEasyChatScreen(void);
|
||||
u8 * CopyEasyChatWord(u8 *dest, u16 word);
|
||||
bool32 sub_811F8D8(int word);
|
||||
bool32 IsEasyChatAnswerUnlocked(int word);
|
||||
void InitializeEasyChatWordArray(u16 *words, u16 length);
|
||||
u8 *ConvertEasyChatWordsToString(u8 *dest, const u16 *src, u16 columns, u16 rows);
|
||||
bool8 IsBardWordInvalid(u16 word);
|
||||
@ -133,7 +133,7 @@ u16 GetNewHipsterPhraseToTeach(void);
|
||||
u16 EasyChat_GetNumWordsInGroup(u8);
|
||||
u16 GetRandomEasyChatWordFromUnlockedGroup(u16);
|
||||
void DoEasyChatScreen(u8 type, u16 *words, MainCallback callback, u8 displayedPersonType);
|
||||
void sub_811F8BC(void);
|
||||
void InitQuestionnaireWords(void);
|
||||
void UnlockAdditionalPhrase(u8 additionalPhraseId);
|
||||
|
||||
#endif // GUARD_EASYCHAT_H
|
||||
|
@ -893,7 +893,7 @@ struct MysteryEventStruct
|
||||
/*0x000 0x322C*/ struct WonderNewsSaveStruct wonderNews;
|
||||
/*0x1c0 0x33EC*/ struct WonderCardSaveStruct wonderCard;
|
||||
/*0x310 0x353C*/ struct MEventBuffer_3430 buffer_310;
|
||||
/*0x338 0x3564*/ u16 unk_338[4];
|
||||
/*0x338 0x3564*/ u16 questionnaireWords[NUM_QUESTIONNAIRE_WORDS];
|
||||
/*0x340 0x356C*/ struct MysteryEventStruct unk_340;
|
||||
/*0x344 0x3570*/ u32 unk_344[2][5];
|
||||
}; // 0x36C 0x3598
|
||||
|
@ -4977,10 +4977,10 @@ extern const u32 gEasyChatWindow_Gfx[];
|
||||
extern const u32 gEasyChatWindow_Tilemap[];
|
||||
extern const u32 gEasyChatMode_Gfx[];
|
||||
extern const u16 gEasyChatMode_Pal[];
|
||||
extern const u32 gEasyChatCursor_Gfx[];
|
||||
extern const u16 gEasyChatCursor_Pal[];
|
||||
extern const u32 gEasyChatRightWindow_Gfx[];
|
||||
extern const u16 gEasyChatRightWindow_Pal[];
|
||||
extern const u32 gEasyChatRectangleCursor_Gfx[];
|
||||
extern const u16 gEasyChatRectangleCursor_Pal[];
|
||||
extern const u32 gEasyChatButtonWindow_Gfx[];
|
||||
extern const u16 gEasyChatButtonWindow_Pal[];
|
||||
|
||||
// Use Pokeblock
|
||||
extern const u32 gUsePokeblockCondition_Gfx[];
|
||||
@ -5025,4 +5025,42 @@ extern const u16 gObjectEventPal_May[];
|
||||
extern const u16 gObjectEventPal_RubySapphireBrendan[];
|
||||
extern const u16 gObjectEventPal_RubySapphireMay[];
|
||||
|
||||
// Mail
|
||||
extern const u16 gMailPalette_Orange[];
|
||||
extern const u16 gMailPalette_Harbor[];
|
||||
extern const u16 gMailPalette_Glitter[];
|
||||
extern const u16 gMailPalette_Mech[];
|
||||
extern const u16 gMailPalette_Wood[];
|
||||
extern const u16 gMailPalette_Wave[];
|
||||
extern const u16 gMailPalette_Bead[];
|
||||
extern const u16 gMailPalette_Shadow[];
|
||||
extern const u16 gMailPalette_Tropic[];
|
||||
extern const u16 gMailPalette_Dream[];
|
||||
extern const u16 gMailPalette_Fab[];
|
||||
extern const u16 gMailPalette_Retro[];
|
||||
extern const u8 gMailTiles_Orange[];
|
||||
extern const u8 gMailTilemap_Orange[];
|
||||
extern const u8 gMailTiles_Harbor[];
|
||||
extern const u8 gMailTilemap_Harbor[];
|
||||
extern const u8 gMailTiles_Glitter[];
|
||||
extern const u8 gMailTilemap_Glitter[];
|
||||
extern const u8 gMailTiles_Mech[];
|
||||
extern const u8 gMailTilemap_Mech[];
|
||||
extern const u8 gMailTiles_Wood[];
|
||||
extern const u8 gMailTilemap_Wood[];
|
||||
extern const u8 gMailTiles_Wave[];
|
||||
extern const u8 gMailTilemap_Wave[];
|
||||
extern const u8 gMailTiles_Bead[];
|
||||
extern const u8 gMailTilemap_Bead[];
|
||||
extern const u8 gMailTiles_Shadow[];
|
||||
extern const u8 gMailTilemap_Shadow[];
|
||||
extern const u8 gMailTiles_Tropic[];
|
||||
extern const u8 gMailTilemap_Tropic[];
|
||||
extern const u8 gMailTiles_Dream[];
|
||||
extern const u8 gMailTilemap_Dream[];
|
||||
extern const u8 gMailTiles_Fab[];
|
||||
extern const u8 gMailTilemap_Fab[];
|
||||
extern const u8 gMailTiles_Retro[];
|
||||
extern const u8 gMailTilemap_Retro[];
|
||||
|
||||
#endif //GUARD_GRAPHICS_H
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "menu.h"
|
||||
#include "list_menu.h"
|
||||
|
||||
void sub_81DB52C(u8 *src);
|
||||
void ConvertInternationalPlayerName(u8 *src);
|
||||
void TVShowConvertInternationalString(u8 *dest, const u8 *src, int language);
|
||||
int GetStringCenterAlignXOffset(int fontId, const u8 *str, int totalWidth);
|
||||
int GetStringRightAlignXOffset(int fontId, const u8 *str, int totalWidth);
|
||||
@ -16,7 +16,7 @@ int Intl_GetListMenuWidth(const struct ListMenuTemplate *listMenu);
|
||||
void CopyMonCategoryText(int dexNum, u8 *dest);
|
||||
u8 *sub_81DB494(u8 *str, int fontId, const u8 *str2, int totalStringWidth);
|
||||
void PadNameString(u8 *dest, u8 padChar);
|
||||
void sub_81DB554(u8 *, u8);
|
||||
void ConvertInternationalPlayerNameStripChar(u8 *, u8);
|
||||
void sub_81DB5AC(u8 *);
|
||||
int sub_81DB604(u8 *);
|
||||
void sub_81DB620(int windowId, int columnStart, int rowStart, int numFillTiles, int numRows);
|
||||
|
@ -21,7 +21,7 @@ struct MEventStruct_Unk1442CC
|
||||
u16 unk_0C;
|
||||
u32 unk_10;
|
||||
u16 unk_14;
|
||||
u16 unk_16[4];
|
||||
u16 unk_16[NUM_QUESTIONNAIRE_WORDS];
|
||||
struct MEventBuffer_3430_Sub unk_20;
|
||||
u8 unk_44;
|
||||
u8 unk_45[7];
|
||||
@ -36,7 +36,7 @@ struct WonderNews *GetSavedWonderNews(void);
|
||||
struct WonderCard *GetSavedWonderCard(void);
|
||||
struct MEventBuffer_3430_Sub *sav1_get_mevent_buffer_2(void);
|
||||
struct MysteryEventStruct *sub_801B044(void);
|
||||
u16 *sub_801B058(void);
|
||||
u16 *GetQuestionnaireWordsPtr(void);
|
||||
void DestroyWonderNews(void);
|
||||
bool32 sub_801B078(const struct WonderNews *src);
|
||||
bool32 ValidateReceivedWonderNews(void);
|
||||
|
@ -14,6 +14,10 @@
|
||||
#define PALETTE_FADE_STATUS_DONE 0
|
||||
#define PALETTE_FADE_STATUS_LOADING 0xFF
|
||||
|
||||
#define PALETTES_BG 0x0000FFFF
|
||||
#define PALETTES_OBJECTS 0xFFFF0000
|
||||
#define PALETTES_ALL (PALETTES_BG | PALETTES_OBJECTS)
|
||||
|
||||
enum
|
||||
{
|
||||
FAST_FADE_IN_FROM_WHITE,
|
||||
|
@ -73,7 +73,7 @@ struct PlayerPCItemPageStruct
|
||||
u8 pageItems;
|
||||
u8 count;
|
||||
u8 filler[3];
|
||||
u8 scrollIndicatorId;
|
||||
u8 scrollIndicatorTaskId;
|
||||
};
|
||||
|
||||
// Exported type declarations
|
||||
|
@ -10,14 +10,14 @@ const u8 *GetMonIconPtr(u16 speciesId, u32 personality, u32 frameNo);
|
||||
const u16 *GetValidMonIconPalettePtr(u16 speciesId);
|
||||
u16 GetIconSpecies(u16 species, u32 personality);
|
||||
u16 GetUnownLetterByPersonality(u32 personality);
|
||||
u16 sub_80D2E84(u16 speciesId);
|
||||
u16 GetIconSpeciesNoPersonality(u16 speciesId);
|
||||
void LoadMonIconPalettes(void);
|
||||
void LoadMonIconPalette(u16 species);
|
||||
void FreeMonIconPalettes(void);
|
||||
u8 sub_80D2D78(u16 species, void (*callback)(struct Sprite *), s16 x, s16 y, u8 subpriority, bool32 extra);
|
||||
u8 CreateMonIconNoPersonality(u16 species, void (*callback)(struct Sprite *), s16 x, s16 y, u8 subpriority, bool32 handleDeoxys);
|
||||
void FreeMonIconPalette(u16 species);
|
||||
void FreeAndDestroyMonIconSprite(struct Sprite *sprite);
|
||||
u8 CreateMonIcon(u16 species, void (*callback)(struct Sprite *), s16 x, s16 y, u8 subpriority, u32 personality, bool32 extra);
|
||||
u8 CreateMonIcon(u16 species, void (*callback)(struct Sprite *), s16 x, s16 y, u8 subpriority, u32 personality, bool32 handleDeoxys);
|
||||
u8 UpdateMonIconFrame(struct Sprite *sprite);
|
||||
void LoadMonIconPalette(u16 species);
|
||||
void sub_80D328C(struct Sprite *sprite);
|
||||
|
@ -26,8 +26,6 @@ u8 SetupBytecodeScript(struct ScriptContext *ctx, const u8 *ptr);
|
||||
void SetupNativeScript(struct ScriptContext *ctx, bool8 (*ptr)(void));
|
||||
void StopScript(struct ScriptContext *ctx);
|
||||
bool8 RunScriptCommand(struct ScriptContext *ctx);
|
||||
u8 ScriptPush(struct ScriptContext *ctx, const u8 *ptr);
|
||||
const u8 *ScriptPop(struct ScriptContext *ctx);
|
||||
void ScriptJump(struct ScriptContext *ctx, const u8 *ptr);
|
||||
void ScriptCall(struct ScriptContext *ctx, const u8 *ptr);
|
||||
void ScriptReturn(struct ScriptContext *ctx);
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
#define HEAD_SENTINEL 0xFE
|
||||
#define TAIL_SENTINEL 0xFF
|
||||
#define TASK_NONE TAIL_SENTINEL
|
||||
|
||||
#define NUM_TASKS 16
|
||||
#define NUM_TASK_DATA 16
|
||||
|
@ -144,7 +144,7 @@ void ResetApprenticeStruct(struct Apprentice *apprentice)
|
||||
u8 i;
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(apprentice->speechWon); i++)
|
||||
apprentice->speechWon[i] = 0xFFFF;
|
||||
apprentice->speechWon[i] = EC_EMPTY_WORD;
|
||||
|
||||
apprentice->playerName[0] = EOS;
|
||||
apprentice->id = NUM_APPRENTICES;
|
||||
@ -158,7 +158,7 @@ void ResetAllApprenticeData(void)
|
||||
for (i = 0; i < APPRENTICE_COUNT; i++)
|
||||
{
|
||||
for (j = 0; j < ARRAY_COUNT(gSaveBlock2Ptr->apprentices[i].speechWon); j++)
|
||||
gSaveBlock2Ptr->apprentices[i].speechWon[j] = 0xFFFF;
|
||||
gSaveBlock2Ptr->apprentices[i].speechWon[j] = EC_EMPTY_WORD;
|
||||
gSaveBlock2Ptr->apprentices[i].id = NUM_APPRENTICES;
|
||||
gSaveBlock2Ptr->apprentices[i].playerName[0] = EOS;
|
||||
gSaveBlock2Ptr->apprentices[i].lvlMode = 0;
|
||||
|
@ -28,7 +28,7 @@ const struct BardSound *GetWordSounds(u16 word)
|
||||
switch (category)
|
||||
{
|
||||
case EC_GROUP_POKEMON:
|
||||
case EC_GROUP_POKEMON_2:
|
||||
case EC_GROUP_POKEMON_NATIONAL:
|
||||
ptr = gBardSounds_Pokemon;
|
||||
break;
|
||||
case EC_GROUP_MOVE_1:
|
||||
|
@ -1814,8 +1814,8 @@ void ClearBattleAnimationVars(void)
|
||||
for (i = 0; i < ANIM_ARGS_COUNT; i++)
|
||||
gBattleAnimArgs[i] = 0;
|
||||
|
||||
sMonAnimTaskIdArray[0] = 0xFF;
|
||||
sMonAnimTaskIdArray[1] = 0xFF;
|
||||
sMonAnimTaskIdArray[0] = TASK_NONE;
|
||||
sMonAnimTaskIdArray[1] = TASK_NONE;
|
||||
gAnimMoveTurn = 0;
|
||||
sAnimBackgroundFadeState = 0;
|
||||
sAnimMoveIndex = 0;
|
||||
@ -1861,8 +1861,8 @@ void LaunchBattleAnimation(const u8 *const animsTable[], u16 tableId, bool8 isMo
|
||||
for (i = 0; i < ANIM_ARGS_COUNT; i++)
|
||||
gBattleAnimArgs[i] = 0;
|
||||
|
||||
sMonAnimTaskIdArray[0] = 0xFF;
|
||||
sMonAnimTaskIdArray[1] = 0xFF;
|
||||
sMonAnimTaskIdArray[0] = TASK_NONE;
|
||||
sMonAnimTaskIdArray[1] = TASK_NONE;
|
||||
sBattleAnimScriptPtr = animsTable[tableId];
|
||||
gAnimScriptActive = TRUE;
|
||||
gAnimFramesToWait = 0;
|
||||
@ -2106,7 +2106,7 @@ static void ScriptCmd_end(void)
|
||||
|
||||
// Keep waiting as long as there are animations to be done.
|
||||
if (gAnimVisualTaskCount != 0 || gAnimSoundTaskCount != 0
|
||||
|| sMonAnimTaskIdArray[0] != 0xFF || sMonAnimTaskIdArray[1] != 0xFF)
|
||||
|| sMonAnimTaskIdArray[0] != TASK_NONE || sMonAnimTaskIdArray[1] != TASK_NONE)
|
||||
{
|
||||
sSoundAnimFramesToWait = 0;
|
||||
gAnimFramesToWait = 1;
|
||||
@ -2300,7 +2300,7 @@ void MoveBattlerSpriteToBG(u8 battlerId, bool8 toBG_2, bool8 setSpriteInvisible)
|
||||
RequestDma3Fill(0xFF, (void*)(BG_SCREEN_ADDR(28)), 0x1000, 0);
|
||||
}
|
||||
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
CpuFill16(0, animBg.bgTiles, 0x1000);
|
||||
CpuFill16(0xFF, animBg.bgTilemap, 0x800);
|
||||
|
||||
@ -2371,7 +2371,7 @@ static void sub_80A46A0(void)
|
||||
|
||||
if (IsSpeciesNotUnown(gContestResources->moveAnim->species))
|
||||
{
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
ptr = animBg.bgTilemap;
|
||||
for (i = 0; i < 8; i++)
|
||||
{
|
||||
@ -2411,7 +2411,7 @@ void sub_80A4720(u16 a, u16 *b, u32 c, u8 d)
|
||||
void sub_80A477C(bool8 to_BG2)
|
||||
{
|
||||
struct BattleAnimBgData animBg;
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
|
||||
if (!to_BG2 || IsContest())
|
||||
{
|
||||
@ -2435,7 +2435,7 @@ static void task_pA_ma0A_obj_to_bg_pal(u8 taskId)
|
||||
|
||||
spriteId = gTasks[taskId].data[0];
|
||||
palIndex = gTasks[taskId].data[6];
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
x = gTasks[taskId].data[1] - (gSprites[spriteId].pos1.x + gSprites[spriteId].pos2.x);
|
||||
y = gTasks[taskId].data[2] - (gSprites[spriteId].pos1.y + gSprites[spriteId].pos2.y);
|
||||
|
||||
@ -2482,9 +2482,9 @@ static void ScriptCmd_clearmonbg(void)
|
||||
else
|
||||
battlerId = gBattleAnimTarget;
|
||||
|
||||
if (sMonAnimTaskIdArray[0] != 0xFF)
|
||||
if (sMonAnimTaskIdArray[0] != TASK_NONE)
|
||||
gSprites[gBattlerSpriteIds[battlerId]].invisible = FALSE;
|
||||
if (animBattlerId > 1 && sMonAnimTaskIdArray[1] != 0xFF)
|
||||
if (animBattlerId > 1 && sMonAnimTaskIdArray[1] != TASK_NONE)
|
||||
gSprites[gBattlerSpriteIds[battlerId ^ BIT_FLANK]].invisible = FALSE;
|
||||
else
|
||||
animBattlerId = 0;
|
||||
@ -2508,17 +2508,17 @@ static void sub_80A4980(u8 taskId)
|
||||
else
|
||||
to_BG2 = TRUE;
|
||||
|
||||
if (sMonAnimTaskIdArray[0] != 0xFF)
|
||||
if (sMonAnimTaskIdArray[0] != TASK_NONE)
|
||||
{
|
||||
sub_80A477C(to_BG2);
|
||||
DestroyTask(sMonAnimTaskIdArray[0]);
|
||||
sMonAnimTaskIdArray[0] = 0xFF;
|
||||
sMonAnimTaskIdArray[0] = TASK_NONE;
|
||||
}
|
||||
if (gTasks[taskId].data[0] > 1)
|
||||
{
|
||||
sub_80A477C(to_BG2 ^ 1);
|
||||
DestroyTask(sMonAnimTaskIdArray[1]);
|
||||
sMonAnimTaskIdArray[1] = 0xFF;
|
||||
sMonAnimTaskIdArray[1] = TASK_NONE;
|
||||
}
|
||||
DestroyTask(taskId);
|
||||
}
|
||||
@ -3362,7 +3362,7 @@ static void ScriptCmd_invisible(void)
|
||||
u8 spriteId;
|
||||
|
||||
spriteId = GetAnimBattlerSpriteId(sBattleAnimScriptPtr[1]);
|
||||
if (spriteId != 0xFF)
|
||||
if (spriteId != SPRITE_NONE)
|
||||
gSprites[spriteId].invisible = TRUE;
|
||||
|
||||
sBattleAnimScriptPtr += 2;
|
||||
@ -3373,7 +3373,7 @@ static void ScriptCmd_visible(void)
|
||||
u8 spriteId;
|
||||
|
||||
spriteId = GetAnimBattlerSpriteId(sBattleAnimScriptPtr[1]);
|
||||
if (spriteId != 0xFF)
|
||||
if (spriteId != SPRITE_NONE)
|
||||
gSprites[spriteId].invisible = FALSE;
|
||||
|
||||
sBattleAnimScriptPtr += 2;
|
||||
@ -3400,7 +3400,7 @@ static void ScriptCmd_doublebattle_2D(void)
|
||||
r4 = GetBattlerSpriteBGPriorityRank(gBattleAnimTarget);
|
||||
spriteId = GetAnimBattlerSpriteId(ANIM_TARGET);
|
||||
}
|
||||
if (spriteId != 0xFF)
|
||||
if (spriteId != SPRITE_NONE)
|
||||
{
|
||||
gSprites[spriteId].invisible = FALSE;
|
||||
if (r4 == 2)
|
||||
@ -3436,7 +3436,7 @@ static void ScriptCmd_doublebattle_2E(void)
|
||||
spriteId = GetAnimBattlerSpriteId(ANIM_TARGET);
|
||||
}
|
||||
|
||||
if (spriteId != 0xFF && r4 == 2)
|
||||
if (spriteId != SPRITE_NONE && r4 == 2)
|
||||
gSprites[spriteId].oam.priority = 2;
|
||||
}
|
||||
}
|
||||
|
@ -423,7 +423,7 @@ void AnimTask_MoveAttackerMementoShadow(u8 taskId)
|
||||
task->data[3] = GetBattlerSpriteBGPriorityRank(gBattleAnimAttacker);
|
||||
if (task->data[3] == 1)
|
||||
{
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
task->data[10] = gBattle_BG1_Y;
|
||||
SetGpuReg(REG_OFFSET_BLDCNT, BLDCNT_TGT2_ALL | BLDCNT_EFFECT_BLEND | BLDCNT_TGT1_BG1);
|
||||
FillPalette(0, animBg.paletteId * 16, 32);
|
||||
@ -564,7 +564,7 @@ void AnimTask_MoveTargetMementoShadow(u8 taskId)
|
||||
case 1:
|
||||
if (task->data[3] == 1)
|
||||
{
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
task->data[10] = gBattle_BG1_Y;
|
||||
FillPalette(0, animBg.paletteId * 16, 32);
|
||||
}
|
||||
@ -764,7 +764,7 @@ static void sub_8114374(u8 priority)
|
||||
for (i = 0; i < MAX_BATTLERS_COUNT; i++)
|
||||
{
|
||||
u8 spriteId = GetAnimBattlerSpriteId(i);
|
||||
if (spriteId != 0xFF)
|
||||
if (spriteId != SPRITE_NONE)
|
||||
gSprites[spriteId].oam.priority = priority;
|
||||
}
|
||||
}
|
||||
@ -860,7 +860,7 @@ void AnimTask_MetallicShine(u8 taskId)
|
||||
spriteId = GetAnimBattlerSpriteId(ANIM_ATTACKER);
|
||||
newSpriteId = sub_80A89C8(gBattleAnimAttacker, spriteId, species);
|
||||
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
AnimLoadCompressedBgTilemap(animBg.bgId, gMetalShineTilemap);
|
||||
AnimLoadCompressedBgGfx(animBg.bgId, gMetalShineGfx, animBg.tilesOffset);
|
||||
LoadCompressedPalette(gMetalShinePalette, animBg.paletteId * 16, 32);
|
||||
@ -903,7 +903,7 @@ static void AnimTask_MetallicShine_Step(u8 taskId)
|
||||
SetGreyscaleOrOriginalPalette(paletteNum, TRUE);
|
||||
|
||||
DestroySprite(&gSprites[gTasks[taskId].data[0]]);
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
sub_80A6C68(animBg.bgId);
|
||||
if (gTasks[taskId].data[6] == 1)
|
||||
gSprites[gBattlerSpriteIds[BATTLE_PARTNER(gBattleAnimAttacker)]].oam.priority++;
|
||||
@ -960,7 +960,7 @@ void AnimTask_SetGreyscaleOrOriginalPal(u8 taskId)
|
||||
calcSpriteId = TRUE;
|
||||
break;
|
||||
default:
|
||||
spriteId = 0xFF;
|
||||
spriteId = SPRITE_NONE;
|
||||
break;
|
||||
}
|
||||
|
||||
@ -970,10 +970,10 @@ void AnimTask_SetGreyscaleOrOriginalPal(u8 taskId)
|
||||
if (IsBattlerSpriteVisible(battler))
|
||||
spriteId = gBattlerSpriteIds[battler];
|
||||
else
|
||||
spriteId = 0xFF;
|
||||
spriteId = SPRITE_NONE;
|
||||
}
|
||||
|
||||
if (spriteId != 0xFF)
|
||||
if (spriteId != SPRITE_NONE)
|
||||
SetGreyscaleOrOriginalPalette(gSprites[spriteId].oam.paletteNum + 16, gBattleAnimArgs[1]);
|
||||
|
||||
DestroyAnimVisualTask(taskId);
|
||||
|
@ -13,11 +13,11 @@ static void AnimDragonDanceOrb_Step(struct Sprite *);
|
||||
static void AnimOverheatFlame(struct Sprite *);
|
||||
static void AnimOverheatFlame_Step(struct Sprite *);
|
||||
static void AnimTask_DragonDanceWaver_Step(u8);
|
||||
static void sub_8113574(struct Task *);
|
||||
static void UpdateDragonDanceScanlineEffect(struct Task *);
|
||||
|
||||
EWRAM_DATA static u16 gUnknown_0203A100[7] = {0};
|
||||
EWRAM_DATA static u16 gUnusedOverheatData[7] = {0};
|
||||
|
||||
static const union AnimCmd gUnknown_08596E60[] =
|
||||
static const union AnimCmd sAnim_OutrageOverheatFire_0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 4),
|
||||
ANIMCMD_FRAME(16, 4),
|
||||
@ -27,9 +27,9 @@ static const union AnimCmd gUnknown_08596E60[] =
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
static const union AnimCmd *const gUnknown_08596E78[] =
|
||||
static const union AnimCmd *const sAnims_OutrageOverheatFire[] =
|
||||
{
|
||||
gUnknown_08596E60,
|
||||
sAnim_OutrageOverheatFire_0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gOutrageFlameSpriteTemplate =
|
||||
@ -37,7 +37,7 @@ const struct SpriteTemplate gOutrageFlameSpriteTemplate =
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gOamData_AffineOff_ObjNormal_32x32,
|
||||
.anims = gUnknown_08596E78,
|
||||
.anims = sAnims_OutrageOverheatFire,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = AnimOutrageFlame,
|
||||
@ -181,7 +181,7 @@ const struct SpriteTemplate gOverheatFlameSpriteTemplate =
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gOamData_AffineOff_ObjNormal_32x32,
|
||||
.anims = gUnknown_08596E78,
|
||||
.anims = sAnims_OutrageOverheatFire,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = AnimOverheatFlame,
|
||||
@ -212,7 +212,7 @@ static void AnimOutrageFlame(struct Sprite *sprite)
|
||||
sprite->callback = TranslateSpriteLinearAndFlicker;
|
||||
}
|
||||
|
||||
static void sub_8113100(struct Sprite *sprite)
|
||||
static void StartDragonFireTranslation(struct Sprite *sprite)
|
||||
{
|
||||
SetSpriteCoordsToAnimAttackerCoords(sprite);
|
||||
sprite->data[2] = GetBattlerSpriteCoord(gBattleAnimTarget, 2);
|
||||
@ -263,7 +263,7 @@ static void AnimDragonFireToTarget(struct Sprite *sprite)
|
||||
if (GetBattlerSide(gBattleAnimAttacker) != B_SIDE_PLAYER)
|
||||
StartSpriteAffineAnim(sprite, 1);
|
||||
|
||||
sub_8113100(sprite);
|
||||
StartDragonFireTranslation(sprite);
|
||||
}
|
||||
|
||||
static void AnimDragonDanceOrb(struct Sprite *sprite)
|
||||
@ -328,27 +328,27 @@ static void AnimDragonDanceOrb_Step(struct Sprite *sprite)
|
||||
// Used by Dragon Dance
|
||||
void AnimTask_DragonDanceWaver(u8 taskId)
|
||||
{
|
||||
struct ScanlineEffectParams sp;
|
||||
struct ScanlineEffectParams scanlineParams;
|
||||
struct Task *task = &gTasks[taskId];
|
||||
u16 i;
|
||||
u8 r1;
|
||||
u8 y;
|
||||
if (GetBattlerSpriteBGPriorityRank(gBattleAnimAttacker) == 1)
|
||||
{
|
||||
sp.dmaDest = ®_BG1HOFS;
|
||||
scanlineParams.dmaDest = ®_BG1HOFS;
|
||||
task->data[2] = gBattle_BG1_X;
|
||||
}
|
||||
else
|
||||
{
|
||||
sp.dmaDest = ®_BG2HOFS;
|
||||
scanlineParams.dmaDest = ®_BG2HOFS;
|
||||
task->data[2] = gBattle_BG2_X;
|
||||
}
|
||||
|
||||
sp.dmaControl = 0xA2600001;
|
||||
sp.initState = 1;
|
||||
sp.unused9 = 0;
|
||||
r1 = GetBattlerYCoordWithElevation(gBattleAnimAttacker);
|
||||
task->data[3] = r1 - 32;
|
||||
task->data[4] = r1 + 32;
|
||||
scanlineParams.dmaControl = SCANLINE_EFFECT_DMACNT_16BIT;
|
||||
scanlineParams.initState = 1;
|
||||
scanlineParams.unused9 = 0;
|
||||
y = GetBattlerYCoordWithElevation(gBattleAnimAttacker);
|
||||
task->data[3] = y - 32;
|
||||
task->data[4] = y + 32;
|
||||
if (task->data[3] < 0)
|
||||
task->data[3] = 0;
|
||||
|
||||
@ -358,7 +358,7 @@ void AnimTask_DragonDanceWaver(u8 taskId)
|
||||
gScanlineEffectRegBuffers[1][i] = task->data[2];
|
||||
}
|
||||
|
||||
ScanlineEffect_SetParams(sp);
|
||||
ScanlineEffect_SetParams(scanlineParams);
|
||||
task->func = AnimTask_DragonDanceWaver_Step;
|
||||
}
|
||||
|
||||
@ -374,12 +374,12 @@ static void AnimTask_DragonDanceWaver_Step(u8 taskId)
|
||||
if (++task->data[6] == 3)
|
||||
task->data[0]++;
|
||||
}
|
||||
sub_8113574(task);
|
||||
UpdateDragonDanceScanlineEffect(task);
|
||||
break;
|
||||
case 1:
|
||||
if (++task->data[1] > 0x3C)
|
||||
task->data[0]++;
|
||||
sub_8113574(task);
|
||||
UpdateDragonDanceScanlineEffect(task);
|
||||
break;
|
||||
case 2:
|
||||
if (++task->data[7] > 1)
|
||||
@ -388,7 +388,7 @@ static void AnimTask_DragonDanceWaver_Step(u8 taskId)
|
||||
if (--task->data[6] == 0)
|
||||
task->data[0]++;
|
||||
}
|
||||
sub_8113574(task);
|
||||
UpdateDragonDanceScanlineEffect(task);
|
||||
break;
|
||||
case 3:
|
||||
gScanlineEffect.state = 3;
|
||||
@ -400,14 +400,14 @@ static void AnimTask_DragonDanceWaver_Step(u8 taskId)
|
||||
}
|
||||
}
|
||||
|
||||
static void sub_8113574(struct Task *task)
|
||||
static void UpdateDragonDanceScanlineEffect(struct Task *task)
|
||||
{
|
||||
u16 r3 = task->data[5];
|
||||
u16 sineIndex = task->data[5];
|
||||
u16 i;
|
||||
for (i = task->data[3]; i <= task->data[4]; i++)
|
||||
{
|
||||
gScanlineEffectRegBuffers[gScanlineEffect.srcBuffer][i] = ((gSineTable[r3] * task->data[6]) >> 7) + task->data[2];
|
||||
r3 = (r3 + 8) & 0xFF;
|
||||
gScanlineEffectRegBuffers[gScanlineEffect.srcBuffer][i] = ((gSineTable[sineIndex] * task->data[6]) >> 7) + task->data[2];
|
||||
sineIndex = (sineIndex + 8) & 0xFF;
|
||||
}
|
||||
|
||||
task->data[5] = (task->data[5] + 9) & 0xFF;
|
||||
@ -415,18 +415,18 @@ static void sub_8113574(struct Task *task)
|
||||
|
||||
static void AnimOverheatFlame(struct Sprite *sprite)
|
||||
{
|
||||
int r6 = (gBattleAnimArgs[2] * 3) / 5;
|
||||
int i;
|
||||
int yAmplitude = (gBattleAnimArgs[2] * 3) / 5;
|
||||
sprite->pos1.x = GetBattlerSpriteCoord(gBattleAnimAttacker, 2);
|
||||
sprite->pos1.y = GetBattlerSpriteCoord(gBattleAnimAttacker, 3) + gBattleAnimArgs[4];
|
||||
sprite->data[1] = Cos(gBattleAnimArgs[1], gBattleAnimArgs[2]);
|
||||
sprite->data[2] = Sin(gBattleAnimArgs[1], r6);
|
||||
sprite->data[2] = Sin(gBattleAnimArgs[1], yAmplitude);
|
||||
sprite->pos1.x += sprite->data[1] * gBattleAnimArgs[0];
|
||||
sprite->pos1.y += sprite->data[2] * gBattleAnimArgs[0];
|
||||
sprite->data[3] = gBattleAnimArgs[3];
|
||||
sprite->callback = AnimOverheatFlame_Step;
|
||||
for (i = 0; i < 7; i++)
|
||||
gUnknown_0203A100[i] = sprite->data[i];
|
||||
gUnusedOverheatData[i] = sprite->data[i];
|
||||
}
|
||||
|
||||
static void AnimOverheatFlame_Step(struct Sprite *sprite)
|
||||
|
@ -3248,7 +3248,7 @@ void AnimTask_HeartsBackground(u8 taskId)
|
||||
gBattle_BG1_Y = 0;
|
||||
SetGpuReg(REG_OFFSET_BG1HOFS, gBattle_BG1_X);
|
||||
SetGpuReg(REG_OFFSET_BG1VOFS, gBattle_BG1_Y);
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
AnimLoadCompressedBgGfx(animBg.bgId, &gBattleAnimBgImage_Attract, animBg.tilesOffset);
|
||||
AnimLoadCompressedBgTilemapHandleContest(&animBg, &gBattleAnimBgTilemap_Attract, 0);
|
||||
LoadCompressedPalette(&gBattleAnimBgPalette_Attract, animBg.paletteId * 16, 32);
|
||||
@ -3295,7 +3295,7 @@ static void AnimTask_HeartsBackground_Step(u8 taskId)
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
sub_80A6C68(animBg.bgId);
|
||||
gTasks[taskId].data[12]++;
|
||||
break;
|
||||
@ -3326,7 +3326,7 @@ void AnimTask_ScaryFace(u8 taskId)
|
||||
gBattle_BG1_Y = 0;
|
||||
SetGpuReg(REG_OFFSET_BG1HOFS, gBattle_BG1_X);
|
||||
SetGpuReg(REG_OFFSET_BG1VOFS, gBattle_BG1_Y);
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
if (IsContest())
|
||||
AnimLoadCompressedBgTilemapHandleContest(&animBg, &gBattleAnimBgTilemap_ScaryFaceContest, 0);
|
||||
else if (GetBattlerSide(gBattleAnimTarget) == B_SIDE_OPPONENT)
|
||||
@ -3379,7 +3379,7 @@ static void AnimTask_ScaryFace_Step(u8 taskId)
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
sub_80A6C68(1);
|
||||
sub_80A6C68(2);
|
||||
gTasks[taskId].data[12]++;
|
||||
|
@ -2387,7 +2387,7 @@ void AnimTask_MorningSunLightBeam(u8 taskId)
|
||||
if (!IsContest())
|
||||
SetAnimBgAttribute(1, BG_ANIM_CHAR_BASE_BLOCK, 1);
|
||||
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
AnimLoadCompressedBgTilemapHandleContest(&animBg, &gBattleAnimMaskTilemap_LightBeam, 0);
|
||||
if (IsContest())
|
||||
{
|
||||
@ -2450,7 +2450,7 @@ void AnimTask_MorningSunLightBeam(u8 taskId)
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
sub_80A6C68(animBg.bgId);
|
||||
if (!IsContest())
|
||||
SetAnimBgAttribute(1, BG_ANIM_CHAR_BASE_BLOCK, 0);
|
||||
@ -2568,7 +2568,7 @@ void AnimTask_DoomDesireLightBeam(u8 taskId)
|
||||
if (!IsContest())
|
||||
SetAnimBgAttribute(1, BG_ANIM_CHAR_BASE_BLOCK, 1);
|
||||
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
AnimLoadCompressedBgTilemapHandleContest(&animBg, &gBattleAnimMaskTilemap_LightBeam, 0);
|
||||
if (IsContest())
|
||||
{
|
||||
@ -2639,7 +2639,7 @@ void AnimTask_DoomDesireLightBeam(u8 taskId)
|
||||
gTasks[taskId].data[0] = 1;
|
||||
break;
|
||||
case 5:
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
sub_80A6C68(animBg.bgId);
|
||||
if (!IsContest())
|
||||
SetAnimBgAttribute(1, BG_ANIM_CHAR_BASE_BLOCK, 0);
|
||||
@ -3286,7 +3286,7 @@ static void AnimTask_RolePlaySilhouette_Step2(u8 taskId)
|
||||
TrySetSpriteRotScale(&gSprites[spriteId], TRUE, gTasks[taskId].data[10], gTasks[taskId].data[11], 0);
|
||||
if (++gTasks[taskId].data[12] == 9)
|
||||
{
|
||||
sub_80A749C(&gSprites[spriteId]);
|
||||
ResetSpriteRotScale_PreserveAffine(&gSprites[spriteId]);
|
||||
DestroySpriteAndFreeResources_(&gSprites[spriteId]);
|
||||
gTasks[taskId].func = DestroyAnimVisualTaskAndDisableBlend;
|
||||
}
|
||||
|
@ -7,9 +7,9 @@
|
||||
|
||||
static void AnimLightning(struct Sprite *);
|
||||
static void AnimLightning_Step(struct Sprite *);
|
||||
static void sub_810A214(struct Sprite *);
|
||||
static void sub_810A258(struct Sprite *);
|
||||
static void sub_810A274(struct Sprite *);
|
||||
static void AnimUnused_0810A214(struct Sprite *);
|
||||
static void AnimUnused_0810A214_Step(struct Sprite *);
|
||||
static void AnimUnused_0810A274(struct Sprite *);
|
||||
static void AnimSparkElectricity(struct Sprite *);
|
||||
static void AnimZapCannonSpark(struct Sprite *);
|
||||
static void AnimZapCannonSpark_Step(struct Sprite *);
|
||||
@ -29,13 +29,13 @@ static void AnimGrowingChargeOrb(struct Sprite *);
|
||||
static void AnimElectricPuff(struct Sprite *);
|
||||
static void AnimVoltTackleOrbSlide(struct Sprite *);
|
||||
static void AnimVoltTackleOrbSlide_Step(struct Sprite *);
|
||||
static bool8 sub_810B154(struct Task *task, u8 taskId);
|
||||
static bool8 CreateVoltTackleBolt(struct Task *task, u8 taskId);
|
||||
static void AnimVoltTackleBolt(struct Sprite *);
|
||||
static void AnimGrowingShockWaveOrb(struct Sprite *);
|
||||
static bool8 sub_810B430(struct Task *task, u8 taskId);
|
||||
static bool8 CreateShockWaveBoltSprite(struct Task *task, u8 taskId);
|
||||
static void AnimShockWaveProgressingBolt(struct Sprite *);
|
||||
static bool8 sub_810B614(struct Task *task, u8 taskId);
|
||||
static void sub_810B684(struct Sprite *sprite);
|
||||
static bool8 CreateShockWaveLightningSprite(struct Task *task, u8 taskId);
|
||||
static void AnimShockWaveLightning(struct Sprite *sprite);
|
||||
|
||||
static const union AnimCmd sAnim_Lightning[] =
|
||||
{
|
||||
@ -63,7 +63,7 @@ const struct SpriteTemplate gLightningSpriteTemplate =
|
||||
.callback = AnimLightning,
|
||||
};
|
||||
|
||||
static const union AffineAnimCmd gUnknown_085956D8[] =
|
||||
static const union AffineAnimCmd sAnim_Unused_085956D8[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 20),
|
||||
@ -71,24 +71,24 @@ static const union AffineAnimCmd gUnknown_085956D8[] =
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
static const union AffineAnimCmd *const gUnknown_085956F8[] =
|
||||
static const union AffineAnimCmd *const sAnims_Unused_085956F8[] =
|
||||
{
|
||||
gUnknown_085956D8,
|
||||
sAnim_Unused_085956D8,
|
||||
};
|
||||
|
||||
// Unused
|
||||
const struct SpriteTemplate gUnknown_085956FC =
|
||||
const struct SpriteTemplate gUnusedSpriteTemplate_085956FC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gOamData_AffineNormal_ObjNormal_32x32,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085956F8,
|
||||
.callback = sub_810A214,
|
||||
.affineAnims = sAnims_Unused_085956F8,
|
||||
.callback = AnimUnused_0810A214,
|
||||
};
|
||||
|
||||
static const union AnimCmd gUnknown_08595714[] =
|
||||
static const union AnimCmd sAnim_Unused_08595714[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(16, 5),
|
||||
@ -99,21 +99,21 @@ static const union AnimCmd gUnknown_08595714[] =
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
static const union AnimCmd *const gUnknown_08595730[] =
|
||||
static const union AnimCmd *const sAnims_Unused_08595730[] =
|
||||
{
|
||||
gUnknown_08595714,
|
||||
sAnim_Unused_08595714,
|
||||
};
|
||||
|
||||
// Unused
|
||||
const struct SpriteTemplate gUnknown_08595734 =
|
||||
const struct SpriteTemplate gUnusedSpriteTemplate_08595734 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SHOCK,
|
||||
.paletteTag = ANIM_TAG_SHOCK,
|
||||
.oam = &gOamData_AffineOff_ObjNormal_32x32,
|
||||
.anims = gUnknown_08595730,
|
||||
.anims = sAnims_Unused_08595730,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810A274,
|
||||
.callback = AnimUnused_0810A274,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gSparkElectricitySpriteTemplate =
|
||||
@ -473,23 +473,23 @@ static void AnimLightning_Step(struct Sprite *sprite)
|
||||
DestroyAnimSprite(sprite);
|
||||
}
|
||||
|
||||
static void sub_810A214(struct Sprite *sprite)
|
||||
static void AnimUnused_0810A214(struct Sprite *sprite)
|
||||
{
|
||||
if (GetBattlerSide(gBattleAnimAttacker) != B_SIDE_PLAYER)
|
||||
sprite->pos1.x -= gBattleAnimArgs[0];
|
||||
else
|
||||
sprite->pos1.x += gBattleAnimArgs[0];
|
||||
|
||||
sprite->callback = sub_810A258;
|
||||
sprite->callback = AnimUnused_0810A214_Step;
|
||||
}
|
||||
|
||||
static void sub_810A258(struct Sprite *sprite)
|
||||
static void AnimUnused_0810A214_Step(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->affineAnimEnded)
|
||||
DestroySpriteAndMatrix(sprite);
|
||||
}
|
||||
|
||||
static void sub_810A274(struct Sprite *sprite)
|
||||
static void AnimUnused_0810A274(struct Sprite *sprite)
|
||||
{
|
||||
sprite->pos1.x = GetBattlerSpriteCoord(gBattleAnimTarget, BATTLER_COORD_X_2);
|
||||
sprite->pos1.y = GetBattlerSpriteCoord(gBattleAnimTarget, BATTLER_COORD_Y_PIC_OFFSET);
|
||||
@ -1076,7 +1076,7 @@ void AnimTask_VoltTackleBolt(u8 taskId)
|
||||
if (++task->data[2] > 0)
|
||||
{
|
||||
task->data[2] = 0;
|
||||
if (sub_810B154(task, taskId) || sub_810B154(task, taskId))
|
||||
if (CreateVoltTackleBolt(task, taskId) || CreateVoltTackleBolt(task, taskId))
|
||||
task->data[0]++;
|
||||
}
|
||||
break;
|
||||
@ -1086,7 +1086,7 @@ void AnimTask_VoltTackleBolt(u8 taskId)
|
||||
}
|
||||
}
|
||||
|
||||
static bool8 sub_810B154(struct Task *task, u8 taskId)
|
||||
static bool8 CreateVoltTackleBolt(struct Task *task, u8 taskId)
|
||||
{
|
||||
u8 spriteId = CreateSprite(&gVoltTackleBoltSpriteTemplate, task->data[3], task->data[5], 35);
|
||||
if (spriteId != MAX_SPRITES)
|
||||
@ -1169,7 +1169,7 @@ void AnimTask_ShockWaveProgressingBolt(u8 taskId)
|
||||
if (++task->data[1] > 0)
|
||||
{
|
||||
task->data[1] = 0;
|
||||
if (sub_810B430(task, taskId))
|
||||
if (CreateShockWaveBoltSprite(task, taskId))
|
||||
{
|
||||
if (task->data[2] == 5)
|
||||
task->data[0] = 3;
|
||||
@ -1222,7 +1222,7 @@ void AnimTask_ShockWaveProgressingBolt(u8 taskId)
|
||||
}
|
||||
}
|
||||
|
||||
static bool8 sub_810B430(struct Task *task, u8 taskId)
|
||||
static bool8 CreateShockWaveBoltSprite(struct Task *task, u8 taskId)
|
||||
{
|
||||
u8 spriteId = CreateSprite(&gShockWaveProgressingBoltSpriteTemplate, task->data[6], task->data[7], 35);
|
||||
if (spriteId != MAX_SPRITES)
|
||||
@ -1291,7 +1291,7 @@ void AnimTask_ShockWaveLightning(u8 taskId)
|
||||
if (++task->data[1] > 1)
|
||||
{
|
||||
task->data[1] = 0;
|
||||
if (sub_810B614(task, taskId))
|
||||
if (CreateShockWaveLightningSprite(task, taskId))
|
||||
task->data[0]++;
|
||||
}
|
||||
break;
|
||||
@ -1302,13 +1302,13 @@ void AnimTask_ShockWaveLightning(u8 taskId)
|
||||
}
|
||||
}
|
||||
|
||||
bool8 sub_810B614(struct Task *task, u8 taskId)
|
||||
static bool8 CreateShockWaveLightningSprite(struct Task *task, u8 taskId)
|
||||
{
|
||||
u8 spriteId = CreateSprite(&gLightningSpriteTemplate, task->data[13], task->data[14], task->data[12]);
|
||||
|
||||
if (spriteId != MAX_SPRITES)
|
||||
{
|
||||
gSprites[spriteId].callback = sub_810B684;
|
||||
gSprites[spriteId].callback = AnimShockWaveLightning;
|
||||
gSprites[spriteId].data[6] = taskId;
|
||||
gSprites[spriteId].data[7] = 10;
|
||||
task->data[10]++;
|
||||
@ -1319,7 +1319,7 @@ bool8 sub_810B614(struct Task *task, u8 taskId)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void sub_810B684(struct Sprite *sprite)
|
||||
static void AnimShockWaveLightning(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->animEnded)
|
||||
{
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "trig.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
static void unc_080B08A0(struct Sprite *);
|
||||
static void AnimUnused_080B08A0(struct Sprite *);
|
||||
static void AnimSlideHandOrFootToTarget(struct Sprite *);
|
||||
static void AnimJumpKick(struct Sprite *);
|
||||
static void AnimBasicFistOrFoot(struct Sprite *);
|
||||
@ -40,7 +40,7 @@ static void AnimSpinningKickOrPunchFinish(struct Sprite *);
|
||||
extern struct SpriteTemplate gBasicHitSplatSpriteTemplate;
|
||||
|
||||
// Unused
|
||||
const struct SpriteTemplate gUnknown_08595E14 =
|
||||
const struct SpriteTemplate gUnusedSpriteTemplate_08595E14 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HUMANOID_FOOT,
|
||||
.paletteTag = ANIM_TAG_HUMANOID_FOOT,
|
||||
@ -48,7 +48,7 @@ const struct SpriteTemplate gUnknown_08595E14 =
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = unc_080B08A0,
|
||||
.callback = AnimUnused_080B08A0,
|
||||
};
|
||||
|
||||
static const union AnimCmd sAnim_HandOrFoot[] =
|
||||
@ -417,7 +417,7 @@ const struct SpriteTemplate gFocusPunchFistSpriteTemplate =
|
||||
.callback = AnimFocusPunchFist,
|
||||
};
|
||||
|
||||
static void unc_080B08A0(struct Sprite *sprite)
|
||||
static void AnimUnused_080B08A0(struct Sprite *sprite)
|
||||
{
|
||||
SetAnimSpriteInitialXOffset(sprite, gBattleAnimArgs[0]);
|
||||
sprite->pos1.y += gBattleAnimArgs[1];
|
||||
@ -1008,7 +1008,7 @@ void AnimTask_MoveSkyUppercutBg(u8 taskId)
|
||||
switch (task->data[0])
|
||||
{
|
||||
case 0:
|
||||
sub_80A6DAC(0);
|
||||
UpdateAnimBg3ScreenSize(FALSE);
|
||||
task->data[8] = gBattleAnimArgs[0];
|
||||
task->data[0]++;
|
||||
break;
|
||||
@ -1037,7 +1037,7 @@ void AnimTask_MoveSkyUppercutBg(u8 taskId)
|
||||
{
|
||||
gBattle_BG3_X = 0;
|
||||
gBattle_BG3_Y = 0;
|
||||
sub_80A6DAC(1);
|
||||
UpdateAnimBg3ScreenSize(TRUE);
|
||||
DestroyAnimVisualTask(taskId);
|
||||
}
|
||||
}
|
||||
|
@ -11,9 +11,9 @@ static void AnimFireSpiralInward(struct Sprite *);
|
||||
static void AnimFireSpread(struct Sprite *);
|
||||
static void AnimFirePlume(struct Sprite *);
|
||||
static void AnimLargeFlame(struct Sprite *);
|
||||
static void sub_8109028(struct Sprite *);
|
||||
static void sub_8109064(struct Sprite *);
|
||||
static void sub_81090D8(struct Sprite *);
|
||||
static void AnimLargeFlame_Step(struct Sprite *);
|
||||
static void AnimUnused_8109064(struct Sprite *);
|
||||
static void AnimUnused_8109064_Step(struct Sprite *);
|
||||
static void AnimSunlight(struct Sprite *);
|
||||
static void AnimEmberFlare(struct Sprite *);
|
||||
static void AnimBurnFlame(struct Sprite *);
|
||||
@ -162,7 +162,7 @@ const struct SpriteTemplate gFirePlumeSpriteTemplate =
|
||||
};
|
||||
|
||||
// Unused
|
||||
const struct SpriteTemplate gUnknown_08595440 =
|
||||
const struct SpriteTemplate gUnusedSpriteTemplate_08595440 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
@ -173,7 +173,7 @@ const struct SpriteTemplate gUnknown_08595440 =
|
||||
.callback = AnimFirePlume,
|
||||
};
|
||||
|
||||
static const union AnimCmd gUnknown_08595458[] =
|
||||
static const union AnimCmd sAnim_Unused_08595458[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 6),
|
||||
ANIMCMD_FRAME(32, 6),
|
||||
@ -181,21 +181,21 @@ static const union AnimCmd gUnknown_08595458[] =
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
static const union AnimCmd *const gUnknown_08595468[] =
|
||||
static const union AnimCmd *const sAnims_Unused_08595468[] =
|
||||
{
|
||||
gUnknown_08595458,
|
||||
sAnim_Unused_08595458,
|
||||
};
|
||||
|
||||
// Unused
|
||||
const struct SpriteTemplate gUnknown_0859546C =
|
||||
const struct SpriteTemplate gUnusedSpriteTemplate_0859546C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gOamData_AffineOff_ObjNormal_32x32,
|
||||
.anims = gUnknown_08595468,
|
||||
.anims = sAnims_Unused_08595468,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8109064,
|
||||
.callback = AnimUnused_8109064,
|
||||
};
|
||||
|
||||
static const union AffineAnimCmd sAffineAnim_SunlightRay[] =
|
||||
@ -292,23 +292,23 @@ static const union AnimCmd *const sAnims_FireBlastCross[] =
|
||||
sAnim_FireBlastCross,
|
||||
};
|
||||
|
||||
static const union AffineAnimCmd gUnknown_08595544[] =
|
||||
static const union AffineAnimCmd sAnim_Unused_08595544[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
static const union AffineAnimCmd gUnknown_08595554[] =
|
||||
static const union AffineAnimCmd sAnim_Unused_08595554[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xA0, 0xA0, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
// Unused
|
||||
static const union AffineAnimCmd *const gUnknown_08595564[] =
|
||||
static const union AffineAnimCmd *const sAnims_Unused_08595564[] =
|
||||
{
|
||||
gUnknown_08595544,
|
||||
gUnknown_08595554,
|
||||
sAnim_Unused_08595544,
|
||||
sAnim_Unused_08595554,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gFireBlastCrossSpriteTemplate =
|
||||
@ -511,7 +511,7 @@ static void AnimFirePlume(struct Sprite *sprite)
|
||||
sprite->data[4] = gBattleAnimArgs[3];
|
||||
sprite->data[3] = gBattleAnimArgs[5];
|
||||
|
||||
sprite->callback = sub_8109028;
|
||||
sprite->callback = AnimLargeFlame_Step;
|
||||
}
|
||||
|
||||
static void AnimLargeFlame(struct Sprite *sprite)
|
||||
@ -533,10 +533,10 @@ static void AnimLargeFlame(struct Sprite *sprite)
|
||||
sprite->data[4] = gBattleAnimArgs[3];
|
||||
sprite->data[3] = gBattleAnimArgs[5];
|
||||
|
||||
sprite->callback = sub_8109028;
|
||||
sprite->callback = AnimLargeFlame_Step;
|
||||
}
|
||||
|
||||
static void sub_8109028(struct Sprite *sprite)
|
||||
static void AnimLargeFlame_Step(struct Sprite *sprite)
|
||||
{
|
||||
if (++sprite->data[0] < sprite->data[4])
|
||||
{
|
||||
@ -548,7 +548,7 @@ static void sub_8109028(struct Sprite *sprite)
|
||||
DestroySpriteAndMatrix(sprite);
|
||||
}
|
||||
|
||||
static void sub_8109064(struct Sprite *sprite)
|
||||
static void AnimUnused_8109064(struct Sprite *sprite)
|
||||
{
|
||||
SetSpriteCoordsToAnimAttackerCoords(sprite);
|
||||
|
||||
@ -570,10 +570,10 @@ static void sub_8109064(struct Sprite *sprite)
|
||||
sprite->data[4] = gBattleAnimArgs[6];
|
||||
sprite->data[5] = 0;
|
||||
|
||||
sprite->callback = sub_81090D8;
|
||||
sprite->callback = AnimUnused_8109064_Step;
|
||||
}
|
||||
|
||||
static void sub_81090D8(struct Sprite *sprite)
|
||||
static void AnimUnused_8109064_Step(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->data[3])
|
||||
{
|
||||
@ -611,8 +611,6 @@ static void AnimSunlight(struct Sprite *sprite)
|
||||
StoreSpriteCallbackInData6(sprite, DestroyAnimSprite);
|
||||
}
|
||||
|
||||
//fire 2
|
||||
|
||||
// Animates the secondary effect of MOVE_EMBER, where the flames grow and slide
|
||||
// horizontally a bit.
|
||||
// arg 0: initial x pixel offset
|
||||
@ -792,15 +790,14 @@ void AnimTask_EruptionLaunchRocks(u8 taskId)
|
||||
task->func = AnimTask_EruptionLaunchRocks_Step;
|
||||
}
|
||||
|
||||
static void AnimTask_EruptionLaunchRocks_Step(u8 taskId) // animate Move_ERUPTION?
|
||||
static void AnimTask_EruptionLaunchRocks_Step(u8 taskId)
|
||||
{
|
||||
struct Task *task = &gTasks[taskId];
|
||||
|
||||
switch (task->data[0])
|
||||
{
|
||||
case 0:
|
||||
sub_80A805C(task, task->data[15], 0x100, 0x100, 0xE0, 0x200, 0x20);
|
||||
|
||||
PrepareEruptAnimTaskData(task, task->data[15], 0x100, 0x100, 0xE0, 0x200, 32);
|
||||
task->data[0]++;
|
||||
case 1:
|
||||
if (++task->data[1] > 1)
|
||||
@ -813,7 +810,7 @@ static void AnimTask_EruptionLaunchRocks_Step(u8 taskId) // animate Move_ERUPTIO
|
||||
gSprites[task->data[15]].pos2.x = -3;
|
||||
}
|
||||
|
||||
if (task->data[5])
|
||||
if (task->data[5] != B_SIDE_PLAYER)
|
||||
{
|
||||
if (++task->data[3] > 4)
|
||||
{
|
||||
@ -822,7 +819,7 @@ static void AnimTask_EruptionLaunchRocks_Step(u8 taskId) // animate Move_ERUPTIO
|
||||
}
|
||||
}
|
||||
|
||||
if(!sub_80A80C8(task))
|
||||
if(!UpdateEruptAnimTask(task))
|
||||
{
|
||||
SetBattlerSpriteYOffsetFromYScale(task->data[15]);
|
||||
gSprites[task->data[15]].pos2.x = 0;
|
||||
@ -836,20 +833,19 @@ static void AnimTask_EruptionLaunchRocks_Step(u8 taskId) // animate Move_ERUPTIO
|
||||
case 2:
|
||||
if (++task->data[1] > 4)
|
||||
{
|
||||
if (task->data[5])
|
||||
sub_80A805C(task, task->data[15], 0xE0, 0x200, 0x180, 0xF0, 0x6);
|
||||
if (task->data[5] != B_SIDE_PLAYER)
|
||||
PrepareEruptAnimTaskData(task, task->data[15], 0xE0, 0x200, 0x180, 0xF0, 6);
|
||||
else
|
||||
sub_80A805C(task, task->data[15], 0xE0, 0x200, 0x180, 0xC0, 0x6);
|
||||
PrepareEruptAnimTaskData(task, task->data[15], 0xE0, 0x200, 0x180, 0xC0, 6);
|
||||
|
||||
task->data[1] = 0;
|
||||
task->data[0]++;
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (!sub_80A80C8(task))
|
||||
if (!UpdateEruptAnimTask(task))
|
||||
{
|
||||
CreateEruptionLaunchRocks(task->data[15], taskId, 6);
|
||||
|
||||
task->data[0]++;
|
||||
}
|
||||
break;
|
||||
@ -866,10 +862,10 @@ static void AnimTask_EruptionLaunchRocks_Step(u8 taskId) // animate Move_ERUPTIO
|
||||
|
||||
if (++task->data[3] > 0x18)
|
||||
{
|
||||
if (task->data[5])
|
||||
sub_80A805C(task, task->data[15], 0x180, 0xF0, 0x100, 0x100, 0x8);
|
||||
if (task->data[5] != B_SIDE_PLAYER)
|
||||
PrepareEruptAnimTaskData(task, task->data[15], 0x180, 0xF0, 0x100, 0x100, 8);
|
||||
else
|
||||
sub_80A805C(task, task->data[15], 0x180, 0xC0, 0x100, 0x100, 0x8);
|
||||
PrepareEruptAnimTaskData(task, task->data[15], 0x180, 0xC0, 0x100, 0x100, 8);
|
||||
|
||||
if (task->data[2] & 1)
|
||||
gSprites[task->data[15]].pos2.y -= 3;
|
||||
@ -881,14 +877,13 @@ static void AnimTask_EruptionLaunchRocks_Step(u8 taskId) // animate Move_ERUPTIO
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
if (task->data[5])
|
||||
if (task->data[5] != B_SIDE_PLAYER)
|
||||
gSprites[task->data[15]].pos1.y--;
|
||||
|
||||
if (!sub_80A80C8(task))
|
||||
if (!UpdateEruptAnimTask(task))
|
||||
{
|
||||
gSprites[task->data[15]].pos1.y = task->data[4];
|
||||
ResetSpriteRotScale(task->data[15]);
|
||||
|
||||
task->data[2] = 0;
|
||||
task->data[0]++;
|
||||
}
|
||||
@ -896,7 +891,6 @@ static void AnimTask_EruptionLaunchRocks_Step(u8 taskId) // animate Move_ERUPTIO
|
||||
case 6:
|
||||
if (!task->data[6])
|
||||
DestroyAnimVisualTask(taskId);
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@ -955,16 +949,12 @@ static void AnimEruptionLaunchRock(struct Sprite *sprite)
|
||||
|
||||
static u16 GetEruptionLaunchRockInitialYPos(u8 spriteId)
|
||||
{
|
||||
u16 y = gSprites[spriteId].pos1.y + gSprites[spriteId].pos2.y + gSprites[spriteId].centerToCornerVecY;
|
||||
s16 y = gSprites[spriteId].pos1.y + gSprites[spriteId].pos2.y + gSprites[spriteId].centerToCornerVecY;
|
||||
|
||||
if (GetBattlerSide(gBattleAnimAttacker) == B_SIDE_PLAYER)
|
||||
{
|
||||
y = ((y << 16) + 0x4A0000) >> 16;
|
||||
}
|
||||
y += 74;
|
||||
else
|
||||
{
|
||||
y = ((y << 16) + 0x2C0000) >> 16;
|
||||
}
|
||||
y += 44;
|
||||
|
||||
return y;
|
||||
}
|
||||
@ -1282,14 +1272,14 @@ static void AnimTask_MoveHeatWaveTargets_Step(u8 taskId)
|
||||
}
|
||||
}
|
||||
|
||||
// Used to add a color mask to the battle interface / HUD in Heat Wave.
|
||||
// Used to add a color mask to the battle background.
|
||||
// arg 0: opacity
|
||||
// arg 1: color code
|
||||
void AnimTask_BlendBackground(u8 taskId)
|
||||
{
|
||||
struct BattleAnimBgData animBg;
|
||||
sub_80A6B30(&animBg);
|
||||
BlendPalette(animBg.paletteId * 16, 16, gBattleAnimArgs[0], gBattleAnimArgs[1]); // u16 palOffset, u16 numEntries, u8 coeff, u16 blendColor
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
BlendPalette(animBg.paletteId * 16, 16, gBattleAnimArgs[0], gBattleAnimArgs[1]);
|
||||
DestroyAnimVisualTask(taskId);
|
||||
}
|
||||
|
||||
|
@ -18,9 +18,9 @@ static void AnimFlyBallUp_Step(struct Sprite *);
|
||||
static void AnimFlyBallAttack(struct Sprite *);
|
||||
static void AnimFlyBallAttack_Step(struct Sprite *);
|
||||
static void AnimFallingFeather(struct Sprite *);
|
||||
static void sub_810E520(struct Sprite *);
|
||||
static void sub_810EB40(struct Sprite *);
|
||||
static void sub_810EA4C(struct Sprite *);
|
||||
static void AnimFallingFeather_Step(struct Sprite *);
|
||||
static void AnimWhirlwindLine_Step(struct Sprite *);
|
||||
static void AnimUnused_810EA4C(struct Sprite *);
|
||||
static void AnimWhirlwindLine(struct Sprite *);
|
||||
static void AnimBounceBallShrink(struct Sprite *);
|
||||
static void AnimBounceBallLand(struct Sprite *);
|
||||
@ -30,8 +30,8 @@ static void AnimDiveBall_Step2(struct Sprite *);
|
||||
static void AnimDiveWaterSplash(struct Sprite *);
|
||||
static void AnimSprayWaterDroplet(struct Sprite *);
|
||||
static void AnimSprayWaterDroplet_Step(struct Sprite *);
|
||||
static void sub_810F004(struct Sprite *);
|
||||
static void sub_810F018(struct Sprite *);
|
||||
static void AnimUnused_810F004(struct Sprite *);
|
||||
static void AnimUnused_810F004_Step(struct Sprite *);
|
||||
static void AnimSkyAttackBird(struct Sprite *);
|
||||
static void AnimSkyAttackBird_Step(struct Sprite *);
|
||||
static void AnimTask_AnimateGustTornadoPalette_Step(u8);
|
||||
@ -179,7 +179,8 @@ const struct SpriteTemplate gFallingFeatherSpriteTemplate =
|
||||
.callback = AnimFallingFeather,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085963A0 =
|
||||
// Unused
|
||||
const struct SpriteTemplate gUnusedSpriteTemplate_085963A0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
@ -187,7 +188,7 @@ const struct SpriteTemplate gUnknown_085963A0 =
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810EA4C,
|
||||
.callback = AnimUnused_810EA4C,
|
||||
};
|
||||
|
||||
static const union AnimCmd sAnim_WhirlwindLines[] =
|
||||
@ -289,7 +290,7 @@ const struct SpriteTemplate gDiveBallSpriteTemplate =
|
||||
.callback = AnimDiveBall,
|
||||
};
|
||||
|
||||
static const union AffineAnimCmd gUnknown_085964A8[] =
|
||||
static const union AffineAnimCmd sAnim_Unused_085964A8[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x0, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x20, 0, 12),
|
||||
@ -298,9 +299,9 @@ static const union AffineAnimCmd gUnknown_085964A8[] =
|
||||
};
|
||||
|
||||
// Unused
|
||||
static const union AffineAnimCmd *const gUnknown_085964C8[] =
|
||||
static const union AffineAnimCmd *const sAnims_Unused_085964C8[] =
|
||||
{
|
||||
gUnknown_085964A8,
|
||||
sAnim_Unused_085964A8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gDiveWaterSplashSpriteTemplate =
|
||||
@ -325,7 +326,8 @@ const struct SpriteTemplate gSprayWaterDropletSpriteTemplate =
|
||||
.callback = AnimSprayWaterDroplet,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085964FC =
|
||||
// Unused
|
||||
const struct SpriteTemplate gUnusedSpriteTemplate_085964FC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.paletteTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
@ -333,7 +335,7 @@ const struct SpriteTemplate gUnknown_085964FC =
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F004,
|
||||
.callback = AnimUnused_810F004,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gSkyAttackBirdSpriteTemplate =
|
||||
@ -639,10 +641,10 @@ static void AnimFallingFeather(struct Sprite *sprite)
|
||||
gOamMatrices[matrixNum].b = spriteCoord;
|
||||
gOamMatrices[matrixNum].c = -spriteCoord;
|
||||
|
||||
sprite->callback = sub_810E520;
|
||||
sprite->callback = AnimFallingFeather_Step;
|
||||
}
|
||||
|
||||
static void sub_810E520(struct Sprite *sprite)
|
||||
static void AnimFallingFeather_Step(struct Sprite *sprite)
|
||||
{
|
||||
u8 matrixNum, sinIndex;
|
||||
s16 sinVal = 0;
|
||||
@ -890,7 +892,7 @@ static void sub_810E520(struct Sprite *sprite)
|
||||
}
|
||||
}
|
||||
|
||||
static void sub_810EA4C(struct Sprite *sprite)
|
||||
static void AnimUnused_810EA4C(struct Sprite *sprite)
|
||||
{
|
||||
sprite->oam.priority = GetBattlerSpriteBGPriority(gBattleAnimTarget);
|
||||
sprite->pos1.x = GetBattlerSpriteCoord(gBattleAnimAttacker, 2);
|
||||
@ -900,7 +902,7 @@ static void sub_810EA4C(struct Sprite *sprite)
|
||||
|
||||
static void AnimWhirlwindLine(struct Sprite * sprite)
|
||||
{
|
||||
u16 arg;
|
||||
u16 offset;
|
||||
u8 mult;
|
||||
|
||||
if (gBattleAnimArgs[2] == ANIM_ATTACKER)
|
||||
@ -918,15 +920,15 @@ static void AnimWhirlwindLine(struct Sprite * sprite)
|
||||
sprite->pos1.x -= 32;
|
||||
sprite->data[1] = 0x0ccc;
|
||||
|
||||
arg = gBattleAnimArgs[4];
|
||||
offset = gBattleAnimArgs[4];
|
||||
mult = 12;
|
||||
sprite->pos2.x += mult * arg;
|
||||
sprite->data[0] = arg;
|
||||
sprite->pos2.x += mult * offset;
|
||||
sprite->data[0] = offset;
|
||||
sprite->data[7] = gBattleAnimArgs[3];
|
||||
sprite->callback = sub_810EB40;
|
||||
sprite->callback = AnimWhirlwindLine_Step;
|
||||
}
|
||||
|
||||
static void sub_810EB40(struct Sprite *sprite)
|
||||
static void AnimWhirlwindLine_Step(struct Sprite *sprite)
|
||||
{
|
||||
sprite->pos2.x += sprite->data[1] >> 8;
|
||||
|
||||
@ -1063,9 +1065,9 @@ static void AnimDiveWaterSplash(struct Sprite *sprite)
|
||||
sprite->pos1.y = GetBattlerSpriteCoord(gBattleAnimTarget, 1);
|
||||
}
|
||||
|
||||
sprite->data[1] = 512;
|
||||
sprite->data[1] = 0x200;
|
||||
|
||||
TrySetSpriteRotScale(sprite, 0, 256, sprite->data[1], 0);
|
||||
TrySetSpriteRotScale(sprite, 0, 0x100, sprite->data[1], 0);
|
||||
sprite->data[0]++;
|
||||
break;
|
||||
case 1:
|
||||
@ -1076,11 +1078,11 @@ static void AnimDiveWaterSplash(struct Sprite *sprite)
|
||||
|
||||
sprite->data[2]++;
|
||||
|
||||
TrySetSpriteRotScale(sprite, 0, 256, sprite->data[1], 0);
|
||||
TrySetSpriteRotScale(sprite, 0, 0x100, sprite->data[1], 0);
|
||||
|
||||
matrixNum = sprite->oam.matrixNum;
|
||||
|
||||
t1 = 15616;
|
||||
t1 = 0x3D00;
|
||||
t2 = t1 / gOamMatrices[matrixNum].d + 1;
|
||||
|
||||
if (t2 > 128)
|
||||
@ -1091,7 +1093,7 @@ static void AnimDiveWaterSplash(struct Sprite *sprite)
|
||||
|
||||
if (sprite->data[2] == 24)
|
||||
{
|
||||
sub_80A749C(sprite);
|
||||
ResetSpriteRotScale_PreserveAffine(sprite);
|
||||
DestroyAnimSprite(sprite);
|
||||
}
|
||||
break;
|
||||
@ -1156,14 +1158,14 @@ static void AnimSprayWaterDroplet_Step(struct Sprite *sprite)
|
||||
DestroyAnimSprite(sprite);
|
||||
}
|
||||
|
||||
static void sub_810F004(struct Sprite *sprite)
|
||||
static void AnimUnused_810F004(struct Sprite *sprite)
|
||||
{
|
||||
sprite->data[6] = 0;
|
||||
sprite->data[7] = 64;
|
||||
sprite->callback = sub_810F018;
|
||||
sprite->callback = AnimUnused_810F004_Step;
|
||||
}
|
||||
|
||||
static void sub_810F018(struct Sprite *sprite)
|
||||
static void AnimUnused_810F004_Step(struct Sprite *sprite)
|
||||
{
|
||||
switch (sprite->data[0])
|
||||
{
|
||||
@ -1218,7 +1220,7 @@ void AnimSkyAttackBird_Step(struct Sprite *sprite)
|
||||
DestroySpriteAndMatrix(sprite);
|
||||
}
|
||||
|
||||
void unref_sub_810F184(u8 taskId)
|
||||
void AnimTask_Unused_810F184(u8 taskId)
|
||||
{
|
||||
if (gBattleAnimArgs[0] == 0)
|
||||
{
|
||||
|
@ -603,7 +603,7 @@ void AnimTask_HorizontalShake(u8 taskId)
|
||||
break;
|
||||
default: // Shake specific battler
|
||||
task->tbattlerSpriteIds(0) = GetAnimBattlerSpriteId(gBattleAnimArgs[0]);
|
||||
if (task->tbattlerSpriteIds(0) == 0xFF)
|
||||
if (task->tbattlerSpriteIds(0) == SPRITE_NONE)
|
||||
{
|
||||
DestroyAnimVisualTask(taskId);
|
||||
}
|
||||
|
@ -998,7 +998,7 @@ void AnimTask_HazeScrollingFog(u8 taskId)
|
||||
SetGpuReg(REG_OFFSET_BG1HOFS, gBattle_BG1_X);
|
||||
SetGpuReg(REG_OFFSET_BG1VOFS, gBattle_BG1_Y);
|
||||
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
LoadBgTiles(animBg.bgId, gWeatherFogHorizontalTiles, 0x800, animBg.tilesOffset);
|
||||
AnimLoadCompressedBgTilemapHandleContest(&animBg, gBattleAnimFogTilemap, 0);
|
||||
LoadPalette(&gUnknown_083970E8, animBg.paletteId * 16, 32);
|
||||
@ -1052,7 +1052,7 @@ static void AnimTask_Haze2(u8 taskId)
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
sub_80A6C68(1);
|
||||
sub_80A6C68(2);
|
||||
|
||||
@ -1105,7 +1105,7 @@ void AnimTask_LoadMistTiles(u8 taskId)
|
||||
SetGpuReg(REG_OFFSET_BG1HOFS, gBattle_BG1_X);
|
||||
SetGpuReg(REG_OFFSET_BG1VOFS, gBattle_BG1_Y);
|
||||
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
LoadBgTiles(animBg.bgId, gWeatherFogHorizontalTiles, 0x800, animBg.tilesOffset);
|
||||
AnimLoadCompressedBgTilemapHandleContest(&animBg, gBattleAnimFogTilemap, 0);
|
||||
LoadPalette(&gUnknown_083970E8, animBg.paletteId * 16, 32);
|
||||
@ -1154,7 +1154,7 @@ static void AnimTask_OverlayFogTiles(u8 taskId)
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
sub_80A6C68(1);
|
||||
sub_80A6C68(2);
|
||||
|
||||
|
@ -94,7 +94,7 @@ void AnimTask_ShakeMon(u8 taskId)
|
||||
{
|
||||
u8 spriteId;
|
||||
spriteId = GetAnimBattlerSpriteId(gBattleAnimArgs[0]);
|
||||
if (spriteId == 0xff)
|
||||
if (spriteId == SPRITE_NONE)
|
||||
{
|
||||
DestroyAnimVisualTask(taskId);
|
||||
return;
|
||||
@ -162,7 +162,7 @@ void AnimTask_ShakeMon2(u8 taskId)
|
||||
if (gBattleAnimArgs[0] < MAX_BATTLERS_COUNT)
|
||||
{
|
||||
spriteId = GetAnimBattlerSpriteId(gBattleAnimArgs[0]);
|
||||
if (spriteId == 0xff)
|
||||
if (spriteId == SPRITE_NONE)
|
||||
{
|
||||
DestroyAnimVisualTask(taskId);
|
||||
return;
|
||||
@ -255,7 +255,7 @@ static void AnimTask_ShakeMon2_Step(u8 taskId)
|
||||
void AnimTask_ShakeMonInPlace(u8 taskId)
|
||||
{
|
||||
u8 spriteId = GetAnimBattlerSpriteId(gBattleAnimArgs[0]);
|
||||
if (spriteId == 0xff)
|
||||
if (spriteId == SPRITE_NONE)
|
||||
{
|
||||
DestroyAnimVisualTask(taskId);
|
||||
return;
|
||||
|
@ -849,25 +849,25 @@ bool8 IsDoubleBattle(void)
|
||||
return IS_DOUBLE_BATTLE();
|
||||
}
|
||||
|
||||
void sub_80A6B30(struct BattleAnimBgData *unk)
|
||||
void GetDefaultBattleAnimBgData(struct BattleAnimBgData *out)
|
||||
{
|
||||
if (IsContest())
|
||||
{
|
||||
unk->bgTiles = gUnknown_0202305C;
|
||||
unk->bgTilemap = (u16 *)gUnknown_02023060;
|
||||
unk->paletteId = 14;
|
||||
unk->bgId = 1;
|
||||
unk->tilesOffset = 0;
|
||||
unk->unused = 0;
|
||||
out->bgTiles = gUnknown_0202305C;
|
||||
out->bgTilemap = (u16 *)gUnknown_02023060;
|
||||
out->paletteId = 14;
|
||||
out->bgId = 1;
|
||||
out->tilesOffset = 0;
|
||||
out->unused = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
unk->bgTiles = gUnknown_0202305C;
|
||||
unk->bgTilemap = (u16 *)gUnknown_02023060;
|
||||
unk->paletteId = 8;
|
||||
unk->bgId = 1;
|
||||
unk->tilesOffset = 0x200;
|
||||
unk->unused = 0;
|
||||
out->bgTiles = gUnknown_0202305C;
|
||||
out->bgTilemap = (u16 *)gUnknown_02023060;
|
||||
out->paletteId = 8;
|
||||
out->bgId = 1;
|
||||
out->tilesOffset = 0x200;
|
||||
out->unused = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -884,7 +884,7 @@ void sub_80A6B90(struct BattleAnimBgData *unk, u32 arg1)
|
||||
}
|
||||
else if (arg1 == 1)
|
||||
{
|
||||
sub_80A6B30(unk);
|
||||
GetDefaultBattleAnimBgData(unk);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -970,9 +970,9 @@ u8 GetBattleBgPaletteNum(void)
|
||||
return 2;
|
||||
}
|
||||
|
||||
void sub_80A6DAC(bool8 arg0)
|
||||
void UpdateAnimBg3ScreenSize(bool8 largeScreenSize)
|
||||
{
|
||||
if (!arg0 || IsContest())
|
||||
if (!largeScreenSize || IsContest())
|
||||
{
|
||||
SetAnimBgAttribute(3, BG_ANIM_SCREEN_SIZE, 0);
|
||||
SetAnimBgAttribute(3, BG_ANIM_AREA_OVERFLOW_MODE, 1);
|
||||
@ -1292,7 +1292,7 @@ void TrySetSpriteRotScale(struct Sprite *sprite, bool8 recalcCenterVector, s16 x
|
||||
}
|
||||
}
|
||||
|
||||
void sub_80A749C(struct Sprite *sprite)
|
||||
void ResetSpriteRotScale_PreserveAffine(struct Sprite *sprite)
|
||||
{
|
||||
TrySetSpriteRotScale(sprite, TRUE, 0x100, 0x100, 0);
|
||||
sprite->affineAnimPaused = FALSE;
|
||||
@ -1569,7 +1569,7 @@ s16 CloneBattlerSpriteWithBlend(u8 animBattler)
|
||||
u16 i;
|
||||
u8 spriteId = GetAnimBattlerSpriteId(animBattler);
|
||||
|
||||
if (spriteId != 0xFF)
|
||||
if (spriteId != SPRITE_NONE)
|
||||
{
|
||||
for (i = 0; i < MAX_SPRITES; i++)
|
||||
{
|
||||
@ -1655,7 +1655,7 @@ static void AnimTask_AlphaFadeIn_Step(u8 taskId)
|
||||
void AnimTask_BlendMonInAndOut(u8 task)
|
||||
{
|
||||
u8 spriteId = GetAnimBattlerSpriteId(gBattleAnimArgs[0]);
|
||||
if (spriteId == 0xff)
|
||||
if (spriteId == SPRITE_NONE)
|
||||
{
|
||||
DestroyAnimVisualTask(task);
|
||||
return;
|
||||
@ -1896,19 +1896,19 @@ void *LoadPointerFromVars(s16 lo, s16 hi)
|
||||
return (void *)((u16)lo | ((u16)hi << 16));
|
||||
}
|
||||
|
||||
void sub_80A805C(struct Task *task, u8 a2, s16 a3, s16 a4, s16 a5, s16 a6, u16 a7)
|
||||
void PrepareEruptAnimTaskData(struct Task *task, u8 spriteId, s16 xScaleStart, s16 yScaleStart, s16 xScaleEnd, s16 yScaleEnd, u16 duration)
|
||||
{
|
||||
task->data[8] = a7;
|
||||
task->data[15] = a2; // spriteId
|
||||
task->data[9] = a3;
|
||||
task->data[10] = a4;
|
||||
task->data[13] = a5;
|
||||
task->data[14] = a6;
|
||||
task->data[11] = (a5 - a3) / a7;
|
||||
task->data[12] = (a6 - a4) / a7;
|
||||
task->data[8] = duration;
|
||||
task->data[15] = spriteId;
|
||||
task->data[9] = xScaleStart;
|
||||
task->data[10] = yScaleStart;
|
||||
task->data[13] = xScaleEnd;
|
||||
task->data[14] = yScaleEnd;
|
||||
task->data[11] = (xScaleEnd - xScaleStart) / duration;
|
||||
task->data[12] = (yScaleEnd - yScaleStart) / duration;
|
||||
}
|
||||
|
||||
u8 sub_80A80C8(struct Task *task)
|
||||
u8 UpdateEruptAnimTask(struct Task *task)
|
||||
{
|
||||
if (!task->data[8])
|
||||
return 0;
|
||||
|
@ -411,7 +411,7 @@ void AnimTask_LoadSandstormBackground(u8 taskId)
|
||||
SetGpuReg(REG_OFFSET_BG1HOFS, gBattle_BG1_X);
|
||||
SetGpuReg(REG_OFFSET_BG1VOFS, gBattle_BG1_Y);
|
||||
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
AnimLoadCompressedBgGfx(animBg.bgId, gBattleAnimBgImage_Sandstorm, animBg.tilesOffset);
|
||||
AnimLoadCompressedBgTilemapHandleContest(&animBg, gBattleAnimBgTilemap_Sandstorm, 0);
|
||||
LoadCompressedPalette(gBattleAnimSpritePal_FlyingDirt, animBg.paletteId * 16, 32);
|
||||
@ -470,7 +470,7 @@ static void AnimTask_LoadSandstormBackground_Step(u8 taskId)
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
sub_80A6C68(animBg.bgId);
|
||||
gTasks[taskId].data[12]++;
|
||||
break;
|
||||
@ -731,7 +731,7 @@ static void AnimRolloutParticle(struct Sprite *sprite)
|
||||
if (TranslateAnimHorizontalArc(sprite))
|
||||
{
|
||||
u8 taskId = FindTaskIdByFunc(AnimTask_Rollout_Step);
|
||||
if (taskId != 0xFF)
|
||||
if (taskId != TASK_NONE)
|
||||
gTasks[taskId].data[11]--;
|
||||
|
||||
DestroySprite(sprite);
|
||||
@ -833,7 +833,7 @@ void AnimTask_MoveSeismicTossBg(u8 taskId)
|
||||
{
|
||||
if (gTasks[taskId].data[0] == 0)
|
||||
{
|
||||
sub_80A6DAC(FALSE);
|
||||
UpdateAnimBg3ScreenSize(FALSE);
|
||||
gTasks[taskId].data[1] = 200;
|
||||
}
|
||||
|
||||
@ -842,7 +842,7 @@ void AnimTask_MoveSeismicTossBg(u8 taskId)
|
||||
|
||||
if (gTasks[taskId].data[0] == 120)
|
||||
{
|
||||
sub_80A6DAC(TRUE);
|
||||
UpdateAnimBg3ScreenSize(TRUE);
|
||||
DestroyAnimVisualTask(taskId);
|
||||
}
|
||||
|
||||
@ -853,7 +853,7 @@ void AnimTask_SeismicTossBgAccelerateDownAtEnd(u8 taskId)
|
||||
{
|
||||
if (gTasks[taskId].data[0] == 0)
|
||||
{
|
||||
sub_80A6DAC(FALSE);
|
||||
UpdateAnimBg3ScreenSize(FALSE);
|
||||
gTasks[taskId].data[0]++;
|
||||
gTasks[taskId].data[2] = gBattle_BG3_Y;
|
||||
}
|
||||
@ -865,7 +865,7 @@ void AnimTask_SeismicTossBgAccelerateDownAtEnd(u8 taskId)
|
||||
if (gBattleAnimArgs[7] == 0xFFF)
|
||||
{
|
||||
gBattle_BG3_Y = 0;
|
||||
sub_80A6DAC(TRUE);
|
||||
UpdateAnimBg3ScreenSize(TRUE);
|
||||
DestroyAnimVisualTask(taskId);
|
||||
}
|
||||
}
|
||||
|
@ -6,16 +6,21 @@
|
||||
#include "task.h"
|
||||
#include "constants/battle_anim.h"
|
||||
|
||||
// this file's functions
|
||||
static void sub_8158B98(u8 taskId);
|
||||
static void sub_8158C04(u8 taskId);
|
||||
static void SoundTask_FireBlast_Step1(u8 taskId);
|
||||
static void SoundTask_FireBlast_Step2(u8 taskId);
|
||||
static void SoundTask_LoopSEAdjustPanning_Step(u8 taskId);
|
||||
static void SoundTask_PlayDoubleCry_Step(u8 taskId);
|
||||
static void SoundTask_PlayCryWithEcho_Step(u8 taskId);
|
||||
static void SoundTask_AdjustPanningVar_Step(u8 taskId);
|
||||
|
||||
// task start
|
||||
void sub_8158B30(u8 taskId)
|
||||
// Loops the specified sound effect and pans from the
|
||||
// attacker to the target. The second specified sound effect
|
||||
// is played at the very end. This task is effectively
|
||||
// hardcoded to the move FIRE_BLAST due to the baked-in
|
||||
// durations.
|
||||
// arg 0: looped sound effect
|
||||
// arg 1: ending sound effect
|
||||
void SoundTask_FireBlast(u8 taskId)
|
||||
{
|
||||
s8 pan1, pan2, panIncrement;
|
||||
|
||||
@ -31,10 +36,10 @@ void sub_8158B30(u8 taskId)
|
||||
gTasks[taskId].data[4] = panIncrement;
|
||||
gTasks[taskId].data[10] = 10;
|
||||
|
||||
gTasks[taskId].func = sub_8158B98;
|
||||
gTasks[taskId].func = SoundTask_FireBlast_Step1;
|
||||
}
|
||||
|
||||
static void sub_8158B98(u8 taskId)
|
||||
static void SoundTask_FireBlast_Step1(u8 taskId)
|
||||
{
|
||||
s16 pan = gTasks[taskId].data[2];
|
||||
s8 panIncrement = gTasks[taskId].data[4];
|
||||
@ -42,7 +47,7 @@ static void sub_8158B98(u8 taskId)
|
||||
{
|
||||
gTasks[taskId].data[10] = 5;
|
||||
gTasks[taskId].data[11] = 0;
|
||||
gTasks[taskId].func = sub_8158C04;
|
||||
gTasks[taskId].func = SoundTask_FireBlast_Step2;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -56,7 +61,7 @@ static void sub_8158B98(u8 taskId)
|
||||
}
|
||||
}
|
||||
|
||||
static void sub_8158C04(u8 taskId)
|
||||
static void SoundTask_FireBlast_Step2(u8 taskId)
|
||||
{
|
||||
if (++gTasks[taskId].data[10] == 6)
|
||||
{
|
||||
@ -69,9 +74,7 @@ static void sub_8158C04(u8 taskId)
|
||||
DestroyAnimSoundTask(taskId);
|
||||
}
|
||||
}
|
||||
// task end
|
||||
|
||||
// task start
|
||||
void SoundTask_LoopSEAdjustPanning(u8 taskId)
|
||||
{
|
||||
u16 songId = gBattleAnimArgs[0];
|
||||
@ -123,9 +126,7 @@ static void SoundTask_LoopSEAdjustPanning_Step(u8 taskId)
|
||||
gTasks[taskId].data[11] = KeepPanInRange(gTasks[taskId].data[11], oldPan);
|
||||
}
|
||||
}
|
||||
// task end
|
||||
|
||||
// task start
|
||||
void SoundTask_PlayCryHighPitch(u8 taskId)
|
||||
{
|
||||
u16 species = 0;
|
||||
@ -169,9 +170,7 @@ void SoundTask_PlayCryHighPitch(u8 taskId)
|
||||
|
||||
DestroyAnimVisualTask(taskId);
|
||||
}
|
||||
// task end
|
||||
|
||||
// task start
|
||||
void SoundTask_PlayDoubleCry(u8 taskId)
|
||||
{
|
||||
u16 species = 0;
|
||||
@ -258,7 +257,6 @@ static void SoundTask_PlayDoubleCry_Step(u8 taskId)
|
||||
}
|
||||
}
|
||||
}
|
||||
// task end
|
||||
|
||||
void SoundTask_WaitForCry(u8 taskId)
|
||||
{
|
||||
@ -273,7 +271,6 @@ void SoundTask_WaitForCry(u8 taskId)
|
||||
}
|
||||
}
|
||||
|
||||
// task start
|
||||
void SoundTask_PlayCryWithEcho(u8 taskId)
|
||||
{
|
||||
u16 species;
|
||||
@ -329,7 +326,6 @@ static void SoundTask_PlayCryWithEcho_Step(u8 taskId)
|
||||
break;
|
||||
}
|
||||
}
|
||||
// task end
|
||||
|
||||
void SoundTask_PlaySE1WithPanning(u8 taskId)
|
||||
{
|
||||
@ -389,4 +385,3 @@ static void SoundTask_AdjustPanningVar_Step(u8 taskId)
|
||||
if (gTasks[taskId].data[11] == gTasks[taskId].data[2])
|
||||
DestroyAnimVisualTask(taskId);
|
||||
}
|
||||
|
||||
|
@ -464,7 +464,7 @@ void unref_sub_8170478(u8 taskId)
|
||||
gSprites[spriteId3].callback = SpriteCallbackDummy;
|
||||
gSprites[spriteId4].callback = SpriteCallbackDummy;
|
||||
|
||||
sub_80A6B30(&unknownStruct);
|
||||
GetDefaultBattleAnimBgData(&unknownStruct);
|
||||
AnimLoadCompressedBgTilemap(unknownStruct.bgId, gUnknown_08C2EA9C);
|
||||
AnimLoadCompressedBgGfx(unknownStruct.bgId, gUnknown_08C2EA50, unknownStruct.tilesOffset);
|
||||
LoadCompressedPalette(gCureBubblesPal, unknownStruct.paletteId << 4, 32);
|
||||
|
@ -330,7 +330,7 @@ void AnimTask_DrawFallingWhiteLinesOnAttacker(u8 taskId)
|
||||
|
||||
spriteId = GetAnimBattlerSpriteId(ANIM_ATTACKER);
|
||||
newSpriteId = sub_80A89C8(gBattleAnimAttacker, spriteId, species);
|
||||
sub_80A6B30(&unknownStruct);
|
||||
GetDefaultBattleAnimBgData(&unknownStruct);
|
||||
AnimLoadCompressedBgTilemapHandleContest(&unknownStruct, gUnknown_08C20684, 0);
|
||||
AnimLoadCompressedBgGfx(unknownStruct.bgId, gUnknown_08C20668, unknownStruct.tilesOffset);
|
||||
LoadPalette(&gUnknown_08597418, unknownStruct.paletteId * 16 + 1, 2);
|
||||
@ -377,7 +377,7 @@ static void AnimTask_DrawFallingWhiteLinesOnAttacker_Step(u8 taskId)
|
||||
sprite = &gSprites[gTasks[taskId].data[0]];
|
||||
DestroySprite(sprite);
|
||||
|
||||
sub_80A6B30(&unknownStruct);
|
||||
GetDefaultBattleAnimBgData(&unknownStruct);
|
||||
sub_80A6C68(unknownStruct.bgId);
|
||||
if (gTasks[taskId].data[6] == 1)
|
||||
gSprites[gBattlerSpriteIds[BATTLE_PARTNER(gBattleAnimAttacker)]].oam.priority++;
|
||||
@ -468,7 +468,7 @@ static void sub_81170EC(u8 taskId)
|
||||
spriteId2 = sub_80A89C8(sAnimStatsChangeData->battler2, battlerSpriteId, sAnimStatsChangeData->species);
|
||||
}
|
||||
|
||||
sub_80A6B30(&unknownStruct);
|
||||
GetDefaultBattleAnimBgData(&unknownStruct);
|
||||
if (sAnimStatsChangeData->data[0] == 0)
|
||||
AnimLoadCompressedBgTilemapHandleContest(&unknownStruct, gBattleStatMask1_Tilemap, 0);
|
||||
else
|
||||
@ -705,7 +705,7 @@ void AnimTask_StartSlidingBg(u8 taskId)
|
||||
{
|
||||
u8 newTaskId;
|
||||
|
||||
sub_80A6DAC(0);
|
||||
UpdateAnimBg3ScreenSize(FALSE);
|
||||
newTaskId = CreateTask(AnimTask_UpdateSlidingBg, 5);
|
||||
if (gBattleAnimArgs[2] && GetBattlerSide(gBattleAnimAttacker) != B_SIDE_PLAYER)
|
||||
{
|
||||
@ -733,7 +733,7 @@ static void AnimTask_UpdateSlidingBg(u8 taskId)
|
||||
{
|
||||
gBattle_BG3_X = 0;
|
||||
gBattle_BG3_Y = 0;
|
||||
sub_80A6DAC(1);
|
||||
UpdateAnimBg3ScreenSize(TRUE);
|
||||
DestroyTask(taskId);
|
||||
}
|
||||
}
|
||||
@ -824,7 +824,7 @@ void sub_8117854(u8 taskId, int unused, u16 arg2, u8 battler1, u8 arg4, u8 arg5,
|
||||
if (arg4)
|
||||
spriteId2 = sub_80A89C8(battler2, gBattlerSpriteIds[battler2], species);
|
||||
|
||||
sub_80A6B30(&unknownStruct);
|
||||
GetDefaultBattleAnimBgData(&unknownStruct);
|
||||
AnimLoadCompressedBgTilemapHandleContest(&unknownStruct, tilemap, 0);
|
||||
AnimLoadCompressedBgGfx(unknownStruct.bgId, gfx, unknownStruct.tilesOffset);
|
||||
LoadCompressedPalette(palette, unknownStruct.paletteId * 16, 32);
|
||||
|
@ -811,7 +811,7 @@ void AnimTask_CreateSurfWave(u8 taskId)
|
||||
SetGpuReg(REG_OFFSET_BLDALPHA, BLDALPHA_BLEND(0, 16));
|
||||
SetAnimBgAttribute(1, BG_ANIM_PRIORITY, 1);
|
||||
SetAnimBgAttribute(1, BG_ANIM_SCREEN_SIZE, 1);
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
if (!IsContest())
|
||||
{
|
||||
SetAnimBgAttribute(1, BG_ANIM_CHAR_BASE_BLOCK, 1);
|
||||
@ -884,7 +884,7 @@ static void AnimTask_CreateSurfWave_Step1(u8 taskId)
|
||||
|
||||
*BGptrX += gTasks[taskId].data[0];
|
||||
*BGptrY += gTasks[taskId].data[1];
|
||||
sub_80A6B30(&animBg);
|
||||
GetDefaultBattleAnimBgData(&animBg);
|
||||
gTasks[taskId].data[2] += gTasks[taskId].data[1];
|
||||
if (++gTasks[taskId].data[5] == 4)
|
||||
{
|
||||
@ -1053,7 +1053,7 @@ static void AnimTask_WaterSpoutLaunch_Step(u8 taskId)
|
||||
switch (task->data[0])
|
||||
{
|
||||
case 0:
|
||||
sub_80A805C(task, task->data[15], 0x100, 0x100, 224, 0x200, 32);
|
||||
PrepareEruptAnimTaskData(task, task->data[15], 0x100, 0x100, 0xE0, 0x200, 32);
|
||||
task->data[0]++;
|
||||
case 1:
|
||||
if (++task->data[3] > 1)
|
||||
@ -1069,7 +1069,7 @@ static void AnimTask_WaterSpoutLaunch_Step(u8 taskId)
|
||||
gSprites[task->data[15]].pos2.x = -3;
|
||||
}
|
||||
}
|
||||
if (sub_80A80C8(task) == 0)
|
||||
if (UpdateEruptAnimTask(task) == 0)
|
||||
{
|
||||
SetBattlerSpriteYOffsetFromYScale(task->data[15]);
|
||||
gSprites[task->data[15]].pos2.x = 0;
|
||||
@ -1081,13 +1081,13 @@ static void AnimTask_WaterSpoutLaunch_Step(u8 taskId)
|
||||
case 2:
|
||||
if (++task->data[3] > 4)
|
||||
{
|
||||
sub_80A805C(task, task->data[15], 224, 0x200, 384, 224, 8);
|
||||
PrepareEruptAnimTaskData(task, task->data[15], 0xE0, 0x200, 0x180, 0xE0, 8);
|
||||
task->data[3] = 0;
|
||||
task->data[0]++;
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (sub_80A80C8(task) == 0)
|
||||
if (UpdateEruptAnimTask(task) == 0)
|
||||
{
|
||||
task->data[3] = 0;
|
||||
task->data[4] = 0;
|
||||
@ -1107,7 +1107,7 @@ static void AnimTask_WaterSpoutLaunch_Step(u8 taskId)
|
||||
gSprites[task->data[15]].pos2.y -= 2;
|
||||
if (task->data[4] == 10)
|
||||
{
|
||||
sub_80A805C(task, task->data[15], 384, 224, 0x100, 0x100, 8);
|
||||
PrepareEruptAnimTaskData(task, task->data[15], 0x180, 0xE0, 0x100, 0x100, 8);
|
||||
task->data[3] = 0;
|
||||
task->data[4] = 0;
|
||||
task->data[0]++;
|
||||
@ -1116,7 +1116,7 @@ static void AnimTask_WaterSpoutLaunch_Step(u8 taskId)
|
||||
break;
|
||||
case 6:
|
||||
gSprites[task->data[15]].pos1.y--;
|
||||
if (sub_80A80C8(task) == 0)
|
||||
if (UpdateEruptAnimTask(task) == 0)
|
||||
{
|
||||
ResetSpriteRotScale(task->data[15]);
|
||||
gSprites[task->data[15]].pos1.y = task->data[5];
|
||||
@ -1260,14 +1260,14 @@ static void AnimTask_WaterSpoutRain_Step(u8 taskId)
|
||||
gBattleAnimArgs[1] = 0;
|
||||
gBattleAnimArgs[2] = 12;
|
||||
taskId2 = CreateTask(AnimTask_HorizontalShake, 80);
|
||||
if (taskId2 != 0xFF)
|
||||
if (taskId2 != TASK_NONE)
|
||||
{
|
||||
gTasks[taskId2].func(taskId2);
|
||||
gAnimVisualTaskCount++;
|
||||
}
|
||||
gBattleAnimArgs[0] = ANIM_DEF_PARTNER;
|
||||
taskId2 = CreateTask(AnimTask_HorizontalShake, 80);
|
||||
if (taskId2 != 0xFF)
|
||||
if (taskId2 != TASK_NONE)
|
||||
{
|
||||
gTasks[taskId2].func(taskId2);
|
||||
gAnimVisualTaskCount++;
|
||||
|
@ -2434,7 +2434,7 @@ static void PlayerHandleFaintAnimation(void)
|
||||
|
||||
static void PlayerHandlePaletteFade(void)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 2, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 2, 0, 16, RGB_BLACK);
|
||||
PlayerBufferExecCompleted();
|
||||
}
|
||||
|
||||
@ -2655,7 +2655,7 @@ static void PlayerHandleChooseItem(void)
|
||||
{
|
||||
s32 i;
|
||||
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gBattlerControllerFuncs[gActiveBattler] = OpenBagAndChooseItem;
|
||||
gBattlerInMenuId = gActiveBattler;
|
||||
|
||||
@ -2682,7 +2682,7 @@ static void PlayerHandleChoosePokemon(void)
|
||||
*(&gBattleStruct->battlerPreventingSwitchout) = gBattleBufferA[gActiveBattler][1] >> 4;
|
||||
*(&gBattleStruct->prevSelectedPartySlot) = gBattleBufferA[gActiveBattler][2];
|
||||
*(&gBattleStruct->abilityPreventingSwitchout) = gBattleBufferA[gActiveBattler][3];
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gBattlerControllerFuncs[gActiveBattler] = OpenPartyMenuToChooseMon;
|
||||
gBattlerInMenuId = gActiveBattler;
|
||||
}
|
||||
@ -2691,7 +2691,7 @@ static void PlayerHandleChoosePokemon(void)
|
||||
static void PlayerHandleCmd23(void)
|
||||
{
|
||||
BattleStopLowHpSound();
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 2, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 2, 0, 16, RGB_BLACK);
|
||||
PlayerBufferExecCompleted();
|
||||
}
|
||||
|
||||
|
@ -474,7 +474,7 @@ static void SafariHandleChooseMove(void)
|
||||
|
||||
static void SafariHandleChooseItem(void)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gBattlerControllerFuncs[gActiveBattler] = SafariOpenPokeblockCase;
|
||||
gBattlerInMenuId = gActiveBattler;
|
||||
}
|
||||
|
@ -1250,7 +1250,7 @@ static void WallyHandleChooseMove(void)
|
||||
|
||||
static void WallyHandleChooseItem(void)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gBattlerControllerFuncs[gActiveBattler] = OpenBagAfterPaletteFade;
|
||||
gBattlerInMenuId = gActiveBattler;
|
||||
}
|
||||
|
@ -3040,7 +3040,7 @@ static void Task_ShowTourneyInfoCard(u8 taskId)
|
||||
SetVBlankCallback(VblankCb_TourneyInfoCard);
|
||||
sInfoCard = AllocZeroed(sizeof(*sInfoCard));
|
||||
for (i = 0; i < NUM_INFOCARD_SPRITES; i++)
|
||||
sInfoCard->spriteIds[i] = 0xFF;
|
||||
sInfoCard->spriteIds[i] = SPRITE_NONE;
|
||||
LoadMonIconPalettes();
|
||||
i = CreateTask(Task_HandleInfoCardInput, 0);
|
||||
gTasks[i].data[0] = 0;
|
||||
@ -3105,7 +3105,7 @@ static void SpriteCb_TrainerIconCardScrollUp(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->pos1.y >= 192)
|
||||
{
|
||||
sInfoCard->spriteIds[sprite->data[2]] = 0xFF;
|
||||
sInfoCard->spriteIds[sprite->data[2]] = SPRITE_NONE;
|
||||
FreeAndDestroyTrainerPicSprite(sprite->data[3]);
|
||||
}
|
||||
}
|
||||
@ -3125,7 +3125,7 @@ static void SpriteCb_TrainerIconCardScrollDown(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->pos1.y <= -32)
|
||||
{
|
||||
sInfoCard->spriteIds[sprite->data[2]] = 0xFF;
|
||||
sInfoCard->spriteIds[sprite->data[2]] = SPRITE_NONE;
|
||||
FreeAndDestroyTrainerPicSprite(sprite->data[3]);
|
||||
}
|
||||
}
|
||||
@ -3145,7 +3145,7 @@ static void SpriteCb_TrainerIconCardScrollLeft(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->pos1.x >= 272)
|
||||
{
|
||||
sInfoCard->spriteIds[sprite->data[2]] = 0xFF;
|
||||
sInfoCard->spriteIds[sprite->data[2]] = SPRITE_NONE;
|
||||
FreeAndDestroyTrainerPicSprite(sprite->data[3]);
|
||||
}
|
||||
}
|
||||
@ -3165,7 +3165,7 @@ static void SpriteCb_TrainerIconCardScrollRight(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->pos1.x <= -32)
|
||||
{
|
||||
sInfoCard->spriteIds[sprite->data[2]] = 0xFF;
|
||||
sInfoCard->spriteIds[sprite->data[2]] = SPRITE_NONE;
|
||||
FreeAndDestroyTrainerPicSprite(sprite->data[3]);
|
||||
}
|
||||
}
|
||||
@ -3195,7 +3195,7 @@ static void SpriteCb_MonIconCardScrollUp(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->pos1.y >= 176)
|
||||
{
|
||||
sInfoCard->spriteIds[sprite->data[2]] = 0xFF;
|
||||
sInfoCard->spriteIds[sprite->data[2]] = SPRITE_NONE;
|
||||
FreeAndDestroyMonIconSprite(sprite);
|
||||
}
|
||||
}
|
||||
@ -3217,7 +3217,7 @@ static void SpriteCb_MonIconCardScrollDown(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->pos1.y <= -16)
|
||||
{
|
||||
sInfoCard->spriteIds[sprite->data[2]] = 0xFF;
|
||||
sInfoCard->spriteIds[sprite->data[2]] = SPRITE_NONE;
|
||||
FreeAndDestroyMonIconSprite(sprite);
|
||||
}
|
||||
}
|
||||
@ -3239,7 +3239,7 @@ static void SpriteCb_MonIconCardScrollLeft(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->pos1.x >= 256)
|
||||
{
|
||||
sInfoCard->spriteIds[sprite->data[2]] = 0xFF;
|
||||
sInfoCard->spriteIds[sprite->data[2]] = SPRITE_NONE;
|
||||
FreeAndDestroyMonIconSprite(sprite);
|
||||
}
|
||||
}
|
||||
@ -3261,7 +3261,7 @@ static void SpriteCb_MonIconCardScrollRight(struct Sprite *sprite)
|
||||
{
|
||||
if (sprite->pos1.x <= -16)
|
||||
{
|
||||
sInfoCard->spriteIds[sprite->data[2]] = 0xFF;
|
||||
sInfoCard->spriteIds[sprite->data[2]] = SPRITE_NONE;
|
||||
FreeAndDestroyMonIconSprite(sprite);
|
||||
}
|
||||
}
|
||||
@ -3393,7 +3393,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
case STATE_FADE_IN:
|
||||
if (!gPaletteFade.active)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
gTasks[taskId].tState = STATE_WAIT_FADE;
|
||||
}
|
||||
break;
|
||||
@ -3406,7 +3406,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
switch (i)
|
||||
{
|
||||
case INFOCARD_INPUT_AB:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].tState = STATE_CLOSE_CARD;
|
||||
break;
|
||||
case TRAINERCARD_INPUT_UP ... TRAINERCARD_INPUT_RIGHT:
|
||||
@ -3500,7 +3500,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 2)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollUp;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3511,7 +3511,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollUp;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3524,7 +3524,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 10)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollUp;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3535,7 +3535,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollUp;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3616,7 +3616,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 2)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollDown;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3627,7 +3627,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollDown;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3640,7 +3640,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 10)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollDown;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3651,7 +3651,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollDown;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3699,7 +3699,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 2)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollLeft;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3710,7 +3710,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollLeft;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3723,7 +3723,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 10)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollLeft;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3734,7 +3734,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollLeft;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3782,7 +3782,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 2)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollLeft;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3793,7 +3793,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollLeft;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3806,7 +3806,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 10)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollLeft;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3817,7 +3817,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollLeft;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3863,7 +3863,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 2)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollRight;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3874,7 +3874,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollRight;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3887,7 +3887,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 10)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollRight;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3898,7 +3898,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollRight;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3946,7 +3946,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 2)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollRight;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3957,7 +3957,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollRight;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot ^ 1;
|
||||
@ -3970,7 +3970,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 10)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_TrainerIconCardScrollRight;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -3981,7 +3981,7 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
{
|
||||
gSprites[sInfoCard->spriteIds[i]].callback = SpriteCb_MonIconCardScrollRight;
|
||||
gSprites[sInfoCard->spriteIds[i]].data[0] = gTasks[taskId].tUsingAlternateSlot;
|
||||
@ -4051,12 +4051,12 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 2)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
FreeAndDestroyTrainerPicSprite(sInfoCard->spriteIds[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
FreeAndDestroyMonIconSprite(&gSprites[sInfoCard->spriteIds[i]]);
|
||||
}
|
||||
}
|
||||
@ -4064,12 +4064,12 @@ static void Task_HandleInfoCardInput(u8 taskId)
|
||||
{
|
||||
if (i < 10)
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
FreeAndDestroyTrainerPicSprite(sInfoCard->spriteIds[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sInfoCard->spriteIds[i] != 0xFF)
|
||||
if (sInfoCard->spriteIds[i] != SPRITE_NONE)
|
||||
FreeAndDestroyMonIconSprite(&gSprites[sInfoCard->spriteIds[i]]);
|
||||
}
|
||||
}
|
||||
@ -4946,7 +4946,7 @@ static void Task_HandleTourneyTreeInput(u8 taskId)
|
||||
case STATE_FADE_IN:
|
||||
if (!gPaletteFade.active)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
gTasks[taskId].tState = STATE_WAIT_FADE;
|
||||
StartSpriteAnim(&gSprites[spriteId], 1);
|
||||
}
|
||||
@ -4960,17 +4960,17 @@ static void Task_HandleTourneyTreeInput(u8 taskId)
|
||||
{
|
||||
case TOURNEY_TREE_SELECTED_CLOSE:
|
||||
default:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].tState = STATE_CLOSE_TOURNEY_TREE;
|
||||
break;
|
||||
case TOURNEY_TREE_NO_SELECTION:
|
||||
break;
|
||||
case TOURNEY_TREE_SELECTED_TRAINER:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].tState = STATE_SHOW_INFOCARD_TRAINER;
|
||||
break;
|
||||
case TOURNEY_TREE_SELECTED_MATCH:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].tState = STATE_SHOW_INFOCARD_MATCH;
|
||||
break;
|
||||
}
|
||||
@ -5509,7 +5509,7 @@ static void Task_HandleStaticTourneyTreeInput(u8 taskId)
|
||||
switch (gTasks[taskId].tState)
|
||||
{
|
||||
case STATE_FADE_IN:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
gTasks[taskId].tState = STATE_SHOW_RESULTS;
|
||||
break;
|
||||
case STATE_SHOW_RESULTS:
|
||||
@ -5559,7 +5559,7 @@ static void Task_HandleStaticTourneyTreeInput(u8 taskId)
|
||||
case STATE_WAIT_FOR_INPUT:
|
||||
if (JOY_NEW(A_BUTTON | B_BUTTON))
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].tState = STATE_CLOSE_TOURNEY_TREE;
|
||||
}
|
||||
break;
|
||||
|
@ -1203,7 +1203,7 @@ static void CB2_InitSelectScreen(void)
|
||||
ShowBg(0);
|
||||
ShowBg(1);
|
||||
SetVBlankCallback(VBlankCB_SelectScreen);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
|
||||
SetGpuReg(REG_OFFSET_DISPCNT, DISPCNT_OBJ_ON | DISPCNT_BG0_ON | DISPCNT_BG1_ON | DISPCNT_OBJ_1D_MAP);
|
||||
#ifdef UBFIX
|
||||
if (sFactorySelectScreen && sFactorySelectScreen->fromSummaryScreen)
|
||||
@ -1451,7 +1451,7 @@ static void Select_Task_OpenSummaryScreen(u8 taskId)
|
||||
{
|
||||
case STATE_SUMMARY_FADE:
|
||||
gPlttBufferUnfaded[228] = gPlttBufferFaded[228];
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
gTasks[taskId].tState = STATE_SUMMARY_CLEAN;
|
||||
break;
|
||||
case STATE_SUMMARY_CLEAN:
|
||||
@ -1489,7 +1489,7 @@ static void Select_Task_Exit(u8 taskId)
|
||||
switch (gTasks[taskId].tState)
|
||||
{
|
||||
case 0:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
gTasks[taskId].tState++;
|
||||
break;
|
||||
case 1:
|
||||
@ -2369,7 +2369,7 @@ static void Swap_Task_OpenSummaryScreen(u8 taskId)
|
||||
switch (gTasks[taskId].tState)
|
||||
{
|
||||
case STATE_SUMMARY_FADE:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
gTasks[taskId].tState = STATE_SUMMARY_CLEAN;
|
||||
break;
|
||||
case STATE_SUMMARY_CLEAN:
|
||||
@ -2425,7 +2425,7 @@ static void Swap_Task_Exit(u8 taskId)
|
||||
gTasks[taskId].tState++;
|
||||
break;
|
||||
case 2:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
gTasks[taskId].tState++;
|
||||
break;
|
||||
case 3:
|
||||
@ -3381,7 +3381,7 @@ static void CB2_InitSwapScreen(void)
|
||||
gMain.state++;
|
||||
break;
|
||||
case 14:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
|
||||
SetGpuReg(REG_OFFSET_DISPCNT, DISPCNT_OBJ_ON | DISPCNT_OBJ_1D_MAP);
|
||||
ShowBg(0);
|
||||
ShowBg(1);
|
||||
|
@ -1841,7 +1841,7 @@ void BattleMainCB2(void)
|
||||
{
|
||||
gSpecialVar_Result = gBattleOutcome = B_OUTCOME_PLAYER_TELEPORTED;
|
||||
ResetPaletteFadeControl();
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
SetMainCallback2(CB2_QuitRecordedBattle);
|
||||
}
|
||||
}
|
||||
@ -2242,7 +2242,7 @@ static void EndLinkBattleInSteps(void)
|
||||
case 1:
|
||||
if (--gBattleCommunication[1] == 0)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gBattleCommunication[MULTIUSE_STATE]++;
|
||||
}
|
||||
break;
|
||||
@ -2299,7 +2299,7 @@ static void EndLinkBattleInSteps(void)
|
||||
for (i = 0; i < 2; i++)
|
||||
LoadChosenBattleElement(i);
|
||||
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
gBattleCommunication[MULTIUSE_STATE]++;
|
||||
break;
|
||||
case 4:
|
||||
@ -2404,7 +2404,7 @@ static void sub_80392A8(void)
|
||||
gReservedSpritePaletteCount = 4;
|
||||
SetVBlankCallback(VBlankCB_Battle);
|
||||
SetMainCallback2(sub_803937C);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
gBattleCommunication[MULTIUSE_STATE] = 0;
|
||||
}
|
||||
|
||||
@ -2564,7 +2564,7 @@ static void sub_803939C(void)
|
||||
{
|
||||
if (IsLinkTaskFinished() == TRUE)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gBattleCommunication[1] = 0x20;
|
||||
gBattleCommunication[MULTIUSE_STATE] = 8;
|
||||
}
|
||||
@ -2572,7 +2572,7 @@ static void sub_803939C(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gBattleCommunication[1] = 0x20;
|
||||
gBattleCommunication[MULTIUSE_STATE] = 8;
|
||||
}
|
||||
|
@ -428,32 +428,32 @@ static const u16 sNPCSpeeches[][EASY_CHAT_BATTLE_WORDS_COUNT] =
|
||||
{EC_WORD_DID, EC_WORD_YOU, EC_WORD_MAKE, EC_WORD_A, EC_WORD_MISTAKE, EC_WORD_QUES},
|
||||
{EC_WORD_IT_S, EC_WORD_MEAN, EC_WORD_AND, EC_WORD_AWFUL, EC_WORD_IN, EC_WORD_HERE},
|
||||
{EC_WORD_I_AM, EC_WORD_SO, EC_WORD_TIRED, EC_WORD_OF, EC_WORD_THIS, EC_WORD_PLACE},
|
||||
{EC_WORD_I, EC_WORD_QUITE, EC_WORD_ENJOY, EC_WORD_THIS, EC_WORD_CHALLENGE, 0xFFFF},
|
||||
{EC_WORD_I, EC_WORD_QUITE, EC_WORD_ENJOY, EC_WORD_THIS, EC_WORD_CHALLENGE, EC_EMPTY_WORD},
|
||||
{EC_WORD_LOOK, EC_WORD_AT, EC_WORD_HOW, EC_WORD_I, EC_MOVE2(TACKLE), EC_WORD_THIS},
|
||||
{EC_WORD_READY, EC_WORD_TO, EC_WORD_GIVE_UP, EC_WORD_YET, EC_WORD_QUES, 0xFFFF},
|
||||
{EC_WORD_READY, EC_WORD_TO, EC_WORD_GIVE_UP, EC_WORD_YET, EC_WORD_QUES, EC_EMPTY_WORD},
|
||||
{EC_WORD_OH, EC_WORD_NO, EC_WORD_WHO, EC_WORD_ARE, EC_WORD_YOU, EC_WORD_QUES},
|
||||
{EC_WORD_I_VE, EC_WORD_BEEN, EC_WORD_WANDERING, EC_WORD_ABOUT, EC_WORD_FOREVER, EC_WORD_ELLIPSIS},
|
||||
{EC_WORD_I, EC_WORD_THINK, EC_WORD_I, EC_WORD_WILL, EC_WORD_GIVE_UP, 0xFFFF},
|
||||
{EC_WORD_I, EC_WORD_THINK, EC_WORD_I, EC_WORD_WILL, EC_WORD_GIVE_UP, EC_EMPTY_WORD},
|
||||
{EC_WORD_WHAT, EC_WORD_SHOULD, EC_WORD_I, EC_WORD_DO, EC_WORD_NEXT, EC_WORD_QUES},
|
||||
{EC_WORD_I, EC_WORD_CAN_WIN, EC_WORD_WITH, EC_WORD_MY, EC_MOVE(SHEER_COLD), EC_WORD_GENIUS},
|
||||
{EC_WORD_WON_T, EC_WORD_SOMEONE, EC_WORD_COOL, EC_WORD_SHOW, EC_WORD_UP, EC_WORD_QUES},
|
||||
{EC_WORD_BATTLE, EC_WORD_GAME, EC_WORD_IS, EC_WORD_AWESOME, EC_WORD_EXCL, 0xFFFF},
|
||||
{EC_WORD_BATTLE, EC_WORD_GAME, EC_WORD_IS, EC_WORD_AWESOME, EC_WORD_EXCL, EC_EMPTY_WORD},
|
||||
{EC_WORD_I, EC_WORD_CAN_T, EC_WORD_TAKE, EC_WORD_THIS, EC_WORD_ANY, EC_WORD_MORE},
|
||||
{EC_WORD_I, EC_WORD_DON_T, EC_WORD_KNOW, EC_WORD_IF, EC_WORD_IT_S, EC_WORD_OKAY},
|
||||
{EC_WORD_OH, EC_WORD_NO, EC_WORD_EXCL, EC_WORD_NOT, EC_WORD_ANOTHER, EC_WORD_TRAINER},
|
||||
{EC_WORD_IT, EC_WORD_HAS, EC_WORD_TO, EC_WORD_BE, EC_WORD_LEFT, EC_WORD_NEXT},
|
||||
{EC_WORD_IT, EC_WORD_MUST_BE, EC_WORD_OVER, EC_WORD_SOON, EC_WORD_RIGHT, EC_WORD_QUES},
|
||||
{EC_WORD_THIS, EC_WORD_IS, EC_WORD_TOTALLY, EC_WORD_EASY, EC_WORD_ISN_T_IT_QUES, 0xFFFF},
|
||||
{EC_WORD_I_AM, EC_WORD_GOING, EC_WORD_TO, EC_WORD_POWER, EC_WORD_ON, 0xFFFF},
|
||||
{EC_WORD_THIS, EC_WORD_IS, EC_WORD_TOTALLY, EC_WORD_EASY, EC_WORD_ISN_T_IT_QUES, EC_EMPTY_WORD},
|
||||
{EC_WORD_I_AM, EC_WORD_GOING, EC_WORD_TO, EC_WORD_POWER, EC_WORD_ON, EC_EMPTY_WORD},
|
||||
{EC_WORD_THERE, EC_WORD_IS, EC_WORD_NO, EC_WORD_GIVE_UP, EC_WORD_IN, EC_WORD_ME},
|
||||
{EC_WORD_I_AM, EC_WORD_NOT, EC_WORD_GOING, EC_WORD_TO, EC_WORD_MAKE, EC_WORD_IT},
|
||||
{EC_WORD_GO, EC_WORD_ON, EC_WORD_I, EC_WORD_CAN_T, EC_WORD_ANY, EC_WORD_MORE},
|
||||
{EC_WORD_A, EC_WORD_TRAINER, EC_WORD_AFTER, EC_WORD_ANOTHER, EC_WORD_ELLIPSIS, 0xFFFF},
|
||||
{EC_WORD_A, EC_WORD_TRAINER, EC_WORD_AFTER, EC_WORD_ANOTHER, EC_WORD_ELLIPSIS, EC_EMPTY_WORD},
|
||||
{EC_WORD_DO, EC_WORD_YOU, EC_WORD_LIKE, EC_WORD_STEEL, EC_WORD_POKEMON, EC_WORD_QUES},
|
||||
{EC_WORD_EVERY, EC_WORD_TRAINER, EC_WORD_HERE, EC_WORD_IS, EC_WORD_TOO_WEAK, 0xFFFF},
|
||||
{EC_WORD_EVERY, EC_WORD_TRAINER, EC_WORD_HERE, EC_WORD_IS, EC_WORD_TOO_WEAK, EC_EMPTY_WORD},
|
||||
{EC_WORD_YOU, EC_WORD_THINK, EC_WORD_THIS, EC_WORD_IS, EC_WORD_EASY, EC_WORD_QUES},
|
||||
{EC_WORD_WHAT, EC_WORD_WILL, EC_WORD_COME, EC_WORD_AFTER, EC_WORD_THIS, EC_WORD_QUES},
|
||||
{EC_WORD_I_AM, EC_WORD_JUST, EC_WORD_SO, EC_WORD_CONFUSED, EC_WORD_EXCL, 0xFFFF},
|
||||
{EC_WORD_I_AM, EC_WORD_JUST, EC_WORD_SO, EC_WORD_CONFUSED, EC_WORD_EXCL, EC_EMPTY_WORD},
|
||||
{EC_WORD_I, EC_WORD_JUST, EC_WORD_WANT, EC_WORD_TO, EC_WORD_GO_HOME, EC_WORD_ELLIPSIS},
|
||||
{EC_WORD_YEEHAW_EXCL, EC_WORD_THIS, EC_WORD_PLACE, EC_WORD_IS, EC_WORD_A, EC_WORD_PUSHOVER},
|
||||
{EC_WORD_I, EC_WORD_HAVEN_T, EC_WORD_BEEN, EC_WORD_IN, EC_WORD_A, EC_WORD_BATTLE},
|
||||
@ -1184,7 +1184,7 @@ static bool8 StatusInflictionFadeOut(struct Task *task)
|
||||
task->data[7] += task->data[4];
|
||||
if (task->data[7] > 16)
|
||||
task->data[7] = 16;
|
||||
BlendPalettes(0xFFFFFFFF, task->data[7], RGB(11, 11, 11));
|
||||
BlendPalettes(PALETTES_ALL, task->data[7], RGB(11, 11, 11));
|
||||
}
|
||||
|
||||
if (task->data[7] >= 16)
|
||||
@ -1203,7 +1203,7 @@ static bool8 StatusInflictionFadeIn(struct Task *task)
|
||||
task->data[7] -= task->data[5];
|
||||
if (task->data[7] < 0)
|
||||
task->data[7] = 0;
|
||||
BlendPalettes(0xFFFFFFFF, task->data[7], RGB(11, 11, 11));
|
||||
BlendPalettes(PALETTES_ALL, task->data[7], RGB(11, 11, 11));
|
||||
}
|
||||
|
||||
if (task->data[7] == 0)
|
||||
@ -1235,7 +1235,7 @@ static void StartStatusInflictionScreenFlash(s16 fadeOutDelay, s16 fadeInDelay,
|
||||
|
||||
static bool8 IsStatusInflictionScreenFlashTaskFinished(void)
|
||||
{
|
||||
if (FindTaskIdByFunc(DoStatusInflictionScreenFlash) == 0xFF)
|
||||
if (FindTaskIdByFunc(DoStatusInflictionScreenFlash) == TASK_NONE)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
|
@ -389,10 +389,10 @@ void GoToBattlePyramidBagMenu(u8 a0, void (*callback)(void))
|
||||
|
||||
gPyramidBagResources->callback2 = NULL;
|
||||
gPyramidBagResources->unk814 = 0xFF;
|
||||
gPyramidBagResources->scrollIndicatorsTaskId = 0xFF;
|
||||
gPyramidBagResources->scrollIndicatorsTaskId = TASK_NONE;
|
||||
|
||||
memset(gPyramidBagResources->itemsSpriteIds, 0xFF, sizeof(gPyramidBagResources->itemsSpriteIds));
|
||||
memset(gPyramidBagResources->windowIds, 0xFF, sizeof(gPyramidBagResources->windowIds));
|
||||
memset(gPyramidBagResources->windowIds, WINDOW_NONE, sizeof(gPyramidBagResources->windowIds));
|
||||
|
||||
SetMainCallback2(sub_81C504C);
|
||||
}
|
||||
@ -493,11 +493,11 @@ static bool8 sub_81C5078(void)
|
||||
gMain.state++;
|
||||
break;
|
||||
case 15:
|
||||
BlendPalettes(0xFFFFFFFF, 0x10, 0);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, 0);
|
||||
gMain.state++;
|
||||
break;
|
||||
case 16:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
gPaletteFade.bufferTransferDisabled = FALSE;
|
||||
gMain.state++;
|
||||
break;
|
||||
@ -657,16 +657,16 @@ static void PrintItemDescription(s32 listMenuId)
|
||||
|
||||
static void AddScrollArrow(void)
|
||||
{
|
||||
if (gPyramidBagResources->scrollIndicatorsTaskId == 0xFF)
|
||||
if (gPyramidBagResources->scrollIndicatorsTaskId == TASK_NONE)
|
||||
gPyramidBagResources->scrollIndicatorsTaskId = AddScrollIndicatorArrowPairParameterized(2, 172, 12, 148, gPyramidBagResources->listMenuCount - gPyramidBagResources->listMenuMaxShown, 0xB5E, 0xB5E, &gPyramidBagCursorData.scrollPosition);
|
||||
}
|
||||
|
||||
static void RemoveScrollArrow(void)
|
||||
{
|
||||
if (gPyramidBagResources->scrollIndicatorsTaskId != 0xFF)
|
||||
if (gPyramidBagResources->scrollIndicatorsTaskId != TASK_NONE)
|
||||
{
|
||||
RemoveScrollIndicatorArrowPair(gPyramidBagResources->scrollIndicatorsTaskId);
|
||||
gPyramidBagResources->scrollIndicatorsTaskId = 0xFF;
|
||||
gPyramidBagResources->scrollIndicatorsTaskId = TASK_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -811,7 +811,7 @@ static void sub_81C5AB8(u8 y, u8 arg1)
|
||||
|
||||
void CloseBattlePyramidBagAndSetCallback(u8 taskId)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].func = sub_81C5B4C;
|
||||
}
|
||||
|
||||
@ -1428,7 +1428,7 @@ static u8 sub_81C6D08(u8 windowArrayId)
|
||||
static u8 sub_81C6D24(u8 windowArrayId)
|
||||
{
|
||||
u8 *windowId = &gPyramidBagResources->windowIds[windowArrayId];
|
||||
if (*windowId == 0xFF)
|
||||
if (*windowId == WINDOW_NONE)
|
||||
{
|
||||
*windowId = AddWindow(&gUnknown_0861F350[windowArrayId]);
|
||||
DrawStdFrameWithCustomTileAndPalette(*windowId, FALSE, 1, 0xE);
|
||||
@ -1440,13 +1440,13 @@ static u8 sub_81C6D24(u8 windowArrayId)
|
||||
static void sub_81C6D6C(u8 windowArrayId)
|
||||
{
|
||||
u8 *windowId = &gPyramidBagResources->windowIds[windowArrayId];
|
||||
if (*windowId != 0xFF)
|
||||
if (*windowId != WINDOW_NONE)
|
||||
{
|
||||
ClearStdWindowAndFrameToTransparent(*windowId, FALSE);
|
||||
ClearWindowTilemap(*windowId);
|
||||
RemoveWindow(*windowId);
|
||||
ScheduleBgCopyTilemapToVram(1);
|
||||
*windowId = 0xFF;
|
||||
*windowId = WINDOW_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1475,13 +1475,13 @@ static void CloseBattlePyramidBagTextWindow(void)
|
||||
static void sub_81C6E38(u8 itemSpriteArrayId)
|
||||
{
|
||||
u8 *spriteId = &gPyramidBagResources->itemsSpriteIds[itemSpriteArrayId];
|
||||
if (*spriteId != 0xFF)
|
||||
if (*spriteId != SPRITE_NONE)
|
||||
{
|
||||
FreeSpriteTilesByTag(ITEM_IMAGE_TAG + itemSpriteArrayId);
|
||||
FreeSpritePaletteByTag(ITEM_IMAGE_TAG + itemSpriteArrayId);
|
||||
FreeSpriteOamMatrix(&gSprites[*spriteId]);
|
||||
DestroySprite(&gSprites[*spriteId]);
|
||||
*spriteId = 0xFF;
|
||||
*spriteId = SPRITE_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1526,7 +1526,7 @@ static void ShowItemImage(u16 itemId, u8 itemSpriteArrayId)
|
||||
{
|
||||
u8 itemSpriteId;
|
||||
u8 *spriteId = &gPyramidBagResources->itemsSpriteIds[itemSpriteArrayId + 1];
|
||||
if (*spriteId == 0xFF)
|
||||
if (*spriteId == SPRITE_NONE)
|
||||
{
|
||||
FreeSpriteTilesByTag(ITEM_IMAGE_TAG + 1 + itemSpriteArrayId);
|
||||
FreeSpritePaletteByTag(ITEM_IMAGE_TAG + 1 + itemSpriteArrayId);
|
||||
|
@ -365,7 +365,7 @@ static void Task_CloseTrainerHillRecordsOnButton(u8 taskId)
|
||||
|
||||
static void Task_BeginPaletteFade(u8 taskId)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].func = Task_ExitTrainerHillRecords;
|
||||
}
|
||||
|
||||
@ -512,7 +512,7 @@ static void CB2_ShowTrainerHillRecords(void)
|
||||
gMain.state++;
|
||||
break;
|
||||
case 6:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
gMain.state++;
|
||||
break;
|
||||
case 7:
|
||||
|
@ -5374,7 +5374,7 @@ static void Cmd_yesnoboxlearnmove(void)
|
||||
if (gBattleCommunication[1] == 0)
|
||||
{
|
||||
HandleBattleWindow(0x18, 0x8, 0x1D, 0xD, WINDOW_CLEAR);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gBattleScripting.learnMoveState++;
|
||||
}
|
||||
else
|
||||
@ -9942,7 +9942,7 @@ static void Cmd_displaydexinfo(void)
|
||||
switch (gBattleCommunication[0])
|
||||
{
|
||||
case 0:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gBattleCommunication[0]++;
|
||||
break;
|
||||
case 1:
|
||||
@ -9973,7 +9973,7 @@ static void Cmd_displaydexinfo(void)
|
||||
case 4:
|
||||
if (!IsDma3ManagerBusyWithBgCopy())
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_BG, 0, 0x10, 0, RGB_BLACK);
|
||||
ShowBg(0);
|
||||
ShowBg(3);
|
||||
gBattleCommunication[0]++;
|
||||
|
@ -991,7 +991,7 @@ static bool8 Transition_Phase1(struct Task *task)
|
||||
|
||||
static bool8 Transition_WaitForPhase1(struct Task *task)
|
||||
{
|
||||
if (FindTaskIdByFunc(sPhase1_Tasks[task->tTransitionId]) == 0xFF)
|
||||
if (FindTaskIdByFunc(sPhase1_Tasks[task->tTransitionId]) == TASK_NONE)
|
||||
{
|
||||
task->tState++;
|
||||
return TRUE;
|
||||
@ -1012,7 +1012,7 @@ static bool8 Transition_Phase2(struct Task *task)
|
||||
static bool8 Transition_WaitForPhase2(struct Task *task)
|
||||
{
|
||||
task->tTransitionDone = FALSE;
|
||||
if (FindTaskIdByFunc(sPhase2_Tasks[task->tTransitionId]) == 0xFF)
|
||||
if (FindTaskIdByFunc(sPhase2_Tasks[task->tTransitionId]) == TASK_NONE)
|
||||
task->tTransitionDone = TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
@ -1071,7 +1071,7 @@ static bool8 Phase2_Blur_Func2(struct Task *task)
|
||||
{
|
||||
task->tData1 = 4;
|
||||
if (++task->tData2 == 10)
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, -1, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, -1, 0, 0x10, RGB_BLACK);
|
||||
SetGpuReg(REG_OFFSET_MOSAIC, (task->tData2 & 15) * 17);
|
||||
if (task->tData2 > 14)
|
||||
task->tState++;
|
||||
@ -1098,7 +1098,7 @@ static bool8 Phase2_Swirl_Func1(struct Task *task)
|
||||
{
|
||||
InitTransitionStructVars();
|
||||
ScanlineEffect_Clear();
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 4, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 4, 0, 0x10, RGB_BLACK);
|
||||
sub_8149F98(gScanlineEffectRegBuffers[1], sTransitionStructPtr->field_14, 0, 2, 0, 160);
|
||||
|
||||
SetVBlankCallback(VBlankCB_Phase2_Swirl);
|
||||
@ -1153,7 +1153,7 @@ static bool8 Phase2_Shuffle_Func1(struct Task *task)
|
||||
InitTransitionStructVars();
|
||||
ScanlineEffect_Clear();
|
||||
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 4, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 4, 0, 0x10, RGB_BLACK);
|
||||
memset(gScanlineEffectRegBuffers[1], sTransitionStructPtr->field_16, 0x140);
|
||||
|
||||
SetVBlankCallback(VBlankCB_Phase2_Shuffle);
|
||||
@ -1456,7 +1456,7 @@ static bool8 Phase2_Kyogre_Func5(struct Task *task)
|
||||
|
||||
static bool8 Phase2_WeatherDuo_Func6(struct Task *task)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFF8000, 1, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_OBJECTS | 0x8000, 1, 0, 0x10, RGB_BLACK);
|
||||
task->tState++;
|
||||
return FALSE;
|
||||
}
|
||||
@ -1541,7 +1541,7 @@ static bool8 Phase2_FramesCountdown(struct Task *task)
|
||||
|
||||
static bool8 Phase2_WeatherTrio_Func1(struct Task *task)
|
||||
{
|
||||
BeginNormalPaletteFade(0x0000FFFF, 1, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_BG, 1, 0, 0x10, RGB_BLACK);
|
||||
task->tState++;
|
||||
return FALSE;
|
||||
}
|
||||
@ -1962,7 +1962,7 @@ static bool8 Phase2_Ripple_Func2(struct Task *task)
|
||||
if (++task->tData3 == 81)
|
||||
{
|
||||
task->tData4++;
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, -2, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, -2, 0, 0x10, RGB_BLACK);
|
||||
}
|
||||
|
||||
if (task->tData4 != 0 && !gPaletteFade.active)
|
||||
@ -2308,7 +2308,7 @@ static bool8 Phase2_Mugshot_Func7(struct Task *task)
|
||||
static bool8 Phase2_Mugshot_Func8(struct Task *task)
|
||||
{
|
||||
sTransitionStructPtr->VBlank_DMA = FALSE;
|
||||
BlendPalettes(0xFFFFFFFF, 0x10, RGB_WHITE);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, RGB_WHITE);
|
||||
sTransitionStructPtr->BLDCNT = 0xFF;
|
||||
task->tData3 = 0;
|
||||
|
||||
@ -3168,7 +3168,7 @@ static bool8 Phase2_Rayquaza_Func6(struct Task *task)
|
||||
{
|
||||
task->tState++;
|
||||
task->tData1 = 0;
|
||||
BeginNormalPaletteFade(0xFFFF8000, 2, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_OBJECTS | 0x8000, 2, 0, 0x10, RGB_BLACK);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
@ -3187,8 +3187,8 @@ static bool8 Phase2_Rayquaza_Func7(struct Task *task)
|
||||
|
||||
static bool8 Phase2_Rayquaza_Func8(struct Task *task)
|
||||
{
|
||||
BlendPalettes(0x00007FFF, 8, 0);
|
||||
BlendPalettes(0xFFFF8000, 0, 0);
|
||||
BlendPalettes(PALETTES_BG & ~(0x8000), 8, 0);
|
||||
BlendPalettes(PALETTES_OBJECTS | 0x8000, 0, 0);
|
||||
|
||||
task->tState++;
|
||||
return FALSE;
|
||||
@ -3300,7 +3300,7 @@ static bool8 Phase2_WhiteFade_Func3(struct Task *task)
|
||||
sTransitionStructPtr->VBlank_DMA = 0;
|
||||
if (sTransitionStructPtr->field_20 > 7)
|
||||
{
|
||||
BlendPalettes(-1, 0x10, 0x7FFF);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, 0x7FFF);
|
||||
task->tState++;
|
||||
}
|
||||
return FALSE;
|
||||
@ -3612,7 +3612,7 @@ static void CreatePhase1Task(s16 a0, s16 a1, s16 a2, s16 a3, s16 a4)
|
||||
|
||||
static bool8 IsPhase1Done(void)
|
||||
{
|
||||
if (FindTaskIdByFunc(TransitionPhase1_Task_RunFuncs) == 0xFF)
|
||||
if (FindTaskIdByFunc(TransitionPhase1_Task_RunFuncs) == TASK_NONE)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
@ -3631,7 +3631,7 @@ static bool8 Phase1_TransitionAll_Func1(struct Task *task)
|
||||
task->tData7 += task->tData4;
|
||||
if (task->tData7 > 16)
|
||||
task->tData7 = 16;
|
||||
BlendPalettes(-1, task->tData7, 0x2D6B);
|
||||
BlendPalettes(PALETTES_ALL, task->tData7, 0x2D6B);
|
||||
}
|
||||
if (task->tData7 > 15)
|
||||
{
|
||||
@ -3649,7 +3649,7 @@ static bool8 Phase1_TransitionAll_Func2(struct Task *task)
|
||||
task->tData7 -= task->tData5;
|
||||
if (task->tData7 < 0)
|
||||
task->tData7 = 0;
|
||||
BlendPalettes(-1, task->tData7, 0x2D6B);
|
||||
BlendPalettes(PALETTES_ALL, task->tData7, 0x2D6B);
|
||||
}
|
||||
if (task->tData7 == 0)
|
||||
{
|
||||
@ -3706,7 +3706,7 @@ void GetBg0TilesDst(u16 **tilemap, u16 **tileset)
|
||||
|
||||
static void FadeScreenBlack(void)
|
||||
{
|
||||
BlendPalettes(0xFFFFFFFF, 16, RGB_BLACK);
|
||||
BlendPalettes(PALETTES_ALL, 16, RGB_BLACK);
|
||||
}
|
||||
|
||||
static void sub_8149F98(s16 *array, s16 sinAdd, s16 index, s16 indexIncrementer, s16 amplitude, s16 arrSize)
|
||||
@ -3977,7 +3977,7 @@ static bool8 Phase2_FrontierLogoWave_Func4(struct Task *task)
|
||||
if (++task->tData3 == 101)
|
||||
{
|
||||
task->tData4++;
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
}
|
||||
|
||||
if (task->tData4 != 0 && !gPaletteFade.active)
|
||||
@ -4077,7 +4077,7 @@ static bool8 Phase2_FrontierSquares_Func3(struct Task *task)
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
BlendPalettes(0xFFFF7FFF, 0x10, 0);
|
||||
BlendPalettes(PALETTES_ALL & ~(0x8000), 0x10, 0);
|
||||
LZ77UnCompVram(sFrontierSquares_EmptyBg_Tileset, tileset);
|
||||
break;
|
||||
case 2:
|
||||
@ -4138,7 +4138,7 @@ static bool8 Phase2_FrontierSquaresSpiral_Func2(struct Task *task)
|
||||
static bool8 Phase2_FrontierSquaresSpiral_Func3(struct Task *task)
|
||||
{
|
||||
BlendPalette(0xE0, 0x10, 3, 0);
|
||||
BlendPalettes(0xFFFF3FFF, 0x10, 0);
|
||||
BlendPalettes(PALETTES_ALL & ~(0x8000 | 0x4000), 0x10, 0);
|
||||
|
||||
task->tData2 = 0;
|
||||
task->tData3 = 0;
|
||||
@ -4194,7 +4194,7 @@ static bool8 Phase2_FrontierSquares_End(struct Task *task)
|
||||
{
|
||||
FillBgTilemapBufferRect_Palette0(0, 1, 0, 0, 0x20, 0x20);
|
||||
CopyBgTilemapBufferToVram(0);
|
||||
BlendPalettes(0xFFFFFFFF, 0x10, 0);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, 0);
|
||||
DestroyTask(FindTaskIdByFunc(task->func));
|
||||
return FALSE;
|
||||
}
|
||||
@ -4286,7 +4286,7 @@ static bool8 Phase2_FrontierSquaresScroll_Func2(struct Task *task)
|
||||
|
||||
static bool8 Phase2_FrontierSquaresScroll_Func3(struct Task *task)
|
||||
{
|
||||
BlendPalettes(0xFFFF7FFF, 0x10, 0);
|
||||
BlendPalettes(PALETTES_ALL & ~(0x8000), 0x10, 0);
|
||||
|
||||
task->tData2 = 0;
|
||||
|
||||
@ -4325,7 +4325,7 @@ static bool8 Phase2_FrontierSquaresScroll_Func5(struct Task *task)
|
||||
|
||||
FillBgTilemapBufferRect_Palette0(0, 1, 0, 0, 0x20, 0x20);
|
||||
CopyBgTilemapBufferToVram(0);
|
||||
BlendPalettes(0xFFFFFFFF, 0x10, 0);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, 0);
|
||||
|
||||
DestroyTask(FindTaskIdByFunc(task->func));
|
||||
task->tState++; // UB: changing value of a destroyed task
|
||||
|
@ -373,7 +373,7 @@ static bool8 FadeInCenterLogoCircle(struct Task *task)
|
||||
{
|
||||
if (task->data[3] == 31)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, -1, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, -1, 0, 0x10, RGB_BLACK);
|
||||
task->tState++;
|
||||
}
|
||||
else
|
||||
|
@ -1097,7 +1097,7 @@ static void CB2_LoadBerryBlender(void)
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
UpdateBlenderCenter();
|
||||
sBerryBlender->mainState++;
|
||||
break;
|
||||
@ -1111,7 +1111,7 @@ static void CB2_LoadBerryBlender(void)
|
||||
sBerryBlender->mainState++;
|
||||
break;
|
||||
case 5:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
sBerryBlender->mainState++;
|
||||
break;
|
||||
case 6:
|
||||
@ -1326,7 +1326,7 @@ static void CB2_StartBlenderLink(void)
|
||||
sBerryBlender->mainState++;
|
||||
break;
|
||||
case 3:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
sBerryBlender->mainState++;
|
||||
break;
|
||||
case 4:
|
||||
@ -1664,7 +1664,7 @@ static void CB2_StartBlenderLocal(void)
|
||||
sBerryBlender->mainState++;
|
||||
break;
|
||||
case 3:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
sBerryBlender->mainState++;
|
||||
sBerryBlender->framesToWait = 0;
|
||||
break;
|
||||
@ -2895,7 +2895,7 @@ static void CB2_CheckPlayAgainLink(void)
|
||||
case 9:
|
||||
if (IsLinkTaskFinished())
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
sBerryBlender->gameEndState++;
|
||||
}
|
||||
break;
|
||||
|
@ -1089,7 +1089,7 @@ s32 InitBerryCrushDisplay(void)
|
||||
break;
|
||||
case 9:
|
||||
gPaletteFade.bufferTransferDisabled = FALSE;
|
||||
BlendPalettes(0xFFFFFFFF, 16, RGB_BLACK);
|
||||
BlendPalettes(PALETTES_ALL, 16, RGB_BLACK);
|
||||
ShowBg(0);
|
||||
ShowBg(1);
|
||||
ShowBg(2);
|
||||
@ -1121,7 +1121,7 @@ int sub_802130C(void)
|
||||
// fall through. The original author forgot to use "break" here
|
||||
// because this will call BeginNormalPaletteFade() twice.
|
||||
case 2:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
UpdatePaletteFade();
|
||||
break;
|
||||
case 3:
|
||||
@ -2635,13 +2635,13 @@ static u32 sub_8023A30(struct BerryCrushGame *r4, __attribute__((unused)) u8 *r1
|
||||
case 0:
|
||||
r4->unk12 = 8;
|
||||
PlaySE(SE_M_STRENGTH);
|
||||
BlendPalettes(0xFFFFFFFF, 8, RGB(31, 31, 0));
|
||||
BlendPalettes(PALETTES_ALL, 8, RGB(31, 31, 0));
|
||||
r4->unk138.unk0 = 2;
|
||||
break;
|
||||
case 1:
|
||||
if (--r4->unk138.unk0 != 255)
|
||||
return 0;
|
||||
BlendPalettes(0xFFFFFFFF, 0, RGB(31, 31, 0));
|
||||
BlendPalettes(PALETTES_ALL, 0, RGB(31, 31, 0));
|
||||
r4->unk138.unk1 = 4;
|
||||
r4->unk138.unk0 = 0;
|
||||
r4->unk138.unk2 = gUnknown_082F326C[r4->unk138.unk1][0];
|
||||
@ -2692,13 +2692,13 @@ static u32 sub_8023BC0(struct BerryCrushGame *r5, u8 *r6)
|
||||
case 0:
|
||||
r5->unk12 = 9;
|
||||
PlaySE(SE_FAILURE);
|
||||
BlendPalettes(0xFFFFFFFF, 8, RGB(31, 0, 0));
|
||||
BlendPalettes(PALETTES_ALL, 8, RGB(31, 0, 0));
|
||||
r5->unk138.unk0 = 4;
|
||||
break;
|
||||
case 1:
|
||||
if (--r5->unk138.unk0 != 255)
|
||||
return 0;
|
||||
BlendPalettes(0xFFFFFFFF, 0, RGB(31, 0, 0));
|
||||
BlendPalettes(PALETTES_ALL, 0, RGB(31, 0, 0));
|
||||
r5->unk138.unk0 = 0;
|
||||
break;
|
||||
case 2:
|
||||
@ -3057,7 +3057,7 @@ static u32 sub_80243BC(struct BerryCrushGame *r5, __attribute__((unused)) u8 *r1
|
||||
switch (r5->unkC)
|
||||
{
|
||||
case 0:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 1, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 1, 0, 0x10, RGB_BLACK);
|
||||
UpdatePaletteFade();
|
||||
break;
|
||||
case 1:
|
||||
@ -3067,7 +3067,7 @@ static u32 sub_80243BC(struct BerryCrushGame *r5, __attribute__((unused)) u8 *r1
|
||||
case 2:
|
||||
ClearDialogWindowAndFrame(0, 1);
|
||||
sub_8021488(r5);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
UpdatePaletteFade();
|
||||
break;
|
||||
case 3:
|
||||
|
@ -276,11 +276,11 @@ static bool8 InitBerryTagScreen(void)
|
||||
gMain.state++;
|
||||
break;
|
||||
case 14:
|
||||
BlendPalettes(-1, 0x10, 0);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, 0);
|
||||
gMain.state++;
|
||||
break;
|
||||
case 15:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
gPaletteFade.bufferTransferDisabled = 0;
|
||||
gMain.state++;
|
||||
break;
|
||||
@ -514,7 +514,7 @@ static void DestroyFlavorCircleSprites(void)
|
||||
static void PrepareToCloseBerryTagScreen(u8 taskId)
|
||||
{
|
||||
PlaySE(SE_SELECT);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].func = Task_CloseBerryTagScreen;
|
||||
}
|
||||
|
||||
|
@ -246,7 +246,7 @@ void CableCar(void)
|
||||
{
|
||||
ScriptContext2_Enable();
|
||||
CreateTask(Task_LoadCableCar, 1);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB(0, 0, 0));
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB(0, 0, 0));
|
||||
}
|
||||
|
||||
static void CB2_LoadCableCar(void)
|
||||
@ -350,7 +350,7 @@ static void CB2_LoadCableCar(void)
|
||||
gMain.state++;
|
||||
break;
|
||||
case 8:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 3, 16, 0, RGB(0, 0, 0));
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 3, 16, 0, RGB(0, 0, 0));
|
||||
FadeInNewBGM(MUS_CABLE_CAR, 1);
|
||||
SetBgRegs(TRUE);
|
||||
gMain.state++;
|
||||
@ -468,7 +468,7 @@ static void Task_CableCar(u8 taskId)
|
||||
if (sCableCar->timer == 570)
|
||||
{
|
||||
sCableCar->state = 3;
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 3, 0, 16, RGB(0, 0, 0));
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 3, 0, 16, RGB(0, 0, 0));
|
||||
FadeOutBGM(4);
|
||||
}
|
||||
break;
|
||||
|
@ -82,7 +82,7 @@ static void Task_ReestablishLinkAwaitConfirmation(u8 taskId);
|
||||
|
||||
static void CreateLinkupTask(u8 minPlayers, u8 maxPlayers)
|
||||
{
|
||||
if (FindTaskIdByFunc(Task_LinkupStart) == 0xFF)
|
||||
if (FindTaskIdByFunc(Task_LinkupStart) == TASK_NONE)
|
||||
{
|
||||
u8 taskId1;
|
||||
|
||||
@ -627,7 +627,7 @@ void ValidateMixingGameLanguage(void)
|
||||
{
|
||||
u32 taskId = FindTaskIdByFunc(Task_ValidateMixingGameLanguage);
|
||||
|
||||
if (taskId == 0xFF)
|
||||
if (taskId == TASK_NONE)
|
||||
{
|
||||
taskId = CreateTask(Task_ValidateMixingGameLanguage, 80);
|
||||
gTasks[taskId].tState = 0;
|
||||
|
@ -163,7 +163,7 @@ static bool8 SetupClearSaveDataScreen(void)
|
||||
ShowBg(3);
|
||||
SetGpuReg(REG_OFFSET_BLDCNT, 0);
|
||||
InitClearSaveDataScreenWindows();
|
||||
BeginNormalPaletteFade(0x0000FFFF, 0, 0x10, 0, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_BG, 0, 0x10, 0, RGB_WHITEALPHA);
|
||||
EnableInterrupts(INTR_FLAG_VBLANK);
|
||||
SetVBlankCallback(VBlankCB);
|
||||
gMain.state = 1;
|
||||
@ -185,7 +185,7 @@ static void CB2_FadeAndDoReset(void)
|
||||
{
|
||||
case 0:
|
||||
default:
|
||||
BeginNormalPaletteFade(0x0000FFFF, 0, 0, 0x10, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_BG, 0, 0, 0x10, RGB_WHITEALPHA);
|
||||
gMain.state = 1;
|
||||
break;
|
||||
case 1:
|
||||
|
@ -2711,7 +2711,7 @@ static void Task_TryCommunicateFinalStandings(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
gTasks[taskId].func = Task_ContestReturnToField;
|
||||
}
|
||||
}
|
||||
@ -2730,7 +2730,7 @@ static void Task_CommunicateFinalStandings(u8 taskId)
|
||||
static void Task_EndCommunicateFinalStandings(u8 taskId)
|
||||
{
|
||||
DestroyTask(taskId);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
gTasks[eContest.mainTaskId].func = Task_ContestReturnToField;
|
||||
}
|
||||
|
||||
|
@ -250,7 +250,7 @@ static void HoldContestPainting(void)
|
||||
if ((JOY_NEW(A_BUTTON)) || (JOY_NEW(B_BUTTON)))
|
||||
{
|
||||
gContestPaintingState++;
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB(0, 0, 0));
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB(0, 0, 0));
|
||||
}
|
||||
|
||||
if (gUnknown_030011F6)
|
||||
|
@ -517,7 +517,7 @@ static void CB2_StartShowContestResults(void)
|
||||
memset(sContestResults->monResults, 0, sizeof(*sContestResults->monResults));
|
||||
LoadContestResultSprites();
|
||||
TryCreateWirelessSprites();
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
|
||||
gPaletteFade.bufferTransferDisabled = FALSE;
|
||||
sContestResults->data->showResultsTaskId = CreateTask(Task_ShowContestResults, 5);
|
||||
SetMainCallback2(CB2_ShowContestResults);
|
||||
@ -1018,12 +1018,12 @@ static void Task_EndShowContestResults(u8 taskId)
|
||||
if (gTasks[taskId].tTimer == 0)
|
||||
{
|
||||
DestroyTask(sContestResults->data->highlightWinnerTaskId);
|
||||
BlendPalettes(0x0000FFFF, 16, RGB_BLACK);
|
||||
BlendPalettes(PALETTES_BG, 16, RGB_BLACK);
|
||||
gTasks[taskId].tTimer++;
|
||||
}
|
||||
else if (gTasks[taskId].tTimer == 1)
|
||||
{
|
||||
BlendPalettes(0xFFFF0000, 16, RGB_BLACK);
|
||||
BlendPalettes(PALETTES_OBJECTS, 16, RGB_BLACK);
|
||||
gTasks[taskId].tTimer++;
|
||||
}
|
||||
else
|
||||
@ -2102,7 +2102,7 @@ void StartContest(void)
|
||||
{
|
||||
ScriptContext2_Enable();
|
||||
CreateTask(Task_StartContest, 10);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
}
|
||||
|
||||
void BufferContestantMonSpecies(void)
|
||||
@ -2123,7 +2123,7 @@ void ShowContestResults(void)
|
||||
{
|
||||
ScriptContext2_Enable();
|
||||
CreateTask(Task_StartShowContestResults, 10);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
}
|
||||
|
||||
void GetContestPlayerId(void)
|
||||
@ -2535,7 +2535,7 @@ void ShowContestEntryMonPic(void)
|
||||
u8 taskId;
|
||||
u8 left, top;
|
||||
|
||||
if (FindTaskIdByFunc(Task_ShowContestEntryMonPic) == 0xFF)
|
||||
if (FindTaskIdByFunc(Task_ShowContestEntryMonPic) == TASK_NONE)
|
||||
{
|
||||
AllocateMonSpritesGfx();
|
||||
left = 10;
|
||||
@ -2578,7 +2578,7 @@ void ShowContestEntryMonPic(void)
|
||||
void HideContestEntryMonPic(void)
|
||||
{
|
||||
u8 taskId = FindTaskIdByFunc(Task_ShowContestEntryMonPic);
|
||||
if (taskId != 0xFF)
|
||||
if (taskId != TASK_NONE)
|
||||
{
|
||||
gTasks[taskId].data[0]++;
|
||||
FreeMonSpritesGfx();
|
||||
|
@ -1235,7 +1235,7 @@ void CB2_StartCreditsSequence(void)
|
||||
gTasks[taskIdB].data[TDB_TASK_A_ID] = taskIdA;
|
||||
gTasks[taskIdA].data[TDA_TASK_B_ID] = taskIdB;
|
||||
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
|
||||
EnableInterrupts(INTR_FLAG_VBLANK);
|
||||
SetVBlankCallback(CreditsVBlankCallback);
|
||||
m4aSongNumStart(MUS_CREDITS);
|
||||
@ -1281,14 +1281,14 @@ static void Task_ProgressCreditTasks(u8 taskIdA)
|
||||
{
|
||||
gTasks[taskIdA].data[TDA_13] = data1;
|
||||
gTasks[taskIdA].data[TDA_11] = 0;
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
gTasks[taskIdA].func = sub_8175808;
|
||||
}
|
||||
else if (gTasks[taskIdA].data[TDA_11] == 2)
|
||||
{
|
||||
gTasks[taskIdA].data[TDA_13] = data1;
|
||||
gTasks[taskIdA].data[TDA_11] = 0;
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
gTasks[taskIdA].func = sub_81758A4;
|
||||
}
|
||||
}
|
||||
@ -1309,7 +1309,7 @@ static void c2_080C9BFC(u8 taskIdA)
|
||||
|
||||
if (sub_8176AB0(gTasks[taskIdA].data[TDA_7], taskIdA))
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
|
||||
EnableInterrupts(INTR_FLAG_VBLANK);
|
||||
SetVBlankCallback(CreditsVBlankCallback);
|
||||
gTasks[taskIdA].func = Task_WaitPaletteFade;
|
||||
@ -1369,7 +1369,7 @@ static void Task_CreditsLoadGrassScene(u8 taskIdA)
|
||||
gTasks[gTasks[taskIdA].data[TDA_TASK_D_ID]].data[TDD_TASK_A_ID] = taskIdA;
|
||||
gTasks[gTasks[taskIdA].data[TDA_TASK_D_ID]].data[TDD_2] = gTasks[taskIdA].data[TDA_7];
|
||||
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
|
||||
SetGpuReg(REG_OFFSET_BG3HOFS, 0);
|
||||
SetGpuReg(REG_OFFSET_BG3VOFS, 32);
|
||||
SetGpuReg(REG_OFFSET_BG3CNT, BGCNT_PRIORITY(3)
|
||||
@ -1398,7 +1398,7 @@ static void Task_CreditsTheEnd1(u8 taskIdA)
|
||||
return;
|
||||
}
|
||||
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 12, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 12, 0, 16, RGB_BLACK);
|
||||
gTasks[taskIdA].func = Task_CreditsTheEnd2;
|
||||
}
|
||||
|
||||
@ -1418,7 +1418,7 @@ static void Task_CreditsTheEnd3(u8 taskIdA)
|
||||
LoadTheEndScreen(0, 0x3800, 0);
|
||||
ResetSpriteData();
|
||||
FreeAllSpritePalettes();
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 8, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 8, 16, 0, RGB_BLACK);
|
||||
|
||||
SetGpuReg(REG_OFFSET_BG0CNT, BGCNT_PRIORITY(0)
|
||||
| BGCNT_CHARBASE(0)
|
||||
@ -1442,7 +1442,7 @@ static void Task_CreditsTheEnd4(u8 taskIdA)
|
||||
return;
|
||||
}
|
||||
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 6, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 6, 0, 16, RGB_BLACK);
|
||||
gTasks[taskIdA].func = Task_CreditsTheEnd5;
|
||||
}
|
||||
|
||||
@ -1452,7 +1452,7 @@ static void Task_CreditsTheEnd5(u8 taskIdA)
|
||||
{
|
||||
sub_8176E40(0x3800, 0);
|
||||
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0, RGB_BLACK);
|
||||
gTasks[taskIdA].data[TDA_0] = 7200;
|
||||
gTasks[taskIdA].func = Task_CreditsTheEnd6;
|
||||
}
|
||||
@ -1465,7 +1465,7 @@ static void Task_CreditsTheEnd6(u8 taskIdA)
|
||||
if (gTasks[taskIdA].data[TDA_0] == 0 || gMain.newKeys)
|
||||
{
|
||||
FadeOutBGM(4);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 8, 0, 16, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 8, 0, 16, RGB_WHITEALPHA);
|
||||
gTasks[taskIdA].func = Task_CreditsSoftReset;
|
||||
return;
|
||||
}
|
||||
|
@ -25,28 +25,28 @@
|
||||
#include "trendysaying.h"
|
||||
|
||||
const struct BardSound (*const gBardSoundsTable[EC_NUM_GROUPS])[6] = {
|
||||
[EC_GROUP_POKEMON] = NULL, // Handled by gBardSounds_Pokemon
|
||||
[EC_GROUP_TRAINER] = gBardSounds_Trainer,
|
||||
[EC_GROUP_STATUS] = gBardSounds_Status,
|
||||
[EC_GROUP_BATTLE] = gBardSounds_Battle,
|
||||
[EC_GROUP_GREETINGS] = gBardSounds_Greetings,
|
||||
[EC_GROUP_PEOPLE] = gBardSounds_People,
|
||||
[EC_GROUP_VOICES] = gBardSounds_Voices,
|
||||
[EC_GROUP_SPEECH] = gBardSounds_Speech,
|
||||
[EC_GROUP_ENDINGS] = gBardSounds_Endings,
|
||||
[EC_GROUP_FEELINGS] = gBardSounds_Feelings,
|
||||
[EC_GROUP_CONDITIONS] = gBardSounds_Conditions,
|
||||
[EC_GROUP_ACTIONS] = gBardSounds_Actions,
|
||||
[EC_GROUP_LIFESTYLE] = gBardSounds_Lifestyle,
|
||||
[EC_GROUP_HOBBIES] = gBardSounds_Hobbies,
|
||||
[EC_GROUP_TIME] = gBardSounds_Time,
|
||||
[EC_GROUP_MISC] = gBardSounds_Misc,
|
||||
[EC_GROUP_ADJECTIVES] = gBardSounds_Adjectives,
|
||||
[EC_GROUP_EVENTS] = gBardSounds_Events,
|
||||
[EC_GROUP_MOVE_1] = NULL, // Handled by gBardSounds_Moves
|
||||
[EC_GROUP_MOVE_2] = NULL, // Handled by gBardSounds_Moves
|
||||
[EC_GROUP_TRENDY_SAYING] = gBardSounds_TrendySaying,
|
||||
[EC_GROUP_POKEMON_2] = NULL // Handled by gBardSounds_Pokemon
|
||||
[EC_GROUP_POKEMON] = NULL, // Handled by gBardSounds_Pokemon
|
||||
[EC_GROUP_TRAINER] = gBardSounds_Trainer,
|
||||
[EC_GROUP_STATUS] = gBardSounds_Status,
|
||||
[EC_GROUP_BATTLE] = gBardSounds_Battle,
|
||||
[EC_GROUP_GREETINGS] = gBardSounds_Greetings,
|
||||
[EC_GROUP_PEOPLE] = gBardSounds_People,
|
||||
[EC_GROUP_VOICES] = gBardSounds_Voices,
|
||||
[EC_GROUP_SPEECH] = gBardSounds_Speech,
|
||||
[EC_GROUP_ENDINGS] = gBardSounds_Endings,
|
||||
[EC_GROUP_FEELINGS] = gBardSounds_Feelings,
|
||||
[EC_GROUP_CONDITIONS] = gBardSounds_Conditions,
|
||||
[EC_GROUP_ACTIONS] = gBardSounds_Actions,
|
||||
[EC_GROUP_LIFESTYLE] = gBardSounds_Lifestyle,
|
||||
[EC_GROUP_HOBBIES] = gBardSounds_Hobbies,
|
||||
[EC_GROUP_TIME] = gBardSounds_Time,
|
||||
[EC_GROUP_MISC] = gBardSounds_Misc,
|
||||
[EC_GROUP_ADJECTIVES] = gBardSounds_Adjectives,
|
||||
[EC_GROUP_EVENTS] = gBardSounds_Events,
|
||||
[EC_GROUP_MOVE_1] = NULL, // Handled by gBardSounds_Moves
|
||||
[EC_GROUP_MOVE_2] = NULL, // Handled by gBardSounds_Moves
|
||||
[EC_GROUP_TRENDY_SAYING] = gBardSounds_TrendySaying,
|
||||
[EC_GROUP_POKEMON_NATIONAL] = NULL // Handled by gBardSounds_Pokemon
|
||||
};
|
||||
|
||||
#endif //GUARD_BARD_SOUNDS_TABLE_H
|
||||
|
@ -326,7 +326,7 @@ const struct ApprenticeTrainer gApprentices[NUM_APPRENTICES] =
|
||||
.facilityClass = FACILITY_CLASS_LASS,
|
||||
.species = {SPECIES_SWALOT, SPECIES_XATU, SPECIES_ALTARIA, SPECIES_GOLDUCK, SPECIES_FLYGON, SPECIES_ALAKAZAM, SPECIES_GARDEVOIR, SPECIES_WAILORD, SPECIES_GRUMPIG, SPECIES_MIGHTYENA},
|
||||
.id = 3,
|
||||
.speechLost = {EC_WORD_IS, EC_WORD_THIS, EC_WORD_TOO, EC_WORD_MUCH, EC_WORD_QUES, 0xFFFF},
|
||||
.speechLost = {EC_WORD_IS, EC_WORD_THIS, EC_WORD_TOO, EC_WORD_MUCH, EC_WORD_QUES, EC_EMPTY_WORD},
|
||||
},
|
||||
{
|
||||
.name = {_("ヨウカ"), _("MACY"), _("AMELIE"), _("CLEO"), _("MARIA"), _("ELISA")},
|
||||
@ -358,7 +358,7 @@ const struct ApprenticeTrainer gApprentices[NUM_APPRENTICES] =
|
||||
.facilityClass = FACILITY_CLASS_BEAUTY,
|
||||
.species = {SPECIES_NINETALES, SPECIES_ALAKAZAM, SPECIES_SCEPTILE, SPECIES_SALAMENCE, SPECIES_GOLDUCK, SPECIES_MAWILE, SPECIES_WEEZING, SPECIES_LANTURN, SPECIES_GARDEVOIR, SPECIES_MILOTIC},
|
||||
.id = 7,
|
||||
.speechLost = {EC_WORD_YOU_RE, EC_WORD_STRONG, EC_WORD_AREN_T, EC_WORD_YOU, EC_WORD_QUES, 0xFFFF},
|
||||
.speechLost = {EC_WORD_YOU_RE, EC_WORD_STRONG, EC_WORD_AREN_T, EC_WORD_YOU, EC_WORD_QUES, EC_EMPTY_WORD},
|
||||
},
|
||||
{
|
||||
.name = {_("スミレ"), _("ANNIE"), _("ANNIE"), _("IMELDA"), _("INES"), _("ROSA")},
|
||||
@ -374,7 +374,7 @@ const struct ApprenticeTrainer gApprentices[NUM_APPRENTICES] =
|
||||
.facilityClass = FACILITY_CLASS_HIKER,
|
||||
.species = {SPECIES_SKARMORY, SPECIES_GOLEM, SPECIES_BLAZIKEN, SPECIES_CAMERUPT, SPECIES_DONPHAN, SPECIES_MUK, SPECIES_SALAMENCE, SPECIES_TROPIUS, SPECIES_SOLROCK, SPECIES_RHYDON},
|
||||
.id = 9,
|
||||
.speechLost = {EC_WORD_WE, EC_WORD_WERE, EC_WORD_JUST, EC_WORD_SHREDDED, EC_WORD_ELLIPSIS, 0xFFFF},
|
||||
.speechLost = {EC_WORD_WE, EC_WORD_WERE, EC_WORD_JUST, EC_WORD_SHREDDED, EC_WORD_ELLIPSIS, EC_EMPTY_WORD},
|
||||
},
|
||||
{
|
||||
.name = {_("トウゾウ"), _("DALLAS"), _("BRUNO"), _("LEARCO"), _("ANSGAR"), _("MANOLO")},
|
||||
@ -382,7 +382,7 @@ const struct ApprenticeTrainer gApprentices[NUM_APPRENTICES] =
|
||||
.facilityClass = FACILITY_CLASS_FISHERMAN,
|
||||
.species = {SPECIES_SEAKING, SPECIES_STARMIE, SPECIES_GOLDUCK, SPECIES_TENTACRUEL, SPECIES_OCTILLERY, SPECIES_GOREBYSS, SPECIES_GLALIE, SPECIES_WAILORD, SPECIES_SHARPEDO, SPECIES_KINGDRA},
|
||||
.id = 10,
|
||||
.speechLost = {EC_WORD_YOUR, EC_WORD_WIN, EC_WORD_ANGERS, EC_WORD_ME, EC_WORD_EXCL, 0xFFFF},
|
||||
.speechLost = {EC_WORD_YOUR, EC_WORD_WIN, EC_WORD_ANGERS, EC_WORD_ME, EC_WORD_EXCL, EC_EMPTY_WORD},
|
||||
},
|
||||
{
|
||||
.name = {_("セイヤ"), _("FRANK"), _("FRANK"), _("OLINDO"), _("FRANK"), _("MAURO")},
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -616,9 +616,9 @@ const struct BattleFrontierTrainer gSlateportBattleTentTrainers[NUM_BATTLE_TENT_
|
||||
[SLATEPORT_TENT_TRAINER_MAGGIE] = {
|
||||
.facilityClass = FACILITY_CLASS_SCHOOL_KID_F,
|
||||
.trainerName = _("MAGGIE"),
|
||||
.speechBefore = {EC_POKEMON(VULPIX), EC_POKEMON(XATU), EC_POKEMON2(UMBREON), EC_WORD_ELLIPSIS, EC_WORD_UM, EC_WORD_ELLIPSIS},
|
||||
.speechBefore = {EC_POKEMON(VULPIX), EC_POKEMON(XATU), EC_POKEMON_NATIONAL(UMBREON), EC_WORD_ELLIPSIS, EC_WORD_UM, EC_WORD_ELLIPSIS},
|
||||
.speechWin = {EC_POKEMON(NOSEPASS), EC_WORD_ELLIPSIS, EC_WORD_UM, EC_POKEMON(SEVIPER), EC_WORD_EXCL, -1},
|
||||
.speechLose = {EC_POKEMON(NOSEPASS), EC_WORD_ELLIPSIS, EC_WORD_UM, EC_POKEMON2(SNORLAX), EC_WORD_ELLIPSIS, EC_WORD_UH_OH},
|
||||
.speechLose = {EC_POKEMON(NOSEPASS), EC_WORD_ELLIPSIS, EC_WORD_UM, EC_POKEMON_NATIONAL(SNORLAX), EC_WORD_ELLIPSIS, EC_WORD_UH_OH},
|
||||
.monSet = gSlateportBattleTentTrainerMons_Maggie
|
||||
},
|
||||
[SLATEPORT_TENT_TRAINER_STEPHON] = {
|
||||
|
@ -314,7 +314,7 @@ static const struct TrHillFloor sDataTagJPDefault_Floors[] = {
|
||||
.speechBefore = { EC_WORD_SISTER, EC_WORD_ALTHOUGH, EC_WORD_KIND, EC_WORD_MATCH, EC_WORD_PLEASE, EC_WORD_WITHOUT },
|
||||
.speechWin = { EC_WORD_KIND, EC_WORD_ELLIPSIS, EC_WORD_INSTEAD, EC_WORD_DEEP, EC_WORD_WEAK, EC_WORD_QUES },
|
||||
.speechLose = { EC_WORD_AWFUL, EC_WORD_GWAH, EC_WORD_HOPELESS, EC_WORD_CAN_T_WIN, EC_WORD_IS, EC_WORD_NONE },
|
||||
.speechAfter = { EC_WORD_AWW, 0xFFFF, 0xFFFF, EC_WORD_ALMOST, EC_WORD_GOOD, EC_WORD_ANYWHERE },
|
||||
.speechAfter = { EC_WORD_AWW, EC_EMPTY_WORD, EC_EMPTY_WORD, EC_WORD_ALMOST, EC_WORD_GOOD, EC_WORD_ANYWHERE },
|
||||
.mons = {
|
||||
[0] = NULL_BATTLE_TOWER_POKEMON,
|
||||
[1] = NULL_BATTLE_TOWER_POKEMON,
|
||||
@ -444,7 +444,7 @@ static const struct TrHillFloor sDataTagNormal_Floors[] =
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_YOU, EC_WORD_CAN, EC_WORD_CHOOSE, EC_WORD_NOT, EC_WORD_TO, EC_WORD_BELIEVE},
|
||||
.speechWin = {EC_WORD_A, EC_WORD_SUPER, EC_WORD_NATURAL, EC_WORD_POWER, EC_WORD_HAS, EC_WORD_COME},
|
||||
.speechLose = {EC_WORD_THIS, EC_WORD_MUST_BE, EC_WORD_A, EC_MOVE(NIGHTMARE), EC_WORD_EXCL, 0xFFFF},
|
||||
.speechLose = {EC_WORD_THIS, EC_WORD_MUST_BE, EC_WORD_A, EC_MOVE(NIGHTMARE), EC_WORD_EXCL, EC_EMPTY_WORD},
|
||||
.speechAfter = {EC_WORD_I, EC_WORD_WILL, EC_WORD_DISAPPEAR, EC_WORD_IN, EC_WORD_THE, EC_WORD_DARK},
|
||||
.mons =
|
||||
{
|
||||
@ -589,7 +589,7 @@ static const struct TrHillFloor sDataTagNormal_Floors[] =
|
||||
.name = _("ALFONSO"),
|
||||
.facilityClass = FACILITY_CLASS_CYCLING_TRIATHLETE_M,
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_I, EC_WORD_NEVER, EC_WORD_TAKE, EC_WORD_A, EC_WORD_TRAIN, 0xFFFF},
|
||||
.speechBefore = {EC_WORD_I, EC_WORD_NEVER, EC_WORD_TAKE, EC_WORD_A, EC_WORD_TRAIN, EC_EMPTY_WORD},
|
||||
.speechWin = {EC_WORD_I_AM, EC_WORD_FEELING, EC_MOVE2(SUPERSONIC), EC_WORD_ON, EC_WORD_MY, EC_WORD_BIKE},
|
||||
.speechLose = {EC_WORD_MY, EC_WORD_BIKE, EC_WORD_EXCL, EC_WORD_YOU_VE, EC_WORD_DESTROYED, EC_WORD_IT},
|
||||
.speechAfter = {EC_WORD_A, EC_WORD_BIKE, EC_WORD_OVER, EC_WORD_ANY, EC_WORD_TRAIN, EC_WORD_EXCL},
|
||||
@ -907,8 +907,8 @@ static const struct TrHillFloor sDataTagNormal_Floors[] =
|
||||
.facilityClass = FACILITY_CLASS_PKMN_BREEDER_F,
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_SOME, EC_WORD_THINGS, EC_WORD_YOU, EC_WORD_CAN_T, EC_WORD_DO, EC_WORD_ALONE},
|
||||
.speechWin = {EC_WORD_YOU, EC_WORD_WIN, EC_WORD_AS, EC_WORD_A, EC_WORD_GROUP, 0xFFFF},
|
||||
.speechLose = {EC_WORD_WE, EC_WORD_COULDN_T, EC_WORD_WIN, EC_WORD_TOGETHER, EC_WORD_QUES, 0xFFFF},
|
||||
.speechWin = {EC_WORD_YOU, EC_WORD_WIN, EC_WORD_AS, EC_WORD_A, EC_WORD_GROUP, EC_EMPTY_WORD},
|
||||
.speechLose = {EC_WORD_WE, EC_WORD_COULDN_T, EC_WORD_WIN, EC_WORD_TOGETHER, EC_WORD_QUES, EC_EMPTY_WORD},
|
||||
.speechAfter = {EC_WORD_MAYBE, EC_WORD_I, EC_WORD_NEED, EC_WORD_A, EC_WORD_BOY, EC_WORD_FRIEND},
|
||||
.mons =
|
||||
{
|
||||
@ -1086,7 +1086,7 @@ static const struct TrHillFloor sDataTagNormal_Floors[] =
|
||||
.speechBefore = {EC_WORD_LET_S, EC_MOVE2(WRAP), EC_WORD_THINGS, EC_WORD_UP, EC_WORD_HERE, EC_WORD_HEY_QUES},
|
||||
.speechWin = {EC_WORD_WOULD, EC_WORD_YOU, EC_WORD_LIKE, EC_WORD_TO, EC_WORD_GO_HOME, EC_WORD_QUES},
|
||||
.speechLose = {EC_WORD_I, EC_WORD_WILL, EC_WORD_MAKE, EC_WORD_YOU, EC_WORD_SORRY, EC_WORD_FRIEND},
|
||||
.speechAfter = {EC_WORD_HAVEN_T, EC_WORD_YOU, EC_WORD_DONE, EC_WORD_ENOUGH, EC_WORD_QUES, 0xFFFF},
|
||||
.speechAfter = {EC_WORD_HAVEN_T, EC_WORD_YOU, EC_WORD_DONE, EC_WORD_ENOUGH, EC_WORD_QUES, EC_EMPTY_WORD},
|
||||
.mons =
|
||||
{
|
||||
[0] =
|
||||
@ -1229,7 +1229,7 @@ static const struct TrHillFloor sDataTagNormal_Floors[] =
|
||||
.facilityClass = FACILITY_CLASS_PKMN_BREEDER_F,
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_I_AM, EC_WORD_THE, EC_WORD_STRONG, EC_WORD_BEAUTY, EC_WORD_AROUND, EC_WORD_HERE},
|
||||
.speechWin = {EC_WORD_I_AM, EC_WORD_STRONG, EC_WORD_THAT_S, EC_WORD_WHY, EC_WORD_EXCL, 0xFFFF},
|
||||
.speechWin = {EC_WORD_I_AM, EC_WORD_STRONG, EC_WORD_THAT_S, EC_WORD_WHY, EC_WORD_EXCL, EC_EMPTY_WORD},
|
||||
.speechLose = {EC_WORD_I_AM, EC_WORD_TIRED, EC_WORD_TODAY, EC_WORD_THAT_S, EC_WORD_WHY, EC_WORD_EXCL},
|
||||
.speechAfter = {EC_WORD_WHY, EC_WORD_YES, EC_WORD_I_AM, EC_WORD_ANGRY, EC_WORD_THANK_YOU, EC_WORD_EXCL},
|
||||
.mons =
|
||||
@ -1404,8 +1404,8 @@ static const struct TrHillFloor sDataTagNormal_Floors[] =
|
||||
.name = _("KEENAN"),
|
||||
.facilityClass = FACILITY_CLASS_PSYCHIC_M,
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_YOU, EC_WORD_LOOK, EC_WORD_SO, EC_WORD_HURRIED, 0xFFFF, 0xFFFF},
|
||||
.speechWin = {EC_WORD_TOO, EC_WORD_BAD, 0xFFFF, EC_WORD_TIME, EC_WORD_IS, EC_WORD_UP},
|
||||
.speechBefore = {EC_WORD_YOU, EC_WORD_LOOK, EC_WORD_SO, EC_WORD_HURRIED, EC_EMPTY_WORD, EC_EMPTY_WORD},
|
||||
.speechWin = {EC_WORD_TOO, EC_WORD_BAD, EC_EMPTY_WORD, EC_WORD_TIME, EC_WORD_IS, EC_WORD_UP},
|
||||
.speechLose = {EC_WORD_DOES, EC_WORD_THE, EC_WORD_TIME, EC_WORD_WORRY, EC_WORD_YOU, EC_WORD_QUES},
|
||||
.speechAfter = {EC_WORD_YOU, EC_WORD_DON_T, EC_WORD_HAVE, EC_WORD_TIME, EC_WORD_TO, EC_WORD_CHAT},
|
||||
.mons =
|
||||
@ -1547,7 +1547,7 @@ static const struct TrHillFloor sDataTagNormal_Floors[] =
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_IT_S, EC_WORD_HOT, EC_WORD_ELLIPSIS, EC_WORD_WHAT, EC_WORD_A, EC_WORD_STENCH},
|
||||
.speechWin = {EC_WORD_I, EC_WORD_REALLY, EC_WORD_LIKE, EC_WORD_AN, EC_WORD_OFFENSIVE, EC_WORD_STENCH},
|
||||
.speechLose = {EC_WORD_I, EC_MOVE2(COVET), EC_WORD_ANY, EC_WORD_STRONG, EC_WORD_STENCH, 0xFFFF},
|
||||
.speechLose = {EC_WORD_I, EC_MOVE2(COVET), EC_WORD_ANY, EC_WORD_STRONG, EC_WORD_STENCH, EC_EMPTY_WORD},
|
||||
.speechAfter = {EC_WORD_MY, EC_WORD_SENSE, EC_WORD_OF, EC_WORD_SMELL, EC_WORD_ISN_T, EC_WORD_NORMAL},
|
||||
.mons =
|
||||
{
|
||||
@ -1731,8 +1731,8 @@ static const struct TrHillFloor sDataTagVariety_Floors[] = {
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_GOOD, EC_WORD_CHILDREN, EC_WORD_WILL, EC_WORD_GET, EC_WORD_A, EC_MOVE2(PRESENT)},
|
||||
.speechWin = {EC_WORD_THANK_YOU, EC_WORD_MY, EC_WORD_VICTORY, EC_WORD_IS, EC_WORD_YOUR, EC_MOVE2(PRESENT)},
|
||||
.speechLose = {EC_WORD_THAT_WAS, EC_WORD_MY, EC_MOVE2(PRESENT), EC_WORD_TO, EC_WORD_YOU, 0xFFFF},
|
||||
.speechAfter = {EC_WORD_WELL_THEN, EC_WORD_CONGRATS, EC_WORD_MY, EC_WORD_FRIEND, 0xFFFF, 0xFFFF},
|
||||
.speechLose = {EC_WORD_THAT_WAS, EC_WORD_MY, EC_MOVE2(PRESENT), EC_WORD_TO, EC_WORD_YOU, EC_EMPTY_WORD},
|
||||
.speechAfter = {EC_WORD_WELL_THEN, EC_WORD_CONGRATS, EC_WORD_MY, EC_WORD_FRIEND, EC_EMPTY_WORD, EC_EMPTY_WORD},
|
||||
.mons =
|
||||
{
|
||||
[0] =
|
||||
@ -1870,7 +1870,7 @@ static const struct TrHillFloor sDataTagVariety_Floors[] = {
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_CAN, EC_WORD_YOU, EC_WORD_SENSE, EC_WORD_ME, EC_MOVE(FOCUS_ENERGY), EC_WORD_QUES},
|
||||
.speechWin = {EC_WORD_THAT_S, EC_WORD_ABOUT, EC_WORD_RIGHT, EC_WORD_I, EC_WORD_WOULD, EC_WORD_THINK},
|
||||
.speechLose = {EC_WORD_THINGS, EC_WORD_DON_T, EC_WORD_ALWAYS, EC_WORD_WORK, EC_WORD_OUT, 0xFFFF},
|
||||
.speechLose = {EC_WORD_THINGS, EC_WORD_DON_T, EC_WORD_ALWAYS, EC_WORD_WORK, EC_WORD_OUT, EC_EMPTY_WORD},
|
||||
.speechAfter = {EC_WORD_I_AM, EC_WORD_FEELING, EC_WORD_LONESOME, EC_WORD_AND, EC_WORD_SAD, EC_WORD_NOW},
|
||||
.mons =
|
||||
{
|
||||
@ -2040,7 +2040,7 @@ static const struct TrHillFloor sDataTagVariety_Floors[] = {
|
||||
.facilityClass = FACILITY_CLASS_PARASOL_LADY,
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_HI, EC_WORD_ARE, EC_WORD_YOU, EC_WORD_FEELING, EC_WORD_UPBEAT, EC_WORD_QUES},
|
||||
.speechWin = {EC_WORD_AREN_T, EC_WORD_YOU, EC_WORD_FEELING, EC_WORD_WELL, EC_WORD_QUES, 0xFFFF},
|
||||
.speechWin = {EC_WORD_AREN_T, EC_WORD_YOU, EC_WORD_FEELING, EC_WORD_WELL, EC_WORD_QUES, EC_EMPTY_WORD},
|
||||
.speechLose = {EC_WORD_I, EC_WORD_CAN, EC_WORD_SEE, EC_WORD_YOU_RE, EC_WORD_FEELING, EC_WORD_GREAT},
|
||||
.speechAfter = {EC_WORD_YOUR, EC_WORD_POKEMON, EC_WORD_LOOK, EC_WORD_READY, EC_WORD_TO, EC_WORD_HUSTLE},
|
||||
.mons =
|
||||
@ -2380,8 +2380,8 @@ static const struct TrHillFloor sDataTagVariety_Floors[] = {
|
||||
.facilityClass = FACILITY_CLASS_RICH_BOY,
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_GET, EC_WORD_READY, EC_WORD_FOR, EC_WORD_AN, EC_WORD_AWESOME, EC_WORD_TIME},
|
||||
.speechWin = {EC_WORD_HEY, EC_WORD_HEY, EC_WORD_EXCL, EC_WORD_WHAT_S_UP_QUES, 0xFFFF, 0xFFFF},
|
||||
.speechLose = {EC_WORD_AWW, EC_WORD_COULDN_T, EC_WORD_YOU, EC_WORD_LET_ME_WIN, EC_WORD_QUES, 0xFFFF},
|
||||
.speechWin = {EC_WORD_HEY, EC_WORD_HEY, EC_WORD_EXCL, EC_WORD_WHAT_S_UP_QUES, EC_EMPTY_WORD, EC_EMPTY_WORD},
|
||||
.speechLose = {EC_WORD_AWW, EC_WORD_COULDN_T, EC_WORD_YOU, EC_WORD_LET_ME_WIN, EC_WORD_QUES, EC_EMPTY_WORD},
|
||||
.speechAfter = {EC_WORD_DID, EC_WORD_YOU, EC_WORD_SEE, EC_WORD_MY, EC_WORD_SKILL, EC_WORD_QUES},
|
||||
.mons =
|
||||
{
|
||||
@ -2840,10 +2840,10 @@ static const struct TrHillFloor sDataTagVariety_Floors[] = {
|
||||
.name = _("FRANCISCO"),
|
||||
.facilityClass = FACILITY_CLASS_POKEFAN_M,
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_I, EC_WORD_STUDY, EC_WORD_EVERY, EC_WORD_DAY, EC_WORD_TOO, 0xFFFF},
|
||||
.speechWin = {EC_WORD_SO, EC_WORD_THAT_S, EC_WORD_HOW, EC_WORD_YOU, EC_WORD_LOSE, 0xFFFF},
|
||||
.speechBefore = {EC_WORD_I, EC_WORD_STUDY, EC_WORD_EVERY, EC_WORD_DAY, EC_WORD_TOO, EC_EMPTY_WORD},
|
||||
.speechWin = {EC_WORD_SO, EC_WORD_THAT_S, EC_WORD_HOW, EC_WORD_YOU, EC_WORD_LOSE, EC_EMPTY_WORD},
|
||||
.speechLose = {EC_WORD_NO, EC_WORD_WONDER, EC_WORD_I, EC_WORD_COULDN_T, EC_WORD_BEAT, EC_WORD_YOU},
|
||||
.speechAfter = {EC_WORD_YES, EC_WORD_ELLIPSIS, 0xFFFF, EC_WORD_THANK_YOU, 0xFFFF, 0xFFFF},
|
||||
.speechAfter = {EC_WORD_YES, EC_WORD_ELLIPSIS, EC_EMPTY_WORD, EC_WORD_THANK_YOU, EC_EMPTY_WORD, EC_EMPTY_WORD},
|
||||
.mons =
|
||||
{
|
||||
[0] =
|
||||
@ -3023,10 +3023,10 @@ static const struct TrHillFloor sDataTagUnique_Floors[] = {
|
||||
.name = _("MEREDITH"),
|
||||
.facilityClass = FACILITY_CLASS_PKMN_RANGER_F,
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_UM, EC_WORD_ELLIPSIS, 0xFFFF, EC_WORD_I, EC_WORD_ELLIPSIS, 0xFFFF},
|
||||
.speechWin = {EC_WORD_OH, EC_WORD_EXCL, 0xFFFF, EC_WORD_UM, EC_WORD_ELLIPSIS, EC_WORD_YAY},
|
||||
.speechLose = {EC_WORD_UM, EC_WORD_ELLIPSIS, 0xFFFF, EC_WORD_WAAAH, EC_WORD_ELLIPSIS, 0xFFFF},
|
||||
.speechAfter = {EC_WORD_UM, EC_WORD_ELLIPSIS, 0xFFFF, EC_WORD_I_AM, EC_WORD_SAD, EC_WORD_ELLIPSIS},
|
||||
.speechBefore = {EC_WORD_UM, EC_WORD_ELLIPSIS, EC_EMPTY_WORD, EC_WORD_I, EC_WORD_ELLIPSIS, EC_EMPTY_WORD},
|
||||
.speechWin = {EC_WORD_OH, EC_WORD_EXCL, EC_EMPTY_WORD, EC_WORD_UM, EC_WORD_ELLIPSIS, EC_WORD_YAY},
|
||||
.speechLose = {EC_WORD_UM, EC_WORD_ELLIPSIS, EC_EMPTY_WORD, EC_WORD_WAAAH, EC_WORD_ELLIPSIS, EC_EMPTY_WORD},
|
||||
.speechAfter = {EC_WORD_UM, EC_WORD_ELLIPSIS, EC_EMPTY_WORD, EC_WORD_I_AM, EC_WORD_SAD, EC_WORD_ELLIPSIS},
|
||||
.mons =
|
||||
{
|
||||
[0] =
|
||||
@ -4948,8 +4948,8 @@ static const struct TrHillFloor sDataTagExpert_Floors[] = {
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_OH_DEAR, EC_WORD_THIS, EC_WORD_MATCH, EC_WORD_IS, EC_WORD_FOR, EC_WORD_YOU},
|
||||
.speechWin = {EC_WORD_OH_DEAR, EC_WORD_DID, EC_WORD_YOU, EC_WORD_SEE, EC_WORD_THAT, EC_WORD_QUES},
|
||||
.speechLose = {EC_WORD_OH_DEAR, EC_WORD_I_AM, EC_WORD_SO, EC_WORD_SORRY, 0xFFFF, 0xFFFF},
|
||||
.speechAfter = {EC_WORD_IS, EC_WORD_YOUR, EC_WORD_GRANDMOTHER, EC_WORD_STRONG, EC_WORD_QUES, 0xFFFF},
|
||||
.speechLose = {EC_WORD_OH_DEAR, EC_WORD_I_AM, EC_WORD_SO, EC_WORD_SORRY, EC_EMPTY_WORD, EC_EMPTY_WORD},
|
||||
.speechAfter = {EC_WORD_IS, EC_WORD_YOUR, EC_WORD_GRANDMOTHER, EC_WORD_STRONG, EC_WORD_QUES, EC_EMPTY_WORD},
|
||||
.mons =
|
||||
{
|
||||
[0] =
|
||||
@ -5094,7 +5094,7 @@ static const struct TrHillFloor sDataTagExpert_Floors[] = {
|
||||
.speechBefore = {EC_WORD_OH_DEAR, EC_WORD_I, EC_WORD_WILL, EC_WORD_WIN, EC_WORD_FOR, EC_WORD_YOU},
|
||||
.speechWin = {EC_WORD_OH_DEAR, EC_WORD_WE, EC_WORD_HAVE, EC_WORD_A, EC_WORD_PARTY, EC_WORD_LATER},
|
||||
.speechLose = {EC_WORD_OH_DEAR, EC_WORD_I_AM, EC_WORD_SORRY, EC_WORD_TO, EC_WORD_DISAPPOINT, EC_WORD_YOU},
|
||||
.speechAfter = {EC_WORD_IS, EC_WORD_YOUR, EC_WORD_GRANDFATHER, EC_WORD_COOL, EC_WORD_QUES, 0xFFFF},
|
||||
.speechAfter = {EC_WORD_IS, EC_WORD_YOUR, EC_WORD_GRANDFATHER, EC_WORD_COOL, EC_WORD_QUES, EC_EMPTY_WORD},
|
||||
.mons =
|
||||
{
|
||||
[0] =
|
||||
@ -5271,7 +5271,7 @@ static const struct TrHillFloor sDataTagExpert_Floors[] = {
|
||||
.speechBefore = {EC_WORD_WAAAH, EC_WORD_THIS, EC_WORD_IS, EC_WORD_SO, EC_WORD_EXCITING, EC_WORD_EXCL},
|
||||
.speechWin = {EC_WORD_WAAAH, EC_WORD_I_AM, EC_WORD_SO, EC_WORD_HAPPY, EC_WORD_I, EC_WORD_WON},
|
||||
.speechLose = {EC_WORD_WAAAH, EC_WORD_I_AM, EC_WORD_SO, EC_WORD_SAD, EC_WORD_I, EC_WORD_LOST},
|
||||
.speechAfter = {EC_WORD_WAAAH, EC_WORD_EXCL, 0xFFFF, EC_WORD_GO, EC_WORD_AWAY, EC_WORD_EXCL},
|
||||
.speechAfter = {EC_WORD_WAAAH, EC_WORD_EXCL, EC_EMPTY_WORD, EC_WORD_GO, EC_WORD_AWAY, EC_WORD_EXCL},
|
||||
.mons =
|
||||
{
|
||||
[0] =
|
||||
@ -5410,7 +5410,7 @@ static const struct TrHillFloor sDataTagExpert_Floors[] = {
|
||||
.facilityClass = FACILITY_CLASS_PKMN_RANGER_M,
|
||||
.unused = 0,
|
||||
.speechBefore = {EC_WORD_WAHAHAHA, EC_WORD_YOU, EC_WORD_CAN_T, EC_WORD_STOP, EC_WORD_ME, EC_WORD_EXCL},
|
||||
.speechWin = {EC_WORD_WOWEE, EC_WORD_EXCL, 0xFFFF, EC_WORD_I_AM, EC_WORD_AWESOME, EC_WORD_COOL},
|
||||
.speechWin = {EC_WORD_WOWEE, EC_WORD_EXCL, EC_EMPTY_WORD, EC_WORD_I_AM, EC_WORD_AWESOME, EC_WORD_COOL},
|
||||
.speechLose = {EC_WORD_I_AM, EC_WORD_NOT, EC_WORD_COOL, EC_WORD_AT, EC_WORD_ALL, EC_WORD_EXCL},
|
||||
.speechAfter = {EC_WORD_HEHEHE, EC_WORD_THAT_WAS, EC_WORD_AN, EC_WORD_AWESOME, EC_WORD_BATTLE, EC_WORD_EXCL},
|
||||
.mons =
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1479,7 +1479,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_ORANGE_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_ORANGE_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_HARBOR_MAIL] =
|
||||
@ -1491,7 +1491,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_HARBOR_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_HARBOR_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_GLITTER_MAIL] =
|
||||
@ -1503,7 +1503,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_GLITTER_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_GLITTER_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_MECH_MAIL] =
|
||||
@ -1515,7 +1515,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_MECH_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_MECH_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_WOOD_MAIL] =
|
||||
@ -1527,7 +1527,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_WOOD_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_WOOD_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_WAVE_MAIL] =
|
||||
@ -1539,7 +1539,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_WAVE_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_WAVE_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_BEAD_MAIL] =
|
||||
@ -1551,7 +1551,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_BEAD_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_BEAD_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_SHADOW_MAIL] =
|
||||
@ -1563,7 +1563,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_SHADOW_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_SHADOW_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_TROPIC_MAIL] =
|
||||
@ -1575,7 +1575,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_TROPIC_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_TROPIC_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_DREAM_MAIL] =
|
||||
@ -1587,7 +1587,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_DREAM_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_DREAM_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_FAB_MAIL] =
|
||||
@ -1599,7 +1599,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_FAB_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_FAB_MAIL),
|
||||
},
|
||||
|
||||
[ITEM_RETRO_MAIL] =
|
||||
@ -1611,7 +1611,7 @@ const struct Item gItems[] =
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_MAIL,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_Mail,
|
||||
.secondaryId = ITEM_RETRO_MAIL - FIRST_MAIL_INDEX,
|
||||
.secondaryId = ITEM_TO_MAIL(ITEM_RETRO_MAIL),
|
||||
},
|
||||
|
||||
// Berries
|
||||
|
@ -53,7 +53,7 @@ static const u16 sQuizLadyQuestion3[] =
|
||||
EC_WORD_POKEMON,
|
||||
EC_WORD_EVOLVE,
|
||||
EC_WORD_QUES,
|
||||
0xFFFF,
|
||||
EC_EMPTY_WORD,
|
||||
EC_WORD_LEVEL,
|
||||
EC_WORD_INSOMNIA,
|
||||
EC_WORD_CUTE_CHARM
|
||||
@ -92,7 +92,7 @@ static const u16 sQuizLadyQuestion6[] =
|
||||
EC_WORD_STOP,
|
||||
EC_MOVE2(CONFUSION),
|
||||
EC_WORD_QUES,
|
||||
0xFFFF,
|
||||
EC_EMPTY_WORD,
|
||||
EC_WORD_ILLUMINATE,
|
||||
EC_WORD_OWN_TEMPO,
|
||||
EC_WORD_SWIFT_SWIM
|
||||
@ -118,7 +118,7 @@ static const u16 sQuizLadyQuestion8[] =
|
||||
EC_MOVE2(BLOCK),
|
||||
EC_WORD_ESCAPE,
|
||||
EC_WORD_QUES,
|
||||
0xFFFF,
|
||||
EC_EMPTY_WORD,
|
||||
EC_WORD_RUN_AWAY,
|
||||
EC_WORD_SHADOW_TAG,
|
||||
EC_WORD_WONDER_GUARD
|
||||
@ -131,7 +131,7 @@ static const u16 sQuizLadyQuestion9[] =
|
||||
EC_WORD_STOP,
|
||||
EC_WORD_POISON,
|
||||
EC_WORD_QUES,
|
||||
0xFFFF,
|
||||
EC_EMPTY_WORD,
|
||||
EC_WORD_GUTS,
|
||||
EC_WORD_IMMUNITY,
|
||||
EC_WORD_SHED_SKIN
|
||||
@ -144,7 +144,7 @@ static const u16 sQuizLadyQuestion10[] =
|
||||
EC_WORD_WITH,
|
||||
EC_WORD_CENTER,
|
||||
EC_WORD_QUES,
|
||||
0xFFFF,
|
||||
EC_EMPTY_WORD,
|
||||
EC_WORD_POKEDEX,
|
||||
EC_WORD_POKEMON,
|
||||
EC_WORD_POKENAV
|
||||
@ -157,7 +157,7 @@ static const u16 sQuizLadyQuestion11[] =
|
||||
EC_WORD_YOUR,
|
||||
EC_WORD_POKEMON,
|
||||
EC_WORD_QUES,
|
||||
0xFFFF,
|
||||
EC_EMPTY_WORD,
|
||||
EC_WORD_PC,
|
||||
EC_WORD_DEPT_STORE,
|
||||
EC_WORD_TELEVISION
|
||||
@ -199,7 +199,7 @@ static const u16 sQuizLadyQuestion14[] =
|
||||
EC_WORD_QUES,
|
||||
EC_WORD_ICE,
|
||||
EC_WORD_GROUND,
|
||||
0xFFFF
|
||||
EC_EMPTY_WORD
|
||||
};
|
||||
|
||||
static const u16 sQuizLadyQuestion15[] =
|
||||
@ -212,7 +212,7 @@ static const u16 sQuizLadyQuestion15[] =
|
||||
EC_WORD_QUES,
|
||||
EC_WORD_PSYCHIC,
|
||||
EC_WORD_FIGHTING,
|
||||
0xFFFF
|
||||
EC_EMPTY_WORD
|
||||
};
|
||||
|
||||
static const u16 sQuizLadyQuestion16[] =
|
||||
@ -225,7 +225,7 @@ static const u16 sQuizLadyQuestion16[] =
|
||||
EC_WORD_QUES,
|
||||
EC_WORD_NORMAL,
|
||||
EC_WORD_DARK,
|
||||
0xFFFF
|
||||
EC_EMPTY_WORD
|
||||
};
|
||||
|
||||
static const u16 *const sQuizLadyQuizQuestions[] =
|
||||
|
@ -1070,7 +1070,7 @@ static const u16 sIngameTradeMail[][MAIL_WORDS_COUNT + 1] =
|
||||
EC_WORD_THANK_YOU,
|
||||
EC_WORD_FOR,
|
||||
EC_POKEMON(SKITTY),
|
||||
EC_POKEMON2(MEOWTH),
|
||||
EC_POKEMON_NATIONAL(MEOWTH),
|
||||
EC_WORD_CRIES,
|
||||
EC_WORD_IN,
|
||||
EC_WORD_A,
|
||||
|
@ -925,7 +925,7 @@ static void DecorationItemsMenu_PrintDecorationInUse(u8 windowId, s32 itemIndex,
|
||||
|
||||
static void AddDecorationItemsScrollIndicators(void)
|
||||
{
|
||||
if (sDecorationItemsMenu->scrollIndicatorsTaskId == 0xFF)
|
||||
if (sDecorationItemsMenu->scrollIndicatorsTaskId == TASK_NONE)
|
||||
{
|
||||
sDecorationItemsMenu->scrollIndicatorsTaskId = AddScrollIndicatorArrowPairParameterized(
|
||||
SCROLL_ARROW_UP,
|
||||
@ -941,10 +941,10 @@ static void AddDecorationItemsScrollIndicators(void)
|
||||
|
||||
static void RemoveDecorationItemsScrollIndicators(void)
|
||||
{
|
||||
if (sDecorationItemsMenu->scrollIndicatorsTaskId != 0xFF)
|
||||
if (sDecorationItemsMenu->scrollIndicatorsTaskId != TASK_NONE)
|
||||
{
|
||||
RemoveScrollIndicatorArrowPair(sDecorationItemsMenu->scrollIndicatorsTaskId);
|
||||
sDecorationItemsMenu->scrollIndicatorsTaskId = 0xFF;
|
||||
sDecorationItemsMenu->scrollIndicatorsTaskId = TASK_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -960,7 +960,7 @@ static void InitDecorationItemsWindow(u8 taskId)
|
||||
AddDecorationWindow(WINDOW_DECORATION_CATEGORY_ITEMS);
|
||||
ShowDecorationCategorySummaryWindow(sCurDecorationCategory);
|
||||
sDecorationItemsMenu = AllocZeroed(sizeof(*sDecorationItemsMenu));
|
||||
sDecorationItemsMenu->scrollIndicatorsTaskId = 0xFF;
|
||||
sDecorationItemsMenu->scrollIndicatorsTaskId = TASK_NONE;
|
||||
InitDecorationItemsMenuLimits();
|
||||
InitDecorationItemsMenuScrollAndCursor();
|
||||
InitDecorationItemsMenuScrollAndCursor2();
|
||||
|
@ -90,7 +90,7 @@ void UpdateDewfordTrendPerDay(u16 a)
|
||||
}
|
||||
|
||||
|
||||
bool8 sub_81226D8(u16 *a)
|
||||
bool8 IsPhraseTrendy(u16 *a)
|
||||
{
|
||||
struct EasyChatPair s = {0};
|
||||
u16 i;
|
||||
|
@ -84,7 +84,7 @@ void CB2_ShowDiploma(void)
|
||||
CopyBgTilemapBufferToVram(1);
|
||||
DisplayDiplomaText();
|
||||
BlendPalettes(-1, 16, 0);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
|
||||
EnableInterrupts(1);
|
||||
SetVBlankCallback(VBlankCB);
|
||||
SetMainCallback2(MainCB2);
|
||||
@ -109,7 +109,7 @@ static void Task_DiplomaWaitForKeyPress(u8 taskId)
|
||||
{
|
||||
if (JOY_NEW(A_BUTTON | B_BUTTON))
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
gTasks[taskId].func = Task_DiplomaFadeOut;
|
||||
}
|
||||
}
|
||||
|
@ -590,8 +590,8 @@ static void sub_8024BC8(u8 taskId)
|
||||
gUnknown_02022C98->unk0C++;
|
||||
break;
|
||||
case 6:
|
||||
BlendPalettes(0xFFFFFFFF, 0x10, 0x00);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, 0);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, 0x00);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, 0);
|
||||
SetVBlankCallback(sub_80261E4);
|
||||
gUnknown_02022C98->unk0C++;
|
||||
break;
|
||||
@ -1110,7 +1110,7 @@ static void sub_80256AC(void)
|
||||
switch (gUnknown_02022C98->unk10)
|
||||
{
|
||||
case 0:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, 0);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, 0);
|
||||
gUnknown_02022C98->unk10++;
|
||||
break;
|
||||
case 1:
|
||||
@ -1147,7 +1147,7 @@ static void sub_8025758(void)
|
||||
{
|
||||
case 0:
|
||||
sub_80292E0(9);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, 0);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, 0);
|
||||
gUnknown_02022C98->unk10++;
|
||||
break;
|
||||
case 1:
|
||||
@ -1178,8 +1178,8 @@ static void sub_8025758(void)
|
||||
gUnknown_02022C98->unk10++;
|
||||
break;
|
||||
case 5:
|
||||
BlendPalettes(0xFFFFFFFF, 16, 0);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, 0);
|
||||
BlendPalettes(PALETTES_ALL, 16, 0);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, 0);
|
||||
gUnknown_02022C98->unk10++;
|
||||
break;
|
||||
case 6:
|
||||
|
4001
src/easy_chat.c
4001
src/easy_chat.c
File diff suppressed because it is too large
Load Diff
@ -597,7 +597,7 @@ static void CB2_EggHatch_1(void)
|
||||
switch (sEggHatchData->CB2_state)
|
||||
{
|
||||
case 0:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
sEggHatchData->eggSpriteID = CreateSprite(&sSpriteTemplate_EggHatch, 120, 75, 5);
|
||||
ShowBg(0);
|
||||
ShowBg(1);
|
||||
@ -680,7 +680,7 @@ static void CB2_EggHatch_1(void)
|
||||
}
|
||||
break;
|
||||
case 11:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
sEggHatchData->CB2_state++;
|
||||
break;
|
||||
case 12:
|
||||
@ -790,7 +790,7 @@ static void SpriteCB_Egg_4(struct Sprite* sprite)
|
||||
{
|
||||
s16 i;
|
||||
if (sprite->data[0] == 0)
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, -1, 0, 0x10, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, -1, 0, 0x10, RGB_WHITEALPHA);
|
||||
if (sprite->data[0] < 4u)
|
||||
{
|
||||
for (i = 0; i <= 3; i++)
|
||||
@ -814,7 +814,7 @@ static void SpriteCB_Egg_5(struct Sprite* sprite)
|
||||
StartSpriteAffineAnim(&gSprites[sEggHatchData->pokeSpriteID], 1);
|
||||
}
|
||||
if (sprite->data[0] == 8)
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, -1, 0x10, 0, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, -1, 0x10, 0, RGB_WHITEALPHA);
|
||||
if (sprite->data[0] <= 9)
|
||||
gSprites[sEggHatchData->pokeSpriteID].pos1.y -= 1;
|
||||
if (sprite->data[0] > 40)
|
||||
|
@ -134,10 +134,10 @@ static const struct TrainerHillTrainer sTrainerHillTrainerTemplates_JP[] = {
|
||||
.name = __("ハルヒト$$$$ "),
|
||||
.facilityClass = FACILITY_CLASS_CAMPER,
|
||||
.unused = 0x1,
|
||||
.speechBefore = { EC_MOVE2(BOUNCE), EC_WORD_AS_MUCH_AS, 0xFFFF, EC_WORD_THEY_RE, EC_WORD_STRONG, EC_WORD_EXCL },
|
||||
.speechWin = { EC_MOVE(FLY), EC_WORD_AS_MUCH_AS, 0xFFFF, EC_WORD_THEY_RE, EC_WORD_HAPPY, EC_WORD_EXCL },
|
||||
.speechLose = { EC_MOVE2(MINIMIZE), EC_WORD_AS_MUCH_AS, 0xFFFF, EC_WORD_THEY_RE, EC_WORD_SAD, EC_WORD_EXCL },
|
||||
.speechAfter = { EC_MOVE(BITE), EC_WORD_AS_MUCH_AS, 0xFFFF, EC_WORD_THEY_RE, EC_WORD_ANGRY, EC_WORD_EXCL },
|
||||
.speechBefore = { EC_MOVE2(BOUNCE), EC_WORD_AS_MUCH_AS, EC_EMPTY_WORD, EC_WORD_THEY_RE, EC_WORD_STRONG, EC_WORD_EXCL },
|
||||
.speechWin = { EC_MOVE(FLY), EC_WORD_AS_MUCH_AS, EC_EMPTY_WORD, EC_WORD_THEY_RE, EC_WORD_HAPPY, EC_WORD_EXCL },
|
||||
.speechLose = { EC_MOVE2(MINIMIZE), EC_WORD_AS_MUCH_AS, EC_EMPTY_WORD, EC_WORD_THEY_RE, EC_WORD_SAD, EC_WORD_EXCL },
|
||||
.speechAfter = { EC_MOVE(BITE), EC_WORD_AS_MUCH_AS, EC_EMPTY_WORD, EC_WORD_THEY_RE, EC_WORD_ANGRY, EC_WORD_EXCL },
|
||||
.mons = {
|
||||
[0] = NULL_BATTLE_TOWER_POKEMON,
|
||||
[1] = NULL_BATTLE_TOWER_POKEMON,
|
||||
@ -223,7 +223,7 @@ static const struct TrainerHillTrainer sTrainerHillTrainerTemplates_JP[] = {
|
||||
.speechBefore = { EC_WORD_SHINE, EC_WORD_POKEMON, EC_WORD_RELEASE, EC_WORD_WAS, EC_MOVE2(FRUSTRATION), EC_WORD_WITHOUT },
|
||||
.speechWin = { EC_WORD_SHINE, EC_WORD_POKEMON, EC_WORD_TO_HER, EC_MOVE2(PRESENT), EC_WORD_KNOWS, EC_WORD_WITHOUT },
|
||||
.speechLose = { EC_WORD_THAT, EC_WORD_ABOVE, EC_WORD_LOST, EC_WORD_STORES, EC_WORD_JOKING, EC_WORD_ELLIPSIS_ELLIPSIS_ELLIPSIS },
|
||||
.speechAfter = { EC_WORD_ENTERTAINING, EC_WORD_NONE, EC_WORD_HEY_QUES, EC_WORD_ALMOST, EC_WORD_EXCL, 0xFFFF },
|
||||
.speechAfter = { EC_WORD_ENTERTAINING, EC_WORD_NONE, EC_WORD_HEY_QUES, EC_WORD_ALMOST, EC_WORD_EXCL, EC_EMPTY_WORD },
|
||||
.mons = {
|
||||
[0] = NULL_BATTLE_TOWER_POKEMON,
|
||||
[1] = NULL_BATTLE_TOWER_POKEMON,
|
||||
@ -307,7 +307,7 @@ static const struct TrainerHillTrainer sTrainerHillTrainerTemplates_JP[] = {
|
||||
.facilityClass = FACILITY_CLASS_GENTLEMAN,
|
||||
.unused = 0x1,
|
||||
.speechBefore = { EC_WORD_SHE_WAS, EC_WORD_NO_1, EC_WORD_STRONG, EC_WORD_UNCLE, EC_WORD_THERE, EC_WORD_EXCL },
|
||||
.speechWin = { EC_WORD_HAHAHA, EC_WORD_TEACHER, EC_WORD_BECOMES, EC_WORD_GIVE, EC_WORD_IS_IT_QUES, 0xFFFF },
|
||||
.speechWin = { EC_WORD_HAHAHA, EC_WORD_TEACHER, EC_WORD_BECOMES, EC_WORD_GIVE, EC_WORD_IS_IT_QUES, EC_EMPTY_WORD },
|
||||
.speechLose = { EC_WORD_OUTSIDE, EC_WORD_UNCLE, EC_WORD_SURPRISE, EC_WORD_THESE, EC_WORD_HEY_QUES, EC_WORD_ELLIPSIS_EXCL },
|
||||
.speechAfter = { EC_WORD_HE_S, EC_WORD_NO_1, EC_WORD_STRONG, EC_WORD_CHILDREN, EC_WORD_CAN_T, EC_WORD_EXCL_EXCL },
|
||||
.mons = {
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "constants/battle_string_ids.h"
|
||||
#include "constants/songs.h"
|
||||
#include "constants/rgb.h"
|
||||
#include "constants/items.h"
|
||||
|
||||
struct EvoInfo
|
||||
{
|
||||
@ -171,7 +172,7 @@ static void Task_BeginEvolutionScene(u8 taskId)
|
||||
switch (gTasks[taskId].tState)
|
||||
{
|
||||
case 0:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].tState++;
|
||||
break;
|
||||
case 1:
|
||||
@ -368,7 +369,7 @@ static void CB2_EvolutionSceneLoadGraphics(void)
|
||||
SetVBlankCallback(VBlankCB_EvolutionScene);
|
||||
SetMainCallback2(CB2_EvolutionSceneUpdate);
|
||||
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
|
||||
ShowBg(0);
|
||||
ShowBg(1);
|
||||
@ -448,11 +449,11 @@ static void CB2_TradeEvolutionSceneLoadGraphics(void)
|
||||
LoadWirelessStatusIndicatorSpriteGfx();
|
||||
CreateWirelessStatusIndicatorSprite(0, 0);
|
||||
}
|
||||
BlendPalettes(-1,0x10, 0);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, 0);
|
||||
gMain.state++;
|
||||
break;
|
||||
case 7:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
InitTradeSequenceBgGpuRegs();
|
||||
ShowBg(0);
|
||||
ShowBg(1);
|
||||
@ -565,7 +566,7 @@ static void CreateShedinja(u16 preEvoSpecies, struct Pokemon* mon)
|
||||
SetMonData(&gPlayerParty[gPlayerPartyCount], i, &data);
|
||||
|
||||
SetMonData(&gPlayerParty[gPlayerPartyCount], MON_DATA_STATUS, &data);
|
||||
data = 0xFF;
|
||||
data = MAIL_NONE;
|
||||
SetMonData(&gPlayerParty[gPlayerPartyCount], MON_DATA_MAIL, &data);
|
||||
|
||||
CalculateMonStats(&gPlayerParty[gPlayerPartyCount]);
|
||||
@ -652,7 +653,7 @@ static void Task_EvolutionScene(u8 taskId)
|
||||
switch (gTasks[taskId].tState)
|
||||
{
|
||||
case EVOSTATE_FADE_IN:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
gSprites[sEvoStructPtr->preEvoSpriteId].invisible = FALSE;
|
||||
gTasks[taskId].tState++;
|
||||
ShowBg(0);
|
||||
@ -801,7 +802,7 @@ static void Task_EvolutionScene(u8 taskId)
|
||||
}
|
||||
else // no move to learn, or evolution was canceled
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].tState++;
|
||||
}
|
||||
}
|
||||
@ -945,7 +946,7 @@ static void Task_EvolutionScene(u8 taskId)
|
||||
// YES
|
||||
gTasks[taskId].tLearnMoveState = gTasks[taskId].tLearnMoveYesState;
|
||||
if (gTasks[taskId].tLearnMoveState == MVSTATE_SHOW_MOVE_SELECT)
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
}
|
||||
}
|
||||
if (JOY_NEW(B_BUTTON))
|
||||
@ -1322,7 +1323,7 @@ static void Task_TradeEvolutionScene(u8 taskId)
|
||||
DrawTextOnTradeWindow(0, gDisplayedStringBattle, 1);
|
||||
gTasks[taskId].tLearnMoveState = gTasks[taskId].tLearnMoveYesState;
|
||||
if (gTasks[taskId].tLearnMoveState == T_MVSTATE_SHOW_MOVE_SELECT)
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
break;
|
||||
case 1: // NO
|
||||
case MENU_B_PRESSED:
|
||||
@ -1646,7 +1647,7 @@ static void PauseBgPaletteAnim(void)
|
||||
{
|
||||
u8 taskId = FindTaskIdByFunc(Task_UpdateBgPalette);
|
||||
|
||||
if (taskId != 0xFF)
|
||||
if (taskId != TASK_NONE)
|
||||
gTasks[taskId].tPaused = TRUE;
|
||||
|
||||
FillPalette(0, 0xA0, 0x20);
|
||||
@ -1658,9 +1659,9 @@ static void StopBgAnimation(void)
|
||||
{
|
||||
u8 taskId;
|
||||
|
||||
if ((taskId = FindTaskIdByFunc(Task_UpdateBgPalette)) != 0xFF)
|
||||
if ((taskId = FindTaskIdByFunc(Task_UpdateBgPalette)) != TASK_NONE)
|
||||
DestroyTask(taskId);
|
||||
if ((taskId = FindTaskIdByFunc(Task_AnimateBg)) != 0xFF)
|
||||
if ((taskId = FindTaskIdByFunc(Task_AnimateBg)) != TASK_NONE)
|
||||
DestroyTask(taskId);
|
||||
|
||||
FillPalette(0, 0xA0, 0x20);
|
||||
|
@ -3703,8 +3703,8 @@ static void DestroyDeoxysRockEffect_RockFragments(s16* data, u8 taskId)
|
||||
{
|
||||
struct Sprite *sprite = &gSprites[gObjectEvents[tObjectEventId].spriteId];
|
||||
gObjectEvents[tObjectEventId].invisible = TRUE;
|
||||
BlendPalettes(0x0000FFFF, 0x10, RGB_WHITE);
|
||||
BeginNormalPaletteFade(0x0000FFFF, 0, 0x10, 0, RGB_WHITE);
|
||||
BlendPalettes(PALETTES_BG, 0x10, RGB_WHITE);
|
||||
BeginNormalPaletteFade(PALETTES_BG, 0, 0x10, 0, RGB_WHITE);
|
||||
CreateDeoxysRockFragments(sprite);
|
||||
PlaySE(SE_THUNDER);
|
||||
StartEndingDeoxysRockCameraShake(tCameraTaskId);
|
||||
|
@ -55,7 +55,7 @@ static void CreateTask_DrawFieldMessage(void)
|
||||
static void DestroyTask_DrawFieldMessage(void)
|
||||
{
|
||||
u8 taskId = FindTaskIdByFunc(Task_DrawFieldMessage);
|
||||
if (taskId != 0xFF)
|
||||
if (taskId != TASK_NONE)
|
||||
DestroyTask(taskId);
|
||||
}
|
||||
|
||||
|
@ -156,7 +156,7 @@ static void FieldUpdateRegionMap(void)
|
||||
ScheduleBgCopyTilemapToVram(0);
|
||||
DrawStdFrameWithCustomTileAndPalette(0, 0, 0x27, 0xd);
|
||||
PrintRegionMapSecName();
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
|
||||
sFieldRegionMapHandler->state++;
|
||||
break;
|
||||
case 2:
|
||||
@ -184,7 +184,7 @@ static void FieldUpdateRegionMap(void)
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
sFieldRegionMapHandler->state++;
|
||||
break;
|
||||
case 6:
|
||||
|
@ -2667,7 +2667,7 @@ static void ScrollableMultichoice_MoveCursor(s32 itemIndex, bool8 onInit, struct
|
||||
u8 taskId;
|
||||
PlaySE(SE_SELECT);
|
||||
taskId = FindTaskIdByFunc(ScrollableMultichoice_ProcessInput);
|
||||
if (taskId != 0xFF)
|
||||
if (taskId != TASK_NONE)
|
||||
{
|
||||
u16 selection;
|
||||
struct Task *task = &gTasks[taskId];
|
||||
@ -2753,7 +2753,7 @@ static void sub_813A600(u8 taskId)
|
||||
void sub_813A630(void)
|
||||
{
|
||||
u8 taskId = FindTaskIdByFunc(sub_813A600);
|
||||
if (taskId == 0xFF)
|
||||
if (taskId == TASK_NONE)
|
||||
{
|
||||
EnableBothScriptContexts();
|
||||
}
|
||||
@ -3262,7 +3262,7 @@ void sub_813ADD4(void)
|
||||
u16 scrollOffset, selectedRow;
|
||||
u8 i;
|
||||
u8 taskId = FindTaskIdByFunc(sub_813A600);
|
||||
if (taskId != 0xFF)
|
||||
if (taskId != TASK_NONE)
|
||||
{
|
||||
struct Task *task = &gTasks[taskId];
|
||||
ListMenuGetScrollAndRow(task->tListTaskId, &scrollOffset, &selectedRow);
|
||||
@ -3321,7 +3321,7 @@ void GetBattleFrontierTutorMoveIndex(void)
|
||||
void sub_813AF48(void)
|
||||
{
|
||||
u8 taskId = FindTaskIdByFunc(sub_813A600);
|
||||
if (taskId != 0xFF)
|
||||
if (taskId != TASK_NONE)
|
||||
{
|
||||
struct Task *task = &gTasks[taskId];
|
||||
DestroyListMenuTask(task->tListTaskId, NULL, NULL);
|
||||
|
@ -174,7 +174,7 @@ void SetUpFieldTasks(void)
|
||||
void ActivatePerStepCallback(u8 callbackId)
|
||||
{
|
||||
u8 taskId = FindTaskIdByFunc(Task_RunPerStepCallback);
|
||||
if (taskId != 0xff)
|
||||
if (taskId != TASK_NONE)
|
||||
{
|
||||
s32 i;
|
||||
s16 *data = gTasks[taskId].data;
|
||||
@ -199,12 +199,12 @@ void ResetFieldTasksArgs(void)
|
||||
s16 *data;
|
||||
|
||||
taskId = FindTaskIdByFunc(Task_RunPerStepCallback);
|
||||
if (taskId != 0xff)
|
||||
if (taskId != TASK_NONE)
|
||||
{
|
||||
data = gTasks[taskId].data;
|
||||
}
|
||||
taskId = FindTaskIdByFunc(Task_RunTimeBasedEvents);
|
||||
if (taskId != 0xff)
|
||||
if (taskId != TASK_NONE)
|
||||
{
|
||||
data = gTasks[taskId].data;
|
||||
data[1] = 0;
|
||||
|
@ -782,7 +782,7 @@ void FadeScreen(u8 mode, s8 delay)
|
||||
if (useWeatherPal)
|
||||
CpuFastCopy(gPlttBufferFaded, gPlttBufferUnfaded, 0x400);
|
||||
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, delay, 0, 16, fadeColor);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, delay, 0, 16, fadeColor);
|
||||
gWeatherPtr->palProcessingState = WEATHER_PAL_STATE_SCREEN_FADING_OUT;
|
||||
}
|
||||
else
|
||||
@ -791,7 +791,7 @@ void FadeScreen(u8 mode, s8 delay)
|
||||
if (useWeatherPal)
|
||||
gWeatherPtr->fadeScreenCounter = 0;
|
||||
else
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, delay, 16, 0, fadeColor);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, delay, 16, 0, fadeColor);
|
||||
|
||||
gWeatherPtr->palProcessingState = WEATHER_PAL_STATE_SCREEN_FADING_IN;
|
||||
gWeatherPtr->unknown_6CA = 1;
|
||||
|
@ -387,7 +387,7 @@ static void Task_ComputerScreenOpenEffect(u8 taskId)
|
||||
task->tWinRight = DISPLAY_WIDTH;
|
||||
SetGpuReg(REG_OFFSET_BLDY, 0);
|
||||
SetGpuReg(REG_OFFSET_BLDCNT, task->tBlendCnt);
|
||||
BlendPalettes(0xFFFFFFFF, 0, 0);
|
||||
BlendPalettes(PALETTES_ALL, 0, 0);
|
||||
gPlttBufferFaded[0] = 0;
|
||||
}
|
||||
SetGpuReg(REG_OFFSET_WIN0H, WIN_RANGE(task->tWinLeft, task->tWinRight));
|
||||
@ -463,7 +463,7 @@ static void Task_ComputerScreenCloseEffect(u8 taskId)
|
||||
{
|
||||
task->tWinLeft = DISPLAY_WIDTH / 2;
|
||||
task->tWinRight = DISPLAY_WIDTH / 2;
|
||||
BlendPalettes(-1, 16, 0);
|
||||
BlendPalettes(PALETTES_ALL, 16, 0);
|
||||
gPlttBufferFaded[0] = 0;
|
||||
}
|
||||
SetGpuReg(REG_OFFSET_WIN0H, WIN_RANGE(task->tWinLeft, task->tWinRight));
|
||||
|
@ -751,8 +751,8 @@ static bool32 InitFrontierPass(void)
|
||||
ShowBg(2);
|
||||
LoadCursorAndSymbolSprites();
|
||||
SetVBlankCallback(VblankCb_FrontierPass);
|
||||
BlendPalettes(0xFFFFFFFF, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
break;
|
||||
case 10:
|
||||
AnimateSprites();
|
||||
@ -775,7 +775,7 @@ static bool32 HideFrontierPass(void)
|
||||
case 0:
|
||||
if (sPassData->unkE != 1 && sPassData->unkE != 2)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1023,7 +1023,7 @@ static void Task_DoFadeEffect(u8 taskId)
|
||||
data[2] = Q_8_8(1);
|
||||
data[3] = 0x15;
|
||||
data[4] = 0x15;
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_WHITE);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_WHITE);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1037,8 +1037,8 @@ static void Task_DoFadeEffect(u8 taskId)
|
||||
ShowBg(2);
|
||||
LoadCursorAndSymbolSprites();
|
||||
SetVBlankCallback(VblankCb_FrontierPass);
|
||||
BlendPalettes(0xFFFFFFFF, 0x10, RGB_WHITE);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_WHITE);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, RGB_WHITE);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_WHITE);
|
||||
}
|
||||
sPassGfx->setAffine = TRUE;
|
||||
sPassGfx->unk2E = MathUtil_Inv16(data[1]);
|
||||
@ -1366,8 +1366,8 @@ static bool32 InitFrontierMap(void)
|
||||
ShowBg(2);
|
||||
InitFrontierMapSprites();
|
||||
SetVBlankCallback(VblankCb_FrontierPass);
|
||||
BlendPalettes(0xFFFFFFFF, 0x10, RGB_WHITE);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_WHITE);
|
||||
BlendPalettes(PALETTES_ALL, 0x10, RGB_WHITE);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_WHITE);
|
||||
break;
|
||||
case 7:
|
||||
if (UpdatePaletteFade())
|
||||
@ -1385,7 +1385,7 @@ static bool32 ExitFrontierMap(void)
|
||||
switch (sPassData->state)
|
||||
{
|
||||
case 0:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_WHITE);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_WHITE);
|
||||
break;
|
||||
case 1:
|
||||
if (UpdatePaletteFade())
|
||||
|
@ -1361,11 +1361,11 @@ static const u8 sEmpty1[0x200] = {0};
|
||||
const u8 gBerryBlenderPlayerArrow_Gfx[] = INCBIN_U8("graphics/berry_blender/arrow.4bpp");
|
||||
static const u8 sEmpty2[0x2C0] = {0};
|
||||
|
||||
const u16 gEasyChatCursor_Pal[] = INCBIN_U16("graphics/easy_chat/cursor.gbapal");
|
||||
const u32 gEasyChatCursor_Gfx[] = INCBIN_U32("graphics/easy_chat/cursor.4bpp.lz");
|
||||
const u16 gEasyChatRectangleCursor_Pal[] = INCBIN_U16("graphics/easy_chat/rectangle_cursor.gbapal");
|
||||
const u32 gEasyChatRectangleCursor_Gfx[] = INCBIN_U32("graphics/easy_chat/rectangle_cursor.4bpp.lz");
|
||||
|
||||
const u16 gEasyChatRightWindow_Pal[] = INCBIN_U16("graphics/easy_chat/rwindow.gbapal");
|
||||
const u32 gEasyChatRightWindow_Gfx[] = INCBIN_U32("graphics/easy_chat/rwindow.4bpp.lz");
|
||||
const u16 gEasyChatButtonWindow_Pal[] = INCBIN_U16("graphics/easy_chat/button_window.gbapal");
|
||||
const u32 gEasyChatButtonWindow_Gfx[] = INCBIN_U32("graphics/easy_chat/button_window.4bpp.lz");
|
||||
|
||||
const u32 gEasyChatMode_Gfx[] = INCBIN_U32("graphics/easy_chat/mode.4bpp.lz");
|
||||
const u16 gEasyChatMode_Pal[] = INCBIN_U16("graphics/easy_chat/mode.gbapal");
|
||||
|
@ -386,7 +386,7 @@ static bool8 InitHallOfFameScreen(void)
|
||||
if (!sub_8175024())
|
||||
{
|
||||
SetVBlankCallback(VBlankCB_HallOfFame);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
gMain.state++;
|
||||
}
|
||||
break;
|
||||
@ -464,11 +464,11 @@ static void Task_Hof_InitMonData(u8 taskId)
|
||||
|
||||
sHofFadePalettes = 0;
|
||||
gTasks[taskId].tDisplayedMonId = 0;
|
||||
gTasks[taskId].tPlayerSpriteID = 0xFF;
|
||||
gTasks[taskId].tPlayerSpriteID = SPRITE_NONE;
|
||||
|
||||
for (i = 0; i < PARTY_SIZE; i++)
|
||||
{
|
||||
gTasks[taskId].tMonSpriteId(i) = 0xFF;
|
||||
gTasks[taskId].tMonSpriteId(i) = SPRITE_NONE;
|
||||
}
|
||||
|
||||
if (gTasks[taskId].tDontSaveData)
|
||||
@ -639,10 +639,10 @@ static void Task_Hof_PaletteFadeAndPrintWelcomeText(u8 taskId)
|
||||
{
|
||||
u16 i;
|
||||
|
||||
BeginNormalPaletteFade(0xFFFF0000, 0, 0, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_OBJECTS, 0, 0, 0, RGB_BLACK);
|
||||
for (i = 0; i < PARTY_SIZE; i++)
|
||||
{
|
||||
if (gTasks[taskId].tMonSpriteId(i) != 0xFF)
|
||||
if (gTasks[taskId].tMonSpriteId(i) != SPRITE_NONE)
|
||||
gSprites[gTasks[taskId].tMonSpriteId(i)].oam.priority = 0;
|
||||
}
|
||||
|
||||
@ -668,7 +668,7 @@ static void Task_Hof_DoConfetti(u8 taskId)
|
||||
u16 i;
|
||||
for (i = 0; i < PARTY_SIZE; i++)
|
||||
{
|
||||
if (gTasks[taskId].tMonSpriteId(i) != 0xFF)
|
||||
if (gTasks[taskId].tMonSpriteId(i) != SPRITE_NONE)
|
||||
gSprites[gTasks[taskId].tMonSpriteId(i)].oam.priority = 1;
|
||||
}
|
||||
BeginNormalPaletteFade(sHofFadePalettes, 0, 12, 12, RGB(16, 29, 24));
|
||||
@ -739,7 +739,7 @@ static void Task_Hof_ExitOnKeyPressed(u8 taskId)
|
||||
static void Task_Hof_HandlePaletteOnExit(u8 taskId)
|
||||
{
|
||||
CpuCopy16(gPlttBufferFaded, gPlttBufferUnfaded, 0x400);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 8, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 8, 0, 0x10, RGB_BLACK);
|
||||
gTasks[taskId].func = Task_Hof_HandleExit;
|
||||
}
|
||||
|
||||
@ -752,7 +752,7 @@ static void Task_Hof_HandleExit(u8 taskId)
|
||||
for (i = 0; i < PARTY_SIZE; i++)
|
||||
{
|
||||
u8 spriteId = gTasks[taskId].tMonSpriteId(i);
|
||||
if (spriteId != 0xFF)
|
||||
if (spriteId != SPRITE_NONE)
|
||||
{
|
||||
FreeOamMatrix(gSprites[spriteId].oam.matrixNum);
|
||||
FreeAndDestroyMonPicSprite(spriteId);
|
||||
@ -847,7 +847,7 @@ void CB2_DoHallOfFamePC(void)
|
||||
|
||||
for (i = 0; i < PARTY_SIZE; i++)
|
||||
{
|
||||
gTasks[taskId].tMonSpriteId(i) = 0xFF;
|
||||
gTasks[taskId].tMonSpriteId(i) = SPRITE_NONE;
|
||||
}
|
||||
|
||||
sHofMonPtr = AllocZeroed(0x2000);
|
||||
@ -937,11 +937,11 @@ static void Task_HofPC_DrawSpritesPrintText(u8 taskId)
|
||||
}
|
||||
else
|
||||
{
|
||||
gTasks[taskId].tMonSpriteId(i) = 0xFF;
|
||||
gTasks[taskId].tMonSpriteId(i) = SPRITE_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
BlendPalettes(0xFFFF0000, 0xC, RGB(16, 29, 24));
|
||||
BlendPalettes(PALETTES_OBJECTS, 0xC, RGB(16, 29, 24));
|
||||
|
||||
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].tCurrPageNo, STR_CONV_MODE_RIGHT_ALIGN, 3);
|
||||
StringExpandPlaceholders(gStringVar4, gText_HOFNumber);
|
||||
@ -967,7 +967,7 @@ static void Task_HofPC_PrintMonInfo(u8 taskId)
|
||||
for (i = 0; i < PARTY_SIZE; i++)
|
||||
{
|
||||
u16 spriteId = gTasks[taskId].tMonSpriteId(i);
|
||||
if (spriteId != 0xFF)
|
||||
if (spriteId != SPRITE_NONE)
|
||||
gSprites[spriteId].oam.priority = 1;
|
||||
}
|
||||
|
||||
@ -999,10 +999,10 @@ static void Task_HofPC_HandleInput(u8 taskId)
|
||||
for (i = 0; i < PARTY_SIZE; i++)
|
||||
{
|
||||
u8 spriteId = gTasks[taskId].tMonSpriteId(i);
|
||||
if (spriteId != 0xFF)
|
||||
if (spriteId != SPRITE_NONE)
|
||||
{
|
||||
FreeAndDestroyMonPicSprite(spriteId);
|
||||
gTasks[taskId].tMonSpriteId(i) = 0xFF;
|
||||
gTasks[taskId].tMonSpriteId(i) = SPRITE_NONE;
|
||||
}
|
||||
}
|
||||
if (gTasks[taskId].tCurrPageNo != 0)
|
||||
@ -1060,10 +1060,10 @@ static void Task_HofPC_HandleExit(u8 taskId)
|
||||
for (i = 0; i < PARTY_SIZE; i++)
|
||||
{
|
||||
u16 spriteId = gTasks[taskId].tMonSpriteId(i);
|
||||
if (spriteId != 0xFF)
|
||||
if (spriteId != SPRITE_NONE)
|
||||
{
|
||||
FreeAndDestroyMonPicSprite(spriteId);
|
||||
gTasks[taskId].tMonSpriteId(i) = 0xFF;
|
||||
gTasks[taskId].tMonSpriteId(i) = SPRITE_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1433,7 +1433,7 @@ void DoDomeConfetti(void)
|
||||
|
||||
gSpecialVar_0x8004 = 180;
|
||||
taskId = CreateTask(Task_DoDomeConfetti, 0);
|
||||
if (taskId != 0xFF)
|
||||
if (taskId != TASK_NONE)
|
||||
{
|
||||
gTasks[taskId].tTimer = gSpecialVar_0x8004;
|
||||
gSpecialVar_0x8005 = taskId;
|
||||
@ -1444,7 +1444,7 @@ static void StopDomeConfetti(void)
|
||||
{
|
||||
u8 taskId;
|
||||
|
||||
if ((taskId = FindTaskIdByFunc(Task_DoDomeConfetti)) != 0xFF)
|
||||
if ((taskId = FindTaskIdByFunc(Task_DoDomeConfetti)) != TASK_NONE)
|
||||
DestroyTask(taskId);
|
||||
|
||||
ConfettiUtil_Free();
|
||||
|
@ -29,7 +29,7 @@ static void ReshowPCMenuAfterHallOfFamePC(void)
|
||||
Overworld_PlaySpecialMapMusic();
|
||||
ScriptMenu_CreatePCMultichoice();
|
||||
ScriptMenu_DisplayPCStartupPrompt();
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||
CreateTask(Task_WaitForPaletteFade, 10);
|
||||
}
|
||||
|
||||
|
@ -152,7 +152,7 @@ void PadNameString(u8 *dest, u8 padChar)
|
||||
dest[length] = EOS;
|
||||
}
|
||||
|
||||
void sub_81DB52C(u8 *str)
|
||||
void ConvertInternationalPlayerName(u8 *str)
|
||||
{
|
||||
if (StringLength(str) < PLAYER_NAME_LENGTH - 1)
|
||||
ConvertInternationalString(str, LANGUAGE_JAPANESE);
|
||||
@ -160,14 +160,14 @@ void sub_81DB52C(u8 *str)
|
||||
StripExtCtrlCodes(str);
|
||||
}
|
||||
|
||||
void sub_81DB554(u8 *str, u8 arg1)
|
||||
void ConvertInternationalPlayerNameStripChar(u8 *str, u8 removeChar)
|
||||
{
|
||||
u8 *buffer;
|
||||
if (StringLength(str) < PLAYER_NAME_LENGTH - 1)
|
||||
{
|
||||
ConvertInternationalString(str, LANGUAGE_JAPANESE);
|
||||
}
|
||||
else if (arg1 == EXT_CTRL_CODE_BEGIN)
|
||||
else if (removeChar == EXT_CTRL_CODE_BEGIN)
|
||||
{
|
||||
StripExtCtrlCodes(str);
|
||||
}
|
||||
@ -177,7 +177,7 @@ void sub_81DB554(u8 *str, u8 arg1)
|
||||
while (buffer[1] != EOS)
|
||||
buffer++;
|
||||
|
||||
while (buffer >= str && buffer[0] == arg1)
|
||||
while (buffer >= str && buffer[0] == removeChar)
|
||||
{
|
||||
buffer[0] = EOS;
|
||||
buffer--;
|
||||
|
32
src/intro.c
32
src/intro.c
@ -1006,7 +1006,7 @@ static u8 SetUpCopyrightScreen(void)
|
||||
ResetTasks();
|
||||
ResetSpriteData();
|
||||
FreeAllSpritePalettes();
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_WHITEALPHA);
|
||||
SetGpuReg(REG_OFFSET_BG0CNT, BGCNT_PRIORITY(0)
|
||||
| BGCNT_CHARBASE(0)
|
||||
| BGCNT_SCREENBASE(7)
|
||||
@ -1026,7 +1026,7 @@ static u8 SetUpCopyrightScreen(void)
|
||||
GameCubeMultiBoot_Main(&gMultibootProgramStruct);
|
||||
if (gMultibootProgramStruct.gcmb_field_2 != 1)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
|
||||
gMain.state++;
|
||||
}
|
||||
break;
|
||||
@ -1121,7 +1121,7 @@ static void Task_IntroLoadPart1Graphics(u8 taskId)
|
||||
|
||||
static void Task_IntroFadeIn(u8 taskId)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
|
||||
SetVBlankCallback(VBlankCB_Intro);
|
||||
SetGpuReg(REG_OFFSET_DISPCNT, DISPCNT_MODE_0 | DISPCNT_OBJ_1D_MAP | DISPCNT_BG_ALL_ON | DISPCNT_OBJ_ON);
|
||||
gTasks[taskId].func = Task_IntroWaterDrops;
|
||||
@ -1232,7 +1232,7 @@ static void Task_IntroScrollDownAndShowFlygon(u8 taskId)
|
||||
//fade to white
|
||||
if (gIntroFrameCounter > 1007)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_WHITEALPHA);
|
||||
gTasks[taskId].func = Task_IntroWaitToSetupPart2;
|
||||
}
|
||||
}
|
||||
@ -1291,7 +1291,7 @@ static void Task_IntroStartBikeRide(u8 taskId)
|
||||
spriteId = intro_create_flygon_sprite(-0x40, 0x3C);
|
||||
gSprites[spriteId].callback = SpriteCB_IntroGraphicsFlygon;
|
||||
gTasks[taskId].data[2] = spriteId;
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_WHITEALPHA);
|
||||
SetVBlankCallback(VBlankCB_Intro);
|
||||
gTasks[taskId].data[0] = CreateBicycleAnimationTask(1, 0x4000, 0x400, 0x10);
|
||||
sub_817B150(1);
|
||||
@ -1310,7 +1310,7 @@ static void Task_IntroHandleBikeAndFlygonMovement(u8 taskId)
|
||||
}
|
||||
if (gIntroFrameCounter > 1946)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 8, 0, 16, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 8, 0, 16, RGB_WHITEALPHA);
|
||||
gTasks[taskId].func = Task_IntroWaitToSetupPart3;
|
||||
}
|
||||
if (gIntroFrameCounter == 1109)
|
||||
@ -1554,7 +1554,7 @@ static void Task_IntroLoadPart3Graphics(u8 taskId)
|
||||
PanFadeAndZoomScreen(0x78, 0x50, 0, 0);
|
||||
ResetSpriteData();
|
||||
FreeAllSpritePalettes();
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_WHITEALPHA);
|
||||
SetGpuReg(REG_OFFSET_BG2CNT, BGCNT_PRIORITY(3) | BGCNT_CHARBASE(0) | BGCNT_SCREENBASE(8) | BGCNT_256COLOR | BGCNT_AFF256x256);
|
||||
SetGpuReg(REG_OFFSET_DISPCNT, DISPCNT_MODE_1 | DISPCNT_OBJ_1D_MAP | DISPCNT_BG2_ON | DISPCNT_OBJ_ON);
|
||||
gTasks[taskId].func = Task_IntroSpinAndZoomPokeball;
|
||||
@ -1579,7 +1579,7 @@ static void Task_IntroSpinAndZoomPokeball(u8 taskId)
|
||||
PanFadeAndZoomScreen(0x78, 0x50, 0x10000 / gTasks[taskId].data[1], gTasks[taskId].data[0]);
|
||||
|
||||
if (gIntroFrameCounter == 28)
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_WHITEALPHA);
|
||||
}
|
||||
|
||||
static void Task_IntroWaitToSetupPart3LegendsFight(u8 taskId)
|
||||
@ -1630,7 +1630,7 @@ static void Task_IntroLoadPart3Graphics1(u8 taskId)
|
||||
| DISPCNT_BG2_ON
|
||||
| DISPCNT_OBJ_ON
|
||||
| DISPCNT_WIN0_ON);
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_WHITEALPHA);
|
||||
gTasks[taskId].data[0] = 0;
|
||||
gTasks[taskId].data[1] = 0xFFA0;
|
||||
gTasks[taskId].data[2] = 0xFF51;
|
||||
@ -1749,7 +1749,7 @@ static void Task_IntroGroudonScene(u8 taskId)
|
||||
data[3] = Sin((data[6] & 0xFF00) >> 8, 0x40) + 0x100;
|
||||
if (data[1] == 0x78)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFE, 3, 0, 16, RGB_WHITE);
|
||||
BeginNormalPaletteFade(PALETTES_ALL & ~1, 3, 0, 16, RGB_WHITE);
|
||||
data[3] = 0x100;
|
||||
data[4] = 0;
|
||||
data[0]++;
|
||||
@ -1824,7 +1824,7 @@ static void Task_IntroLoadKyogreScene(u8 taskId)
|
||||
LZDecompressVram(gIntro3KyogreBgTilemap, (void *)(BG_SCREEN_ADDR(28)));
|
||||
LoadCompressedSpriteSheet(gUnknown_085E4C88);
|
||||
LoadSpritePalette(gUnknown_085E4C98);
|
||||
BeginNormalPaletteFade(0xFFFFFFFE, 0, 0x10, 0, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL & ~1, 0, 0x10, 0, RGB_WHITEALPHA);
|
||||
gTasks[taskId].func = Task_IntroKyogreScene;
|
||||
gTasks[taskId].data[0] = 0;
|
||||
gTasks[taskId].data[1] = 0x150;
|
||||
@ -1958,7 +1958,7 @@ static void Task_IntroKyogreScene(u8 taskId)
|
||||
gTasks[taskId].data[1] = Sin(data[6], 0x3C) + 0x58;
|
||||
if (data[6] == 0x40)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFE, 3, 0, 16, RGB_WHITE);
|
||||
BeginNormalPaletteFade(PALETTES_ALL & ~1, 3, 0, 16, RGB_WHITE);
|
||||
data[0]++;
|
||||
}
|
||||
break;
|
||||
@ -2117,14 +2117,14 @@ static void Task_IntroCloudScene(u8 taskId)
|
||||
case 0:
|
||||
if (--data[6] == 0)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFE, 0, 16, 0, RGB_WHITEALPHA);
|
||||
BeginNormalPaletteFade(PALETTES_ALL & ~1, 0, 16, 0, RGB_WHITEALPHA);
|
||||
data[6] = 0x5000;
|
||||
data[0]++;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (data[6] == 0x2800)
|
||||
BeginNormalPaletteFade(0x0000FFFE, 3, 0, 16, RGB(9, 10, 10));
|
||||
BeginNormalPaletteFade(PALETTES_BG & ~1, 3, 0, 16, RGB(9, 10, 10));
|
||||
|
||||
if (data[6] != 0)
|
||||
data[6] -= 0x80;
|
||||
@ -2236,7 +2236,7 @@ static void Task_IntroLoadRayquazaGlowScene(u8 taskId)
|
||||
| DISPCNT_OBJ_ON
|
||||
| DISPCNT_WIN0_ON);
|
||||
gTasks[taskId].func = Task_IntroRayquazaGlowScene_0;
|
||||
BeginNormalPaletteFade(0x0000FFDE, 0, 16, 0, RGB(9, 10, 10));
|
||||
BeginNormalPaletteFade(PALETTES_BG & ~(0x21), 0, 16, 0, RGB(9, 10, 10));
|
||||
gTasks[taskId].data[0] = 0;
|
||||
gTasks[taskId].data[1] = 0xA8;
|
||||
gTasks[taskId].data[2] = -0x10;
|
||||
@ -2383,7 +2383,7 @@ static void Task_IntroRayquazaGlowScene_1(u8 taskId)
|
||||
case 4:
|
||||
if (--data[3] == 0)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_WHITE);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_WHITE);
|
||||
data[0]++;
|
||||
}
|
||||
break;
|
||||
|
@ -594,8 +594,8 @@ void GoToBagMenu(u8 location, u8 pocket, void ( *postExitMenuMainCallback2)())
|
||||
gBagMenu->pocketSwitchDisabled = TRUE;
|
||||
gBagMenu->exitCallback = NULL;
|
||||
gBagMenu->itemOriginalLocation = 0xFF;
|
||||
gBagMenu->pocketScrollArrowsTask = 0xFF;
|
||||
gBagMenu->pocketSwitchArrowsTask = 0xFF;
|
||||
gBagMenu->pocketScrollArrowsTask = TASK_NONE;
|
||||
gBagMenu->pocketSwitchArrowsTask = TASK_NONE;
|
||||
memset(gBagMenu->spriteId, 0xFF, sizeof(gBagMenu->spriteId));
|
||||
memset(gBagMenu->windowPointers, 0xFF, 10);
|
||||
SetMainCallback2(CB2_Bag);
|
||||
@ -720,11 +720,11 @@ bool8 SetupBagMenu(void)
|
||||
gMain.state++;
|
||||
break;
|
||||
case 19:
|
||||
BlendPalettes(0xFFFFFFFF, 16, 0);
|
||||
BlendPalettes(PALETTES_ALL, 16, 0);
|
||||
gMain.state++;
|
||||
break;
|
||||
case 20:
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 16, 0, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
|
||||
gPaletteFade.bufferTransferDisabled = FALSE;
|
||||
gMain.state++;
|
||||
break;
|
||||
@ -971,7 +971,7 @@ void BagMenu_PrintCursor(u8 y, u8 colorIndex)
|
||||
|
||||
void CreatePocketScrollArrowPair(void)
|
||||
{
|
||||
if (gBagMenu->pocketScrollArrowsTask == 0xFF)
|
||||
if (gBagMenu->pocketScrollArrowsTask == TASK_NONE)
|
||||
gBagMenu->pocketScrollArrowsTask = AddScrollIndicatorArrowPairParameterized(
|
||||
SCROLL_ARROW_UP,
|
||||
172,
|
||||
@ -985,26 +985,26 @@ void CreatePocketScrollArrowPair(void)
|
||||
|
||||
void BagDestroyPocketScrollArrowPair(void)
|
||||
{
|
||||
if (gBagMenu->pocketScrollArrowsTask != 0xFF)
|
||||
if (gBagMenu->pocketScrollArrowsTask != TASK_NONE)
|
||||
{
|
||||
RemoveScrollIndicatorArrowPair(gBagMenu->pocketScrollArrowsTask);
|
||||
gBagMenu->pocketScrollArrowsTask = 0xFF;
|
||||
gBagMenu->pocketScrollArrowsTask = TASK_NONE;
|
||||
}
|
||||
BagDestroyPocketSwitchArrowPair();
|
||||
}
|
||||
|
||||
void CreatePocketSwitchArrowPair(void)
|
||||
{
|
||||
if (gBagMenu->pocketSwitchDisabled != TRUE && gBagMenu->pocketSwitchArrowsTask == 0xFF)
|
||||
if (gBagMenu->pocketSwitchDisabled != TRUE && gBagMenu->pocketSwitchArrowsTask == TASK_NONE)
|
||||
gBagMenu->pocketSwitchArrowsTask = AddScrollIndicatorArrowPair(&sBagScrollArrowsTemplate, &gBagPositionStruct.unk6);
|
||||
}
|
||||
|
||||
void BagDestroyPocketSwitchArrowPair(void)
|
||||
{
|
||||
if (gBagMenu->pocketSwitchArrowsTask != 0xFF)
|
||||
if (gBagMenu->pocketSwitchArrowsTask != TASK_NONE)
|
||||
{
|
||||
RemoveScrollIndicatorArrowPair(gBagMenu->pocketSwitchArrowsTask);
|
||||
gBagMenu->pocketSwitchArrowsTask = 0xFF;
|
||||
gBagMenu->pocketSwitchArrowsTask = TASK_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1018,7 +1018,7 @@ void FreeBagItemListBuffers(void)
|
||||
|
||||
void Task_FadeAndCloseBagMenu(u8 taskId)
|
||||
{
|
||||
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 16, RGB_BLACK);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
gTasks[taskId].func = TaskCloseBagMenu_2;
|
||||
}
|
||||
|
||||
@ -2390,7 +2390,7 @@ u8 sub_81AE124(u8 which)
|
||||
u8 BagMenu_AddWindow(u8 which)
|
||||
{
|
||||
u8 *ptr = &gBagMenu->windowPointers[which];
|
||||
if (*ptr == 0xFF)
|
||||
if (*ptr == WINDOW_NONE)
|
||||
{
|
||||
*ptr = AddWindow(&sContextMenuWindowTemplates[which]);
|
||||
DrawStdFrameWithCustomTileAndPalette(*ptr, 0, 1, 14);
|
||||
@ -2402,20 +2402,20 @@ u8 BagMenu_AddWindow(u8 which)
|
||||
void BagMenu_RemoveWindow(u8 which)
|
||||
{
|
||||
u8 *ptr = &gBagMenu->windowPointers[which];
|
||||
if (*ptr != 0xFF)
|
||||
if (*ptr != WINDOW_NONE)
|
||||
{
|
||||
ClearStdWindowAndFrameToTransparent(*ptr, FALSE);
|
||||
ClearWindowTilemap(*ptr);
|
||||
RemoveWindow(*ptr);
|
||||
ScheduleBgCopyTilemapToVram(1);
|
||||
*ptr = 0xFF;
|
||||
*ptr = WINDOW_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
u8 AddItemMessageWindow(u8 which)
|
||||
{
|
||||
u8 *ptr = &gBagMenu->windowPointers[which];
|
||||
if (*ptr == 0xFF)
|
||||
if (*ptr == WINDOW_NONE)
|
||||
*ptr = AddWindow(&sContextMenuWindowTemplates[which]);
|
||||
return *ptr;
|
||||
}
|
||||
@ -2423,14 +2423,14 @@ u8 AddItemMessageWindow(u8 which)
|
||||
void BagMenu_RemoveBagItemMessageWindow(u8 which)
|
||||
{
|
||||
u8 *ptr = &gBagMenu->windowPointers[which];
|
||||
if (*ptr != 0xFF)
|
||||
if (*ptr != WINDOW_NONE)
|
||||
{
|
||||
ClearDialogWindowAndFrameToTransparent(*ptr, FALSE);
|
||||
// This ClearWindowTilemap call is redundant, since ClearDialogWindowAndFrameToTransparent already calls it.
|
||||
ClearWindowTilemap(*ptr);
|
||||
RemoveWindow(*ptr);
|
||||
ScheduleBgCopyTilemapToVram(1);
|
||||
*ptr = 0xFF;
|
||||
*ptr = WINDOW_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user