-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #328 from iriv24/pal-park
Document catching_show (unk_020562F8)
- Loading branch information
Showing
28 changed files
with
465 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"definitions": { | ||
"@CatchingShowPointsCategory": { | ||
"type": "enum", | ||
"values": [ | ||
"CATCHING_SHOW_CATCHING_POINTS", | ||
"CATCHING_SHOW_TIME_POINTS", | ||
"CATCHING_SHOW_TYPE_POINTS", | ||
"CATCHING_SHOW_TOTAL_POINTS" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef POKEPLATINUM_CATCHING_SHOW_H | ||
#define POKEPLATINUM_CATCHING_SHOW_H | ||
|
||
#include "field/field_system_decl.h" | ||
|
||
#include "field_battle_data_transfer.h" | ||
|
||
#define CATCHING_SHOW_MONS 6 | ||
|
||
typedef struct CatchingShowPokemon { | ||
u16 species; | ||
u8 area; | ||
u8 rarity; | ||
u16 catchingPoints; | ||
u8 type1; | ||
u8 type2; | ||
} CatchingShowPokemon; | ||
|
||
typedef struct CatchingShow { | ||
CatchingShowPokemon pokemon[CATCHING_SHOW_MONS]; | ||
u8 caughtMonsOrder[CATCHING_SHOW_MONS]; | ||
int steps; | ||
int currentEncounterIndex; | ||
s64 startTime; | ||
int timePoints; | ||
} CatchingShow; | ||
|
||
void CatchingShow_Start(FieldSystem *fieldSystem); | ||
void CatchingShow_End(FieldSystem *fieldSystem); | ||
BOOL CatchingShow_CheckWildEncounter(FieldSystem *fieldSystem, int playerX, int playerY); | ||
FieldBattleDTO *CatchingShow_GetBattleDTO(FieldSystem *fieldSystem); | ||
void CatchingShow_UpdateBattleResult(FieldSystem *fieldSystem, FieldBattleDTO *dto); | ||
int CatchingShow_GetParkBallCount(FieldSystem *fieldSystem); | ||
int CatchingShow_CalcCatchingPoints(FieldSystem *fieldSystem); | ||
int CatchingShow_GetTimePoints(FieldSystem *fieldSystem); | ||
int CatchingShow_GetTypePoints(FieldSystem *fieldSystem); | ||
|
||
#endif // POKEPLATINUM_CATCHING_SHOW_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.