pokeemerald/include/contest.h

359 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"
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
};
2020-08-18 17:38:50 +02:00
// Constants for changing in-contest Condition (the stars that appear during appeals)
enum {
CONDITION_NO_CHANGE,
CONDITION_GAIN,
CONDITION_LOSE,
};
2018-05-02 01:47:11 +02:00
struct ContestPokemon
{
2020-08-15 20:33:08 +02:00
u16 species;
u8 nickname[POKEMON_NAME_LENGTH + 1];
u8 trainerName[PLAYER_NAME_LENGTH + 1];
u8 trainerGfxId;
2020-08-21 20:47:55 +02:00
u32 aiFlags;
2020-08-15 20:33:08 +02:00
u8 whichRank:2;
u8 aiPool_Cool:1;
u8 aiPool_Beauty:1;
u8 aiPool_Cute:1;
u8 aiPool_Smart:1;
u8 aiPool_Tough:1;
u16 moves[MAX_MON_MOVES];
u8 cool;
u8 beauty;
u8 cute;
u8 smart;
u8 tough;
u8 sheen;
2020-07-12 02:25:56 +02:00
u8 highestRank;
bool8 gameCleared;
2020-08-18 13:30:18 +02:00
u8 unused[10];
2020-08-15 20:33:08 +02:00
u32 personality;
u32 otId;
2019-03-09 07:38:38 +01:00
};
2018-05-02 01:47:11 +02:00
2021-04-22 20:30:45 +02:00
struct ContestTempSave
2018-05-02 01:47:11 +02:00
{
u16 cachedWindowPalettes[16][16]; // Saved palette data before a move happens?
2021-04-22 20:30:45 +02:00
u16 cachedPlttBufferUnfaded[PLTT_BUFFER_SIZE];
u16 cachedPlttBufferFaded[PLTT_BUFFER_SIZE];
2019-04-03 09:00:06 +02:00
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-08-16 11:52:17 +02:00
u8 unk[CONTESTANT_COUNT]; // never read
bool16 unused1:1;
bool16 unused2:1;
bool16 unused3:1;
bool16 unused4: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;
2020-08-16 11:52:17 +02:00
u8 filler1[4];
2020-08-14 01:10:23 +02:00
u8 judgeAttentionTaskId;
2020-08-16 11:07:44 +02:00
u8 blendTaskId;
2020-08-16 11:52:17 +02:00
u8 filler2;
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-08-16 11:52:17 +02:00
s16 baseAppeal;
s16 appeal;
2020-07-12 02:25:56 +02:00
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
2020-08-21 08:36:48 +02:00
bool8 completedComboFlag:1;
2020-07-12 02:25:56 +02:00
bool8 hasJudgesAttention:1;
bool8 judgesAttentionWasRemoved:1;
2020-08-14 01:10:23 +02:00
bool8 usedComboMove:1;
bool8 completedCombo;
2020-08-15 20:33:08 +02:00
u8 comboAppealBonus;
2020-08-16 11:07:44 +02:00
u8 repeatJam;
2020-07-12 02:25:56 +02:00
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
};
2020-08-15 20:33:08 +02:00
struct ContestAppealMoveResults
2018-05-02 01:47:11 +02:00
{
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];
2020-08-21 20:47:55 +02:00
/*0x10*/ u8 currentAIFlag;
/*0x14*/ u32 aiFlags;
2018-05-02 01:47:11 +02:00
/*0x18*/ s16 scriptResult;
2020-08-21 08:36:48 +02:00
/*0x1A*/ s16 vars[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
};
2020-08-15 20:33:08 +02:00
struct ContestExcitement
2018-05-02 01:47:11 +02:00
{
2020-08-14 01:10:23 +02:00
s8 moveExcitement;
2020-08-15 20:33:08 +02:00
u8 frozen:1;
u8 freezer:3;
s8 excitementAppealBonus;
2018-05-02 01:47:11 +02:00
};
2020-08-15 20:33:08 +02:00
struct ContestGraphicsState
2018-05-02 01:47:11 +02:00
{
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;
};
2020-08-15 20:33:08 +02:00
struct ContestTV
2018-05-02 01:47:11 +02:00
{
2020-08-16 11:07:44 +02:00
u16 appeals[CONTEST_NUM_APPEALS];
s16 move;
u8 winnerFlags;
u8 loserFlags;
2020-08-16 11:52:17 +02:00
bool8 madeAppeal:1;
bool8 madeExcitingAppeal:1;
2018-05-02 01:47:11 +02:00
};
2020-08-15 20:33:08 +02:00
struct ContestUnused
2018-05-02 03:27:24 +02:00
{
2020-08-15 20:33:08 +02:00
u8 filler[12];
2018-05-02 03:27:24 +02:00
};
2017-10-14 16:55:25 +02:00
struct ContestResources
{
2019-04-02 06:35:57 +02:00
struct Contest *contest;
struct ContestantStatus *status;
2020-08-15 20:33:08 +02:00
struct ContestAppealMoveResults *appealResults;
struct ContestAIInfo *aiData;
2020-08-15 20:33:08 +02:00
struct ContestExcitement *excitement;
struct ContestGraphicsState *gfxState;
2020-08-14 01:10:23 +02:00
struct ContestMoveAnimData *moveAnim;
2020-08-15 20:33:08 +02:00
struct ContestTV *tv;
struct ContestUnused * unused;
u8 *contestBgTilemaps[CONTESTANT_COUNT];
2020-08-14 01:10:23 +02:00
void * boxBlinkTiles1;
void * boxBlinkTiles2;
2021-10-04 16:21:03 +02:00
void * animBgTileBuffer;
2017-10-14 16:55:25 +02:00
};
2019-04-02 06:35:57 +02:00
#define eContest (*gContestResources->contest)
#define eContestantStatus (gContestResources->status)
2020-08-15 20:33:08 +02:00
#define eContestAppealResults (*gContestResources->appealResults)
#define eContestAI (*gContestResources->aiData)
2020-08-15 20:33:08 +02:00
#define eContestExcitement (*gContestResources->excitement)
#define eContestGfxState (gContestResources->gfxState)
2020-08-14 01:10:23 +02:00
#define eUnzippedContestAudience_Gfx (gHeap + 0x18000)
#define eContestAudienceFrame2_Gfx (gHeap + 0x19000)
#define eContestDebugMode (gHeap[0x1a000])
2021-04-22 20:30:45 +02:00
#define eContestTempSave (*(struct ContestTempSave *)(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 struct ContestWinner gCurContestWinner;
2021-04-22 02:04:12 +02:00
extern u8 gCurContestWinnerIsForArtist;
extern u8 gCurContestWinnerSaveIdx;
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);
2023-01-07 15:39:56 +01:00
bool8 IsSpeciesNotUnown(u16 species);
2022-06-01 18:41:57 +02:00
bool8 Contest_IsMonsTurnDisabled(u8 contestant);
void SaveLinkContestResults(void);
2022-06-01 18:41:57 +02:00
void SortContestants(bool8 useRanking);
void SetContestantEffectStringID(u8 contestant, u8 effectStringId);
void SetContestantEffectStringID2(u8 contestant, u8 effectStringId);
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);
2021-04-22 02:04:12 +02:00
bool8 SaveContestWinner(u8 rank);
u8 GetContestWinnerSaveIdx(u8 rank, bool8 shift);
2019-01-28 18:13:07 +01:00
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