pokeemerald/include/contest.h

364 lines
10 KiB
C
Raw Normal View History

Decompile TV (#80) * ClearTVShowData * special_0x44 * DoTVShow (nonmatching because align) * DoTVShowBravoTrainerPokemonProfile * Update field names * DoTVShowBravoTrainerBattleTower * Renaming of struct fields * sub_80EBFF4 and UpdateTVScreensOnMap * SetTVMetatilesOnMap * Power buttons for the TV screens on the map * special_0x45 * sub_80EC18C * special_0x4a * ResetGabbyAndTy * GabbyAndTyBeforeInterview * GabbyAndTyAfterInterview * Through IsTVShowInSearchOfTrainersAiring * GabbyAndTyGetLastQuote * GabbyAndTyGetLastBattleTrivia * GabbyAndTySetScriptVarsToFieldObjectLocalIds * InterviewAfter; use TVShow as a precursor for making the individual show structs anonymous * Make TV structs anonymous within the union * Move the TV union to its own subheader * Move TV show enums to the global.tv.h subheader * Funcion renaming * Apply static attributes where able * PutPokemonTodayCaughtOnAir * sub_80EC8A4 * PutPokemonTodayFailedOnTheAir * sub_80EC9E8, sub_80ECA10 * sub_80ECA38 * sub_80ECB00 * Put3CheersForPokeblocksOnTheAir * PutFanClubSpecialOnTheAir * ContestLiveUpdates_BeforeInterview * Other before-interview Contest Live Updates functions * ContestLiveUpdates_BeforeInterview_5 * InterviewAfter_BravoTrainerPokemonProfile * BravoTrainerPokemonProfile_BeforeInterview1 * BravoTrainerPokemonProfile_BeforeInterview2 * Disassemble TV data * Decompile TV data * InterviewAfter_BravoTrainerBattleTowerProfile * SaveRecordedItemPurchasesForTVShow * PutNameRaterShowOnTheAir * StartMassOutbreak * PutLilycoveContestLadyShowOnTheAir * InterviewAfter_FanClubLetter * Rip TV strings * InterviewAfter_RecentHappenings * InterviewAfter_PkmnFanClubOpinions * sub_80ED718 * EndMassOutbreak * sub_80ED888 * sub_80ED8B4 * UpdateMassOutbreakTimeLeft * sub_80ED950 * PutFishingAdviceShowOnTheAir * through sub_80EDA80 * ewram and common syms are now fetched from the object files * BSS symbols are taken from the tv.o file * through sub_80EDC60 * sub_80EDCE8 * sub_80EDD78 * through sub_80EDE84 * nomatching sub_80EDE98 * sub_80EDFB4 * sub_80EE104 * sub_80EE104 * sub_80EE184 * sub_80EE2CC * sub_80EE35C * sub_80EE44C * sub_80EE4DC * sub_80EE5A4 * sub_80EE69C * sub_80EE72C * sub_80EE7C0 * sub_80EE818 * sub_80EE8C8 * sub_80EEA70 * sub_80EEB98 * sub_80EEBF4 * through sub_80EED60 * Functions relating to Pokemon News * sub_80EEF6C * GetPriceReduction * IsPriceDiscounted * sub_80EF120 * through sub_80EF370 * sub_80EF40C * HasMixableShowAlreadyBeenSpawnedWithPlayerID * TV_SortPurchasesByQuantity * FindActiveBroadcastByShowType_SetScriptResult * InterviewBefore * through sub_80EF88C * through sub_80EF93C * through sub_80EFA24 * through TV_BernoulliTrial * sub_80EFB58 * sub_80EFBA4 * sub_80EFBDC * through sub_80EFD98 * ChangePokemonNickname * ChangeBoxPokemonNickname * sub_80EFF9C * through player_id_to_dword * CheckForBigMovieOrEmergencyNewsOnTV * GetMomOrDadStringForTVMessage * sub_80F01E8 * sub_80F0358 * sub_80F049C * TV record mixing functions * sub_80F06D0 * sub_80F0708 nonmatching * through sub_80F0B24 * sub_80F0B64 * through sub_80F0C04 * sub_80F0C7C * sub_80F0D60 * sub_80F0E58 * sub_80F0E84 * through sub_80F0F24 * sub_80F0F64 * sub_80F1208 * sub_80F1254 * sub_80F1290 * sub_80F12A4 * sub_80F14F8 * DoTVShowTodaysSmartShopper * DoTVShowTheNameRaterShow * DoTVShowPokemonTodaySuccessfulCapture * DoTVShowPokemonTodayFailedCapture * DoTVShowPokemonFanClubLetter * DoTVShowRecentHappenings * DoTVShowPokemonFanClubOpinions * DoTVShowPokemonNewsMassOutbreak * DoTVShowPokemonContestLiveUpdates * DoTVShowPokemonBattleUpdate * DoTVShow3CheersForPokeblocks * DoTVShowInSearchOfTrainers * Label GabbyAndTyData fields; remove ddump comments from data/text/tv.inc * DoTVShowPokemonAngler * DoTVShowTheWorldOfMasters; update RAM symbols and field names * Decorate static functions * DoTVShowTodaysRivalTrainer; region map enums * TVDewfordTrendWatcherNetworkTextGroup * DoTVShowHoennTreasureInvestigators * DoTVShowFindThatGamer * DoTVShowBreakingNewsTV * DoTVShowSecretBaseVisit * DoTVShowPokemonLotterWinnerFlashReport * DoTVShowThePokemonBattleSeminar * DoTVShowTrainerFanClubSpecial, DoTVShowTrainerFanClub * DoTVShowSpotTheCuties * DoTVShowPokemonNewsBattleFrontier * DoTVShowWhatsNo1InHoennToday * Helpers for DoTVShowSecretBaseSecrets * DoTVShowSecretBaseSecrets * DoTVShowSafariFanClub * Finish decompilation of tv.s * Some renaming * Rename text group pointers * revoke statis; pokenews enums * Labels are number one * Label all TV struct fields * Make data/text/tv.inc more readable * Split data/text/tv.inc * Rename pokenews text pointers * Frontier Symbol constants; indicate static rodata objects with 's' prefix * Fix leading spaces/tabs F*** CLion sometimes * Fix inconsequential warning
2017-10-13 17:09:36 +02:00
#ifndef GUARD_CONTEST_H
#define GUARD_CONTEST_H
2019-04-03 09:00:06 +02:00
#include "palette.h"
2019-08-18 07:35:30 +02:00
#include "constants/contest.h"
2019-04-04 23:05:46 +02:00
enum
{
CONTEST_DEBUG_MODE_OFF,
// Prints the totalPoints value for each contestant.
CONTEST_DEBUG_MODE_PRINT_POINT_TOTAL,
// Prints the ContestResourcesField1C::unk_C value as a bitstring for each contestant.
CONTEST_DEBUG_MODE_PRINT_UNK_C,
// Prints the ContestResourcesField1C::unk_D value as a bitstring for each contestant.
CONTEST_DEBUG_MODE_PRINT_UNK_D
};
2018-05-02 01:47:11 +02:00
enum
{
CONTEST_STRING_MORE_CONSCIOUS,
CONTEST_STRING_NO_APPEAL,
CONTEST_STRING_SETTLE_DOWN,
CONTEST_STRING_OBLIVIOUS_TO_OTHERS,
CONTEST_STRING_LESS_AWARE,
CONTEST_STRING_STOPPED_CARING,
CONTEST_STRING_STARTLE_ATTEMPT,
CONTEST_STRING_DAZZLE_ATTEMPT,
CONTEST_STRING_JUDGE_LOOK_AWAY2,
CONTEST_STRING_UNNERVE_ATTEMPT,
CONTEST_STRING_NERVOUS,
CONTEST_STRING_UNNERVE_WAITING,
CONTEST_STRING_TAUNT_WELL,
CONTEST_STRING_REGAINED_FORM,
CONTEST_STRING_JAM_WELL,
CONTEST_STRING_HUSTLE_STANDOUT,
CONTEST_STRING_WORK_HARD_UNNOTICED,
CONTEST_STRING_WORK_BEFORE,
CONTEST_STRING_APPEAL_NOT_WELL,
CONTEST_STRING_WORK_PRECEDING,
CONTEST_STRING_APPEAL_NOT_WELL2,
CONTEST_STRING_APPEAL_NOT_SHOWN_WELL,
CONTEST_STRING_APPEAL_SLIGHTLY_WELL,
CONTEST_STRING_APPEAL_PRETTY_WELL,
CONTEST_STRING_APPEAL_EXCELLENTLY,
CONTEST_STRING_APPEAL_DUD,
CONTEST_STRING_APPEAL_NOT_VERY_WELL,
CONTEST_STRING_APPEAL_SLIGHTLY_WELL2,
CONTEST_STRING_APPEAL_PRETTY_WELL2,
CONTEST_STRING_APPEAL_VERY_WELL,
CONTEST_STRING_APPEAL_EXCELLENTLY2,
CONTEST_STRING_SAME_TYPE_GOOD,
CONTEST_STRING_DIFF_TYPE_GOOD,
CONTEST_STRING_STOOD_OUT_AS_MUCH,
CONTEST_STRING_NOT_AS_WELL,
CONTEST_STRING_CONDITION_ROSE,
CONTEST_STRING_HOT_STATUS,
CONTEST_STRING_MOVE_UP_LINE,
CONTEST_STRING_MOVE_BACK_LINE,
CONTEST_STRING_SCRAMBLE_ORDER,
CONTEST_STRING_JUDGE_EXPECTANTLY2,
CONTEST_STRING_WENT_OVER_WELL,
CONTEST_STRING_WENT_OVER_VERY_WELL,
CONTEST_STRING_APPEAL_COMBO_EXCELLENTLY,
CONTEST_STRING_AVERT_GAZE,
CONTEST_STRING_AVOID_SEEING,
CONTEST_STRING_NOT_FAZED,
CONTEST_STRING_LITTLE_DISTRACTED,
CONTEST_STRING_ATTEMPT_STARTLE,
CONTEST_STRING_LOOKED_DOWN,
CONTEST_STRING_TURNED_BACK,
CONTEST_STRING_UTTER_CRY,
CONTEST_STRING_LEAPT_UP,
CONTEST_STRING_TRIPPED_OVER,
CONTEST_STRING_MESSED_UP2,
CONTEST_STRING_FAILED_TARGET_NERVOUS,
CONTEST_STRING_FAILED_ANYONE_NERVOUS,
CONTEST_STRING_IGNORED,
CONTEST_STRING_NO_CONDITION_IMPROVE,
CONTEST_STRING_BAD_CONDITION_WEAK_APPEAL,
CONTEST_STRING_UNAFFECTED,
CONTEST_STRING_ATTRACTED_ATTENTION,
CONTEST_STRING_NONE = 255
};
2019-03-10 04:54:17 +01:00
enum {
CONTEST_FILTER_NONE,
CONTEST_FILTER_NO_POSTGAME,
CONTEST_FILTER_ONLY_POSTGAME
};
2018-05-02 01:47:11 +02:00
struct ContestPokemon
{
/*0x00*/ u16 species;
/*0x02*/ u8 nickname[POKEMON_NAME_LENGTH + 1];
2019-03-09 07:38:38 +01:00
/*0x0D*/ u8 trainerName[PLAYER_NAME_LENGTH + 1];
2018-05-02 01:47:11 +02:00
/*0x15*/ u8 trainerGfxId;
2019-04-02 04:09:14 +02:00
/*0x18*/ u32 aiChecks;
2019-03-09 07:38:38 +01:00
/*0x1C*/ u8 whichRank:2; // 0x1 0x2
u8 aiPool_Cool:1; // 0x4
u8 aiPool_Beauty:1; // 0x8
u8 aiPool_Cute:1; // 0x10
u8 aiPool_Smart:1; // 0x20
u8 aiPool_Tough:1; // 0x40
2019-09-08 17:53:48 +02:00
/*0x1E*/ u16 moves[MAX_MON_MOVES]; // moves
2018-05-02 01:47:11 +02:00
/*0x26*/ u8 cool; // cool
/*0x27*/ u8 beauty; // beauty
/*0x28*/ u8 cute; // cute
/*0x29*/ u8 smart; // smart
/*0x2A*/ u8 tough; // tough
/*0x2B*/ u8 sheen; // sheen
2020-07-12 02:25:56 +02:00
u8 highestRank;
bool8 gameCleared;
/*0x2C*/ u8 unk2C[10];
2018-05-02 01:47:11 +02:00
/*0x38*/ u32 personality; // personality
/*0x3C*/ u32 otId; // otId
2019-03-09 07:38:38 +01:00
};
2018-05-02 01:47:11 +02:00
2019-04-02 06:35:57 +02:00
struct Shared1A004
2018-05-02 01:47:11 +02:00
{
u16 cachedWindowPalettes[16][16]; // Saved palette data before a move happens?
2019-04-03 09:00:06 +02:00
u16 unk18204[PLTT_BUFFER_SIZE]; // Saved copy of gPlttBufferUnfaded
u16 unk18604[PLTT_BUFFER_SIZE]; // Saved copy of gPlttBufferFaded
u8 savedJunk[0x800];
2018-05-02 01:47:11 +02:00
};
2020-08-14 01:10:23 +02:00
struct ContestMoveAnimData
2017-10-14 16:55:25 +02:00
{
u16 species;
2020-08-14 01:10:23 +02:00
u16 targetSpecies;
bool8 hasTargetAnim:1;
u8 contestant;
u32 personality;
u32 otId;
u32 targetPersonality;
2017-10-14 16:55:25 +02:00
};
2018-05-02 01:47:11 +02:00
struct Contest
{
2020-07-12 02:25:56 +02:00
u8 playerMoveChoice;
2020-07-24 06:14:53 +02:00
u8 appealNumber;
2020-07-12 02:25:56 +02:00
u8 unused2[CONTESTANT_COUNT];
bool16 unk1920A_0:1; // Task active flags?
bool16 unk1920A_1:1;
bool16 unk1920A_2:1;
bool16 unk1920A_3:1;
2020-08-14 01:10:23 +02:00
bool16 waitForJudgeSpeechBubble:1;
2020-07-12 02:25:56 +02:00
bool16 isShowingApplauseMeter:1;
bool16 applauseMeterIsMoving:1;
2020-08-14 01:10:23 +02:00
bool16 animatingAudience:1;
bool16 waitForAudienceBlend:1;
2020-07-12 02:25:56 +02:00
bool16 sliderHeartsAnimating:1; // When the slider heart is appearing/disappearing
2020-08-14 01:10:23 +02:00
bool16 waitForLink:1;
2020-07-12 02:25:56 +02:00
u8 mainTaskId;
u8 unk1920D[4];
2020-08-14 01:10:23 +02:00
u8 judgeAttentionTaskId;
2020-07-12 02:25:56 +02:00
u8 unk19212;
u8 filler19213;
2020-07-24 06:14:53 +02:00
u8 turnNumber;
u8 currentContestant;
2020-08-14 01:10:23 +02:00
u8 judgeSpeechBubbleSpriteId;
2020-07-12 02:25:56 +02:00
s8 applauseLevel;
u8 prevTurnOrder[CONTESTANT_COUNT];
2020-08-14 01:10:23 +02:00
u32 unusedRng;
2020-07-24 06:14:53 +02:00
u16 moveHistory[CONTEST_NUM_APPEALS][CONTESTANT_COUNT];
u8 excitementHistory[CONTEST_NUM_APPEALS][CONTESTANT_COUNT];
u8 applauseMeterSpriteId;
2020-07-12 02:25:56 +02:00
u8 contestSetupState;
2020-08-14 01:10:23 +02:00
u8 moveAnimTurnCount;
2018-05-02 01:47:11 +02:00
};
struct ContestantStatus
{
2020-07-12 02:25:56 +02:00
s16 appeal1; // move appeal?
s16 appeal2; // final appeal after end of turn, maybe?
s16 pointTotal;
u16 currMove;
u16 prevMove;
u8 moveCategory;
u8 ranking:2;
2020-08-14 01:10:23 +02:00
u8 unused1:2;
2018-05-02 01:47:11 +02:00
u8 moveRepeatCount:3;
2020-07-12 02:25:56 +02:00
bool8 noMoreTurns:1; // used a one-time move?
bool8 nervous:1;
2018-05-02 01:47:11 +02:00
u8 numTurnsSkipped:2;
2020-07-12 02:25:56 +02:00
s8 condition;
u8 jam;
u8 jamReduction;
2018-05-02 01:47:11 +02:00
// Flags set by move effect
2020-07-12 02:25:56 +02:00
bool8 resistant:1;
bool8 immune:1;
bool8 moreEasilyStartled:1;
bool8 usedRepeatableMove:1;
2018-05-02 01:47:11 +02:00
u8 conditionMod:2; // 1: just raised condition; 2: appeal greatly improved by condition
u8 turnOrderMod:2; // 1: defined; 2: random
2020-07-12 02:25:56 +02:00
u8 turnOrderModAction:2; // 1: made first; 2: made last; 3: made random
bool8 turnSkipped:1;
bool8 exploded:1;
bool8 overrideCategoryExcitementMod:1;
bool8 appealTripleCondition:1;
2018-05-02 01:47:11 +02:00
2020-07-12 02:25:56 +02:00
u8 jamSafetyCount;
u8 effectStringId; // status action?
u8 effectStringId2;
bool8 repeatedMove:1;
2020-08-14 01:10:23 +02:00
bool8 unused2:1;
2020-07-12 02:25:56 +02:00
bool8 repeatedPrevMove:1; // never read
bool8 unk15_3:1;
bool8 hasJudgesAttention:1;
bool8 judgesAttentionWasRemoved:1;
2020-08-14 01:10:23 +02:00
bool8 usedComboMove:1;
bool8 completedCombo;
2020-07-12 02:25:56 +02:00
u8 unk17;
u8 unk18;
u8 nextTurnOrder; // turn position
u8 attentionLevel; // How much the Pokemon "stood out"
2020-08-14 01:10:23 +02:00
u8 contestantAnimTarget;
2018-05-02 01:47:11 +02:00
};
struct UnknownContestStruct7
{
u8 turnOrder[CONTESTANT_COUNT];
2018-05-02 01:47:11 +02:00
s16 jam;
s16 jam2;
u8 jamQueue[5];
u8 unnervedPokes[CONTESTANT_COUNT];
2018-05-02 01:47:11 +02:00
u8 contestant;
};
2018-08-15 11:50:18 +02:00
struct ContestAIInfo
{
2018-05-02 01:47:11 +02:00
/*0x00*/ u8 aiState;
2019-04-02 04:09:14 +02:00
/*0x02*/ u16 nextMove;
/*0x04*/ u8 nextMoveIndex;
2020-07-12 02:25:56 +02:00
/*0x05*/ u8 moveScores[MAX_MON_MOVES];
2018-05-02 01:47:11 +02:00
/*0x09*/ u8 aiAction;
2020-07-12 02:25:56 +02:00
/*0x0A*/ u8 filler[6];
2019-04-02 04:09:14 +02:00
/*0x10*/ u8 currentAICheck;
/*0x14*/ u32 aiChecks;
2018-05-02 01:47:11 +02:00
/*0x18*/ s16 scriptResult;
/*0x1A*/ s16 scriptArr[3];
2018-08-15 11:50:18 +02:00
/*0x20*/ const u8 *stack[8];
/*0x40*/ u8 stackSize;
/*0x41*/ u8 contestantId;
2018-05-02 01:47:11 +02:00
};
struct UnknownContestStruct5
{
2020-08-14 01:10:23 +02:00
s8 moveExcitement;
2018-05-02 01:47:11 +02:00
u8 excitementFrozen:1;
u8 excitementFreezer:3;
s8 unk2;
};
struct UnknownContestStruct4
{
2020-07-12 02:25:56 +02:00
u8 sliderHeartSpriteId;
u8 nextTurnSpriteId;
2020-08-14 01:10:23 +02:00
bool8 sliderUpdating:1;
bool8 boxBlinking:1;
bool8 updatingAppealHearts:1;
2018-05-02 01:47:11 +02:00
};
2020-08-14 01:10:23 +02:00
struct ContestFinalStandings
{
2020-08-14 01:10:23 +02:00
s32 totalPoints;
s32 round1Points;
s32 random;
s32 contestant;
};
2018-05-02 01:47:11 +02:00
struct ContestResourcesField1C
{
2019-01-28 18:13:07 +01:00
u16 unk0[5];
s16 unkA;
u8 unkC;
u8 unkD;
u8 unkE_1:1;
u8 unkE_2:1;
2018-05-02 01:47:11 +02:00
};
2018-05-02 03:27:24 +02:00
struct ContestResourcesField20
{
u8 filler_00[0x0C];
};
2017-10-14 16:55:25 +02:00
struct ContestResources
{
2019-04-02 06:35:57 +02:00
struct Contest *contest;
struct ContestantStatus *status;
2018-05-02 01:47:11 +02:00
struct UnknownContestStruct7 *field_8;
struct ContestAIInfo *aiData;
2018-05-02 01:47:11 +02:00
struct UnknownContestStruct5 *field_10;
2018-05-02 03:27:24 +02:00
struct UnknownContestStruct4 *field_14;
2020-08-14 01:10:23 +02:00
struct ContestMoveAnimData *moveAnim;
2018-05-02 01:47:11 +02:00
struct ContestResourcesField1C * field_1c;
2018-05-02 03:27:24 +02:00
struct ContestResourcesField20 * field_20;
u8 * contestBgTilemaps[CONTESTANT_COUNT];
2020-08-14 01:10:23 +02:00
void * boxBlinkTiles1;
void * boxBlinkTiles2;
2018-05-02 03:27:24 +02:00
void * field_3c;
2017-10-14 16:55:25 +02:00
};
2019-04-02 06:35:57 +02:00
#define eContest (*gContestResources->contest)
#define eContestantStatus (gContestResources->status)
2019-04-02 06:35:57 +02:00
#define eContestResources8 (*gContestResources->field_8)
#define eContestAI (*gContestResources->aiData)
2019-04-02 06:35:57 +02:00
#define eContestResources10 (*gContestResources->field_10)
#define eContestResources14 (*gContestResources->field_14)
2020-08-14 01:10:23 +02:00
#define eUnzippedContestAudience_Gfx (gHeap + 0x18000)
#define eContestAudienceFrame2_Gfx (gHeap + 0x19000)
#define eContestDebugMode (gHeap[0x1a000])
2019-04-02 06:35:57 +02:00
#define eUnknownHeap1A004 (*(struct Shared1A004 *)(gHeap + 0x1a004))
2018-05-02 01:47:11 +02:00
2019-11-11 03:54:00 +01:00
extern struct ContestPokemon gContestMons[CONTESTANT_COUNT];
2020-07-24 06:14:53 +02:00
extern s16 gContestMonRound1Points[CONTESTANT_COUNT];
2020-06-17 23:48:20 +02:00
extern s16 gContestMonTotalPoints[CONTESTANT_COUNT];
2020-07-24 06:14:53 +02:00
extern s16 gContestMonAppealPointTotals[CONTESTANT_COUNT];
2020-06-17 23:48:20 +02:00
extern s16 gContestMonRound2Points[CONTESTANT_COUNT];
2019-11-11 03:54:00 +01:00
extern u8 gContestFinalStandings[CONTESTANT_COUNT];
2019-01-28 18:13:07 +01:00
extern u8 gContestMonPartyIndex;
extern u8 gContestPlayerMonIndex;
2019-11-11 03:54:00 +01:00
extern u8 gContestantTurnOrder[CONTESTANT_COUNT];
extern u8 gLinkContestFlags;
2020-08-13 09:09:47 +02:00
extern u8 gContestLinkLeaderIndex;
2019-01-28 18:13:07 +01:00
extern u16 gSpecialVar_ContestCategory;
extern u16 gSpecialVar_ContestRank;
extern u8 gNumLinkContestPlayers;
extern u8 gHighestRibbonRank;
extern struct ContestResources *gContestResources;
extern u8 sContestBgCopyFlags;
extern struct ContestWinner gCurContestWinner;
2019-02-02 12:44:00 +01:00
extern u8 gUnknown_02039F5C;
extern u8 gUnknown_02039F5D;
2018-05-02 14:43:27 +02:00
extern u32 gContestRngValue;
2019-01-28 18:13:07 +01:00
// contest.c
void ResetLinkContestBoolean(void);
2017-10-14 23:37:44 +02:00
void LoadContestBgAfterMoveAnim(void);
void CB2_StartContest(void);
2020-07-12 02:25:56 +02:00
void CreateContestMonFromParty(u8 partyIndex);
2020-07-24 06:14:53 +02:00
void SetContestants(u8 contestType, u8 rank);
void SetLinkAIContestants(u8 contestType, u8 rank, bool32 isPostgame);
2019-10-18 01:22:03 +02:00
u8 GetContestEntryEligibility(struct Pokemon *pkmn);
2020-08-13 09:09:47 +02:00
void CalculateRound1Points(u8 contestCategory);
2019-01-28 18:13:07 +01:00
bool8 IsSpeciesNotUnown(u16 species);
bool8 Contest_IsMonsTurnDisabled(u8 a);
void SaveLinkContestResults(void);
void SortContestants(bool8 a);
2018-08-12 23:20:17 +02:00
void SetContestantEffectStringID(u8 a, u8 b);
void SetContestantEffectStringID2(u8 a, u8 b);
2019-01-28 18:13:07 +01:00
void SetStartledString(u8 contestant, u8 jam);
2018-08-12 23:20:17 +02:00
void MakeContestantNervous(u8 p);
2019-01-28 18:13:07 +01:00
s8 Contest_GetMoveExcitement(u16 move);
2020-08-14 01:10:23 +02:00
bool8 IsContestantAllowedToCombo(u8 contestant);
2019-01-28 18:13:07 +01:00
void Contest_PrintTextToBg0WindowAt(u32 windowId, u8 *currChar, s32 x, s32 y, s32 fontId);
void ResetContestLinkResults(void);
bool8 sub_80DEDA8(u8 a);
u8 sub_80DEFA8(u8 a, u8 b);
void ClearContestWinnerPicsInContestHall(void);
2020-07-12 02:25:56 +02:00
void StripPlayerAndMonNamesForLinkContest(struct ContestPokemon *mon, s32 language);
Decompile TV (#80) * ClearTVShowData * special_0x44 * DoTVShow (nonmatching because align) * DoTVShowBravoTrainerPokemonProfile * Update field names * DoTVShowBravoTrainerBattleTower * Renaming of struct fields * sub_80EBFF4 and UpdateTVScreensOnMap * SetTVMetatilesOnMap * Power buttons for the TV screens on the map * special_0x45 * sub_80EC18C * special_0x4a * ResetGabbyAndTy * GabbyAndTyBeforeInterview * GabbyAndTyAfterInterview * Through IsTVShowInSearchOfTrainersAiring * GabbyAndTyGetLastQuote * GabbyAndTyGetLastBattleTrivia * GabbyAndTySetScriptVarsToFieldObjectLocalIds * InterviewAfter; use TVShow as a precursor for making the individual show structs anonymous * Make TV structs anonymous within the union * Move the TV union to its own subheader * Move TV show enums to the global.tv.h subheader * Funcion renaming * Apply static attributes where able * PutPokemonTodayCaughtOnAir * sub_80EC8A4 * PutPokemonTodayFailedOnTheAir * sub_80EC9E8, sub_80ECA10 * sub_80ECA38 * sub_80ECB00 * Put3CheersForPokeblocksOnTheAir * PutFanClubSpecialOnTheAir * ContestLiveUpdates_BeforeInterview * Other before-interview Contest Live Updates functions * ContestLiveUpdates_BeforeInterview_5 * InterviewAfter_BravoTrainerPokemonProfile * BravoTrainerPokemonProfile_BeforeInterview1 * BravoTrainerPokemonProfile_BeforeInterview2 * Disassemble TV data * Decompile TV data * InterviewAfter_BravoTrainerBattleTowerProfile * SaveRecordedItemPurchasesForTVShow * PutNameRaterShowOnTheAir * StartMassOutbreak * PutLilycoveContestLadyShowOnTheAir * InterviewAfter_FanClubLetter * Rip TV strings * InterviewAfter_RecentHappenings * InterviewAfter_PkmnFanClubOpinions * sub_80ED718 * EndMassOutbreak * sub_80ED888 * sub_80ED8B4 * UpdateMassOutbreakTimeLeft * sub_80ED950 * PutFishingAdviceShowOnTheAir * through sub_80EDA80 * ewram and common syms are now fetched from the object files * BSS symbols are taken from the tv.o file * through sub_80EDC60 * sub_80EDCE8 * sub_80EDD78 * through sub_80EDE84 * nomatching sub_80EDE98 * sub_80EDFB4 * sub_80EE104 * sub_80EE104 * sub_80EE184 * sub_80EE2CC * sub_80EE35C * sub_80EE44C * sub_80EE4DC * sub_80EE5A4 * sub_80EE69C * sub_80EE72C * sub_80EE7C0 * sub_80EE818 * sub_80EE8C8 * sub_80EEA70 * sub_80EEB98 * sub_80EEBF4 * through sub_80EED60 * Functions relating to Pokemon News * sub_80EEF6C * GetPriceReduction * IsPriceDiscounted * sub_80EF120 * through sub_80EF370 * sub_80EF40C * HasMixableShowAlreadyBeenSpawnedWithPlayerID * TV_SortPurchasesByQuantity * FindActiveBroadcastByShowType_SetScriptResult * InterviewBefore * through sub_80EF88C * through sub_80EF93C * through sub_80EFA24 * through TV_BernoulliTrial * sub_80EFB58 * sub_80EFBA4 * sub_80EFBDC * through sub_80EFD98 * ChangePokemonNickname * ChangeBoxPokemonNickname * sub_80EFF9C * through player_id_to_dword * CheckForBigMovieOrEmergencyNewsOnTV * GetMomOrDadStringForTVMessage * sub_80F01E8 * sub_80F0358 * sub_80F049C * TV record mixing functions * sub_80F06D0 * sub_80F0708 nonmatching * through sub_80F0B24 * sub_80F0B64 * through sub_80F0C04 * sub_80F0C7C * sub_80F0D60 * sub_80F0E58 * sub_80F0E84 * through sub_80F0F24 * sub_80F0F64 * sub_80F1208 * sub_80F1254 * sub_80F1290 * sub_80F12A4 * sub_80F14F8 * DoTVShowTodaysSmartShopper * DoTVShowTheNameRaterShow * DoTVShowPokemonTodaySuccessfulCapture * DoTVShowPokemonTodayFailedCapture * DoTVShowPokemonFanClubLetter * DoTVShowRecentHappenings * DoTVShowPokemonFanClubOpinions * DoTVShowPokemonNewsMassOutbreak * DoTVShowPokemonContestLiveUpdates * DoTVShowPokemonBattleUpdate * DoTVShow3CheersForPokeblocks * DoTVShowInSearchOfTrainers * Label GabbyAndTyData fields; remove ddump comments from data/text/tv.inc * DoTVShowPokemonAngler * DoTVShowTheWorldOfMasters; update RAM symbols and field names * Decorate static functions * DoTVShowTodaysRivalTrainer; region map enums * TVDewfordTrendWatcherNetworkTextGroup * DoTVShowHoennTreasureInvestigators * DoTVShowFindThatGamer * DoTVShowBreakingNewsTV * DoTVShowSecretBaseVisit * DoTVShowPokemonLotterWinnerFlashReport * DoTVShowThePokemonBattleSeminar * DoTVShowTrainerFanClubSpecial, DoTVShowTrainerFanClub * DoTVShowSpotTheCuties * DoTVShowPokemonNewsBattleFrontier * DoTVShowWhatsNo1InHoennToday * Helpers for DoTVShowSecretBaseSecrets * DoTVShowSecretBaseSecrets * DoTVShowSafariFanClub * Finish decompilation of tv.s * Some renaming * Rename text group pointers * revoke statis; pokenews enums * Labels are number one * Label all TV struct fields * Make data/text/tv.inc more readable * Split data/text/tv.inc * Rename pokenews text pointers * Frontier Symbol constants; indicate static rodata objects with 's' prefix * Fix leading spaces/tabs F*** CLion sometimes * Fix inconsequential warning
2017-10-13 17:09:36 +02:00
#endif //GUARD_CONTEST_H