mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 12:14:20 +01:00
52db3ad5aa
* 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
112 lines
4.3 KiB
C
112 lines
4.3 KiB
C
#ifndef GUARD_FLAGS_H
|
|
#define GUARD_FLAGS_H
|
|
|
|
#define TRAINER_FLAG_START 0x500
|
|
#define TRAINERS_FLAG_NO 0x356
|
|
#define CODE_FLAGS (TRAINER_FLAG_START + TRAINERS_FLAG_NO + 0xA) // 0x860
|
|
|
|
// SYSTEM FLAGS
|
|
|
|
#define SYS_POKEMON_GET CODE_FLAGS + 0
|
|
#define SYS_POKEDEX_GET CODE_FLAGS + 1
|
|
#define SYS_POKENAV_GET CODE_FLAGS + 2
|
|
// third one appears unused
|
|
#define SYS_GAME_CLEAR CODE_FLAGS + 4
|
|
#define SYS_CHAT_USED CODE_FLAGS + 5
|
|
#define SYS_HIPSTER_MEET CODE_FLAGS + 6
|
|
|
|
// badges
|
|
#define BADGE01_GET CODE_FLAGS + 7
|
|
#define BADGE02_GET CODE_FLAGS + 8
|
|
#define BADGE03_GET CODE_FLAGS + 9
|
|
#define BADGE04_GET CODE_FLAGS + 0xA
|
|
#define BADGE05_GET CODE_FLAGS + 0xB
|
|
#define BADGE06_GET CODE_FLAGS + 0xC
|
|
#define BADGE07_GET CODE_FLAGS + 0xD
|
|
#define BADGE08_GET CODE_FLAGS + 0xE
|
|
|
|
// cities and towns
|
|
#define FLAG_VISITED_LITTLEROOT_TOWN CODE_FLAGS + 0xF
|
|
#define FLAG_VISITED_OLDALE_TOWN CODE_FLAGS + 0x10
|
|
#define FLAG_VISITED_DEWFORD_TOWN CODE_FLAGS + 0x11
|
|
#define FLAG_VISITED_LAVARIDGE_TOWN CODE_FLAGS + 0x12
|
|
#define FLAG_VISITED_FALLARBOR_TOWN CODE_FLAGS + 0x13
|
|
#define FLAG_VISITED_VERDANTURF_TOWN CODE_FLAGS + 0x14
|
|
#define FLAG_VISITED_PACIFIDLOG_TOWN CODE_FLAGS + 0x15
|
|
#define FLAG_VISITED_PETALBURG_CITY CODE_FLAGS + 0x16
|
|
#define FLAG_VISITED_SLATEPORT_CITY CODE_FLAGS + 0x17
|
|
#define FLAG_VISITED_MAUVILLE_CITY CODE_FLAGS + 0x18
|
|
#define FLAG_VISITED_RUSTBORO_CITY CODE_FLAGS + 0x19
|
|
#define FLAG_VISITED_FORTREE_CITY CODE_FLAGS + 0x1A
|
|
#define FLAG_VISITED_LILYCOVE_CITY CODE_FLAGS + 0x1B
|
|
#define FLAG_VISITED_MOSSDEEP_CITY CODE_FLAGS + 0x1C
|
|
#define FLAG_VISITED_SOOTOPOLIS_CITY CODE_FLAGS + 0x1D
|
|
#define FLAG_VISITED_EVER_GRANDE_CITY CODE_FLAGS + 0x1E
|
|
|
|
#define SYS_UNKNOWN_880 CODE_FLAGS + 0x20
|
|
|
|
#define SYS_USE_FLASH CODE_FLAGS + 0x28
|
|
#define SYS_USE_STRENGTH CODE_FLAGS + 0x29
|
|
#define SYS_WEATHER_CTRL CODE_FLAGS + 0x2A
|
|
#define SYS_CYCLING_ROAD CODE_FLAGS + 0x2B
|
|
#define SYS_SAFARI_MODE CODE_FLAGS + 0x2C
|
|
#define SYS_CRUISE_MODE CODE_FLAGS + 0x2D
|
|
|
|
#define SYS_TV_HOME CODE_FLAGS + 0x30
|
|
#define SYS_TV_WATCH CODE_FLAGS + 0x31
|
|
#define SYS_TV_START CODE_FLAGS + 0x32
|
|
#define SYS_POPWORD_INPUT CODE_FLAGS + 0x33
|
|
#define SYS_MIX_RECORD CODE_FLAGS + 0x34
|
|
#define SYS_CLOCK_SET CODE_FLAGS + 0x35
|
|
#define SYS_NATIONAL_DEX CODE_FLAGS + 0x36
|
|
#define SYS_CAVE_SHIP CODE_FLAGS + 0x37
|
|
#define SYS_CAVE_WONDER CODE_FLAGS + 0x38
|
|
#define SYS_CAVE_BATTLE CODE_FLAGS + 0x39
|
|
#define SYS_SHOAL_TIDE CODE_FLAGS + 0x3A
|
|
#define SYS_RIBBON_GET CODE_FLAGS + 0x3B
|
|
|
|
#define SYS_PC_LANETTE CODE_FLAGS + 0x4B
|
|
#define SYS_MYSTERY_EVENT_ENABLE CODE_FLAGS + 0x4C
|
|
#define SYS_ENC_UP_ITEM CODE_FLAGS + 0x4D
|
|
#define SYS_ENC_DOWN_ITEM CODE_FLAGS + 0x4E
|
|
#define SYS_BRAILLE_DIG CODE_FLAGS + 0x4F
|
|
#define SYS_BRAILLE_STRENGTH CODE_FLAGS + 0x50
|
|
#define SYS_BRAILLE_WAIT CODE_FLAGS + 0x51
|
|
#define SYS_BRAILLE_FLY CODE_FLAGS + 0x52
|
|
#define SYS_HAS_EON_TICKET CODE_FLAGS + 0x53
|
|
|
|
#define SYS_POKEMON_LEAGUE_FLY CODE_FLAGS + 0x54
|
|
|
|
#define SYS_TV_LATI CODE_FLAGS + 0x5D
|
|
|
|
#define SYS_SHOAL_ITEM CODE_FLAGS + 0x5F
|
|
#define SYS_B_DASH CODE_FLAGS + 0x60 // got Running Shoes
|
|
#define SYS_CTRL_OBJ_DELETE CODE_FLAGS + 0x61
|
|
#define SYS_RESET_RTC_ENABLE CODE_FLAGS + 0x62
|
|
|
|
#define SYS_TOWER_SILVER CODE_FLAGS + 0x64
|
|
#define SYS_TOWER_GOLD CODE_FLAGS + 0x65
|
|
#define SYS_DOME_SILVER CODE_FLAGS + 0x66
|
|
#define SYS_DOME_GOLD CODE_FLAGS + 0x67
|
|
#define SYS_PALACE_SILVER CODE_FLAGS + 0x68
|
|
#define SYS_PALACE_GOLD CODE_FLAGS + 0x69
|
|
#define SYS_ARENA_SILVER CODE_FLAGS + 0x6A
|
|
#define SYS_ARENA_GOLD CODE_FLAGS + 0x6B
|
|
#define SYS_FACTORY_SILVER CODE_FLAGS + 0x6C
|
|
#define SYS_FACTORY_GOLD CODE_FLAGS + 0x6D
|
|
#define SYS_PIKE_SILVER CODE_FLAGS + 0x6E
|
|
#define SYS_PIKE_GOLD CODE_FLAGS + 0x6F
|
|
#define SYS_PYRAMID_SILVER CODE_FLAGS + 0x70
|
|
#define SYS_PYRAMID_GOLD CODE_FLAGS + 0x71
|
|
#define SYS_FRONTIER_PASS CODE_FLAGS + 0x72
|
|
|
|
#define SYS_STORAGE_UNKNOWN_FLAG CODE_FLAGS + 0x77
|
|
|
|
#define SYS_MYSTERY_GIFT_ENABLE CODE_FLAGS + 0x7B
|
|
|
|
// SPECIAL FLAGS (unknown purpose)
|
|
|
|
#define SPECIAL_FLAG_1 0x4001
|
|
|
|
#endif // GUARD_FLAGS_H
|