summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-05-19 14:51:11 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2017-05-19 14:51:11 -0400
commitd1851f99bcd24e1dd51920e9f4a44cebe04d5bb4 (patch)
tree9337daa45cd7068dff6290c3d2be329c1512350e /include
parent00d1e98f5a4f7830b08b37e647092daa19f0a18d (diff)
DoTVShowPokemonTodaySuccessfulCapture
Diffstat (limited to 'include')
-rw-r--r--include/global.h14
-rw-r--r--include/item.h19
2 files changed, 33 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index 4ba4100dd..a437a3b0d 100644
--- a/include/global.h
+++ b/include/global.h
@@ -203,6 +203,19 @@ struct TVShowPokemonToday {
/*0x00*/ u8 var00;
/*0x01*/ u8 var01;
/*0x02*/ u8 language;
+ /*0x03*/ u8 language2;
+ /*0x04*/ u8 nickname[11];
+ /*0x0F*/ u8 ball;
+ /*0x10*/ u16 species;
+ /*0x12*/ u8 var12;
+ /*0x13*/ u8 playerName[8];
+};
+
+
+struct TVShowPokemonTodayFailed {
+ /*0x00*/ u8 var00;
+ /*0x01*/ u8 var01;
+ /*0x02*/ u8 language;
/*0x03*/ u8 pad03[9];
/*0x0c*/ u16 species;
/*0x0e*/ u16 species2;
@@ -331,6 +344,7 @@ typedef union TVShow {
struct TVShowSmartShopper smartshopperShow;
struct TVShowContestWinner contestShow;
struct TVShowPokemonToday pokemonToday;
+ struct TVShowPokemonTodayFailed pokemonTodayFailed;
} TVShow;
struct MailStruct
diff --git a/include/item.h b/include/item.h
index cc917dbc8..47af11940 100644
--- a/include/item.h
+++ b/include/item.h
@@ -1,8 +1,27 @@
#ifndef GUARD_ITEM_H
#define GUARD_ITEM_H
+
typedef void (*ItemUseFunc)(u8);
+struct Item
+{
+ u8 name[14];
+ u16 itemId;
+ u16 price;
+ u8 holdEffect;
+ u8 holdEffectParam;
+ u8 *description;
+ u8 importance;
+ u8 unk19;
+ u8 pocket;
+ u8 type;
+ ItemUseFunc fieldUseFunc;
+ u8 battleUsage;
+ ItemUseFunc battleUseFunc;
+ u8 secondaryId;
+};
+
void CopyItemName(u16 itemId, u8 *string);
bool8 IsBagPocketNonEmpty(u8 pocket);
bool8 CheckBagHasItem(u16 itemId, u16 count);