mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-21 17:55:13 -05:00
Update text bank and enum names
This commit is contained in:
parent
624cb3062e
commit
74fc215b41
|
|
@ -14,7 +14,7 @@ enum ENCOUNTER_TYPE {
|
|||
ENCOUNTER_TYPE_FISHING
|
||||
};
|
||||
|
||||
enum ENCOUNTER_FISHING_ROD_TYPE {
|
||||
enum EncounterFishingRodType {
|
||||
FISHING_TYPE_OLD_ROD = 0,
|
||||
FISHING_TYPE_GOOD_ROD,
|
||||
FISHING_TYPE_SUPER_ROD
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
#include "field_task.h"
|
||||
#include "sys_task_manager.h"
|
||||
|
||||
void *FishingContext_Init(FieldSystem *fieldSystem, u32 heapID, enum ENCOUNTER_FISHING_ROD_TYPE rodType);
|
||||
void *FishingContext_Init(FieldSystem *fieldSystem, u32 heapID, enum EncounterFishingRodType rodType);
|
||||
BOOL FieldTask_Fishing(FieldTask *param0);
|
||||
SysTask *StartFishingTask(FieldSystem *fieldSystem, enum ENCOUNTER_FISHING_ROD_TYPE rodType, BOOL isFishEncountered);
|
||||
SysTask *StartFishingTask(FieldSystem *fieldSystem, enum EncounterFishingRodType rodType, BOOL isFishEncountered);
|
||||
void FishingSysTask_Free(SysTask *param0);
|
||||
|
||||
#endif // POKEPLATINUM_FISHING_H
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ typedef struct WildEncounters {
|
|||
|
||||
void WildEncounters_ReplaceTimedEncounters(const WildEncounters *encounterData, int *param1, int *param2);
|
||||
BOOL WildEncounters_TryWildEncounter(FieldSystem *fieldSystem);
|
||||
BOOL WildEncounters_TryFishingEncounter(FieldSystem *fieldSystem, enum ENCOUNTER_FISHING_ROD_TYPE fishingRodType, FieldBattleDTO **param2);
|
||||
BOOL WildEncounters_TryFishingEncounter(FieldSystem *fieldSystem, enum EncounterFishingRodType fishingRodType, FieldBattleDTO **param2);
|
||||
BOOL WildEncounters_TrySweetScentEncounter(FieldSystem *fieldSystem, FieldTask *param1);
|
||||
BOOL WildEncounters_TryMudEncounter(FieldSystem *fieldSystem, FieldBattleDTO **param1);
|
||||
void CreateWildMon_HoneyTree(FieldSystem *fieldSystem, FieldBattleDTO *param1);
|
||||
|
|
|
|||
|
|
@ -381,19 +381,19 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"id": "FishingMessage_NoNibbles",
|
||||
"id": "CommonStrings_Text_NotEvenANibble",
|
||||
"en_US": "Not even a nibble..."
|
||||
},
|
||||
{
|
||||
"id": "FishingMessage_FishGotAway",
|
||||
"id": "CommonStrings_Text_ThePokemonGotAway",
|
||||
"en_US": "The Pokémon got away..."
|
||||
},
|
||||
{
|
||||
"id": "FishingMessage_TooFast",
|
||||
"id": "CommonStrings_Text_ReeledItInTooQuickly",
|
||||
"en_US": "Reeled it in too quickly..."
|
||||
},
|
||||
{
|
||||
"id": "FishingMessage_CaughtFish",
|
||||
"id": "CommonStrings_Text_LandedAPokemon",
|
||||
"en_US": "Landed a Pokémon!"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ typedef struct {
|
|||
int state;
|
||||
u32 fishingRodItemID;
|
||||
BOOL isFishEncountered;
|
||||
enum ENCOUNTER_FISHING_ROD_TYPE rodType;
|
||||
enum EncounterFishingRodType rodType;
|
||||
FieldBattleDTO *fishEncounterDTO;
|
||||
SysTask *sysTask;
|
||||
} FishingContext;
|
||||
|
|
@ -79,7 +79,7 @@ typedef struct {
|
|||
int counter;
|
||||
int fishDelayCounter;
|
||||
int fishHookedCounter;
|
||||
enum ENCOUNTER_FISHING_ROD_TYPE rodType;
|
||||
enum EncounterFishingRodType rodType;
|
||||
FieldSystem *fieldSystem;
|
||||
UnkStruct_ov101_021D5D90 *unk_24;
|
||||
u8 printerID;
|
||||
|
|
@ -99,14 +99,14 @@ static void FishingTask_Free(FishingTask *fishingTask);
|
|||
static void ShowFishingWindow(FishingTask *fishingTask);
|
||||
static void PrintFishingMessage(FishingTask *fishingTask, u32 messageID);
|
||||
static int TryCloseFishingMessage(FishingTask *fishingTask);
|
||||
static u16 ConvertRodTypeToRodItem(enum ENCOUNTER_FISHING_ROD_TYPE rodType);
|
||||
static u16 ConvertRodTypeToRodItem(enum EncounterFishingRodType rodType);
|
||||
static BOOL IsDoneFishing(SysTask *task);
|
||||
static int HasCaughtFish(SysTask *task);
|
||||
|
||||
BOOL (*const sFishingActions[])(FishingTask *, PlayerAvatar *, MapObject *);
|
||||
const int sRodTypeHookTimingWindow[];
|
||||
|
||||
void *FishingContext_Init(FieldSystem *fieldSystem, u32 heapID, enum ENCOUNTER_FISHING_ROD_TYPE rodType)
|
||||
void *FishingContext_Init(FieldSystem *fieldSystem, u32 heapID, enum EncounterFishingRodType rodType)
|
||||
{
|
||||
FishingContext *fishingContext = Heap_AllocFromHeapAtEnd(heapID, sizeof(FishingContext));
|
||||
|
||||
|
|
@ -164,7 +164,7 @@ BOOL FieldTask_Fishing(FieldTask *taskMan)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
SysTask *StartFishingTask(FieldSystem *fieldSystem, enum ENCOUNTER_FISHING_ROD_TYPE rodType, BOOL isFishEncountered)
|
||||
SysTask *StartFishingTask(FieldSystem *fieldSystem, enum EncounterFishingRodType rodType, BOOL isFishEncountered)
|
||||
{
|
||||
SysTask *task;
|
||||
FishingTask *fishingTask = FishingTask_New(sizeof(FishingTask));
|
||||
|
|
@ -322,7 +322,7 @@ static BOOL FishingTask_ReelFishIn(FishingTask *fishingTask, PlayerAvatar *playe
|
|||
if (fishingTask->counter > 15) {
|
||||
fishingTask->counter = 0;
|
||||
fishingTask->fishingTask = FUNC_FishingTask_WaitCloseFishingMessage;
|
||||
PrintFishingMessage(fishingTask, FishingMessage_CaughtFish);
|
||||
PrintFishingMessage(fishingTask, CommonStrings_Text_LandedAPokemon);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
|
|
@ -349,7 +349,7 @@ static BOOL FishingTask_SetCaughtFish(FishingTask *fishingTask, PlayerAvatar *pl
|
|||
static BOOL FishingTask_ReeledInEarly(FishingTask *fishingTask, PlayerAvatar *playerAvatar, MapObject *playerMapObject)
|
||||
{
|
||||
sub_02062A0C(playerMapObject, MAP_OBJ_UNK_A0_00);
|
||||
PrintFishingMessage(fishingTask, FishingMessage_TooFast);
|
||||
PrintFishingMessage(fishingTask, CommonStrings_Text_ReeledItInTooQuickly);
|
||||
|
||||
fishingTask->counter = 16;
|
||||
fishingTask->fishingTask = FUNC_FishingTask_WaitCloseMessage;
|
||||
|
|
@ -360,7 +360,7 @@ static BOOL FishingTask_ReeledInEarly(FishingTask *fishingTask, PlayerAvatar *pl
|
|||
static BOOL FishingTask_FishGotAway(FishingTask *fishingTask, PlayerAvatar *playerAvatar, MapObject *playerMapObject)
|
||||
{
|
||||
sub_02062A0C(playerMapObject, MAP_OBJ_UNK_A0_00);
|
||||
PrintFishingMessage(fishingTask, FishingMessage_FishGotAway);
|
||||
PrintFishingMessage(fishingTask, CommonStrings_Text_ThePokemonGotAway);
|
||||
|
||||
fishingTask->counter = 16;
|
||||
fishingTask->fishingTask = FUNC_FishingTask_WaitCloseMessage;
|
||||
|
|
@ -394,7 +394,7 @@ static BOOL FishingTask_WaitForNoFish(FishingTask *fishingTask, PlayerAvatar *pl
|
|||
}
|
||||
|
||||
sub_02062A0C(playerMapObject, MAP_OBJ_UNK_A0_00);
|
||||
PrintFishingMessage(fishingTask, FishingMessage_NoNibbles);
|
||||
PrintFishingMessage(fishingTask, CommonStrings_Text_NotEvenANibble);
|
||||
|
||||
fishingTask->counter = 16;
|
||||
fishingTask->fishingTask = FUNC_FishingTask_WaitCloseMessage;
|
||||
|
|
@ -559,7 +559,7 @@ static int TryCloseFishingMessage(FishingTask *fishingTask)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
static u16 ConvertRodTypeToRodItem(enum ENCOUNTER_FISHING_ROD_TYPE rodType)
|
||||
static u16 ConvertRodTypeToRodItem(enum EncounterFishingRodType rodType)
|
||||
{
|
||||
switch (rodType) {
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -377,7 +377,7 @@ BOOL WildEncounters_TryWildEncounter(FieldSystem *fieldSystem)
|
|||
return gettingEncounter;
|
||||
}
|
||||
|
||||
BOOL WildEncounters_TryFishingEncounter(FieldSystem *fieldSystem, enum ENCOUNTER_FISHING_ROD_TYPE fishingRodType, FieldBattleDTO **battleParams)
|
||||
BOOL WildEncounters_TryFishingEncounter(FieldSystem *fieldSystem, enum EncounterFishingRodType fishingRodType, FieldBattleDTO **battleParams)
|
||||
{
|
||||
EncounterSlot encounterTable[MAX_GRASS_ENCOUNTERS];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user