summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/constants/friend_area.h60
-rw-r--r--include/friend_area.h28
-rw-r--r--include/save.h2
3 files changed, 89 insertions, 1 deletions
diff --git a/include/constants/friend_area.h b/include/constants/friend_area.h
new file mode 100644
index 0000000..3d0a9c5
--- /dev/null
+++ b/include/constants/friend_area.h
@@ -0,0 +1,60 @@
+#define NUM_FRIEND_AREAS 58
+
+#define NONE 0
+#define BOUNTIFUL_SEA 1
+#define TREASURE_SEA 2
+#define SERENE_SEA 3
+#define DEEP_SEA_FLOOR 4
+#define DEEP_SEA_CURRENT 5
+#define SEAFLOOR_CAVE 6
+#define SHALLOW_CAVE 7
+#define MT_DEEPGREEN 8
+#define MT_CLEFT 9
+#define MT_MOONVIEW 10
+#define RAINBOW_PEAK 11
+#define WILD_PLAINS 12
+#define BEAU_PLAINS 13
+#define SKY_BLUE_PLAINS 14
+#define SAFARI 15
+#define SCORCHED_PLAINS 16
+#define SACRED_FIELD 17
+#define MIST_RISE_FOREST 18
+#define FLYAWAY_FOREST 19
+#define OVERGROWN_FOREST 20
+#define ENERGETIC_FOREST 21
+#define MUSHROOM_FOREST 22
+#define HEALING_FOREST 23
+#define TRANSFORM_FOREST 24
+#define SECRETIVE_FOREST 25
+#define RUB_A_DUB_RIVER 26
+#define TADPOLE_POND 27
+#define TURTLESHELL_POND 28
+#define MYSTIC_LAKE 29
+#define WATERFALL_LAKE 30
+#define PEANUT_SWAMP 31
+#define POISON_SWAMP 32
+#define ECHO_CAVE 33
+#define CRYPTIC_CAVE 34
+#define DRAGON_CAVE 35
+#define BOULDER_CAVE 36
+#define JUNGLE 37
+#define DECRPEPIT_LAB 38
+#define MT_DISCIPLINE 39
+#define THUNDER_MEADOW 40
+#define POWER_PLANT 41
+#define CRATER 42
+#define FURNACE_DESERT 43
+#define AGED_CHAMBER_AN 44
+#define AGED_CHAMBER_O_EXCLAIM 45
+#define ANCIENT_RELIC 46
+#define DARKNESS_RIDGE 47
+#define FRIGID_CAVERN 48
+#define ICE_FLOE_BEACH 49
+#define VOLCANIC_PIT 50
+#define STRATOS_LOOKOUT 51
+#define RAVAGED_FIELD 52
+#define MAGNETIC_QUARRY 53
+#define LEGENDARY_ISLAND 54
+#define SOUTHERN_ISLAND 55
+#define ENCLOSED_ISLAND 56
+#define FINAL_ISLAND 57
diff --git a/include/friend_area.h b/include/friend_area.h
new file mode 100644
index 0000000..a1234a7
--- /dev/null
+++ b/include/friend_area.h
@@ -0,0 +1,28 @@
+#ifndef GUARD_FRIEND_AREA_H
+#define GUARD_FRIEND_AREA_H
+
+struct FriendAreaSettings
+{
+ s16 num_pokemon;
+ u8 unlock_condition;
+ // 0 - Shop (Story)
+ // 1 - Shop (Story Post-game)
+ // 2 - Wonder Mail
+ // 3 - Legendary Request (unlocks when lengendary joins)
+ u32 price;
+};
+
+void LoadFriendAreas(void);
+u8 *GetBoughtFriendAreas(void);
+void InitializeFriendAreas(void);
+u8 sub_80923D4(s32 target);
+bool8 HasAllFriendAreas(void);
+bool8 GetFriendAreaStatus(u8 index);
+void UnlockFriendArea(u8 index);
+u32 GetFriendAreaDescription(u8 index);
+u8 GetFriendAreaUnlockCondition(u8 index);
+u32 GetFriendAreaPrice(u8 index);
+const char *GetFriendAreaName(u8 index);
+
+
+#endif
diff --git a/include/save.h b/include/save.h
index 37309cf..29864f1 100644
--- a/include/save.h
+++ b/include/save.h
@@ -17,7 +17,7 @@ struct UnkStruct_203B184 {
/* 0x1C */ u32 unk1C;
/* 0x20 */ u32 unk20;
/* 0x24 */ u8 *unk24;
- /* 0x28 */ u8 *unk28;
+ /* 0x28 */ u8 *BoughtFriendAreas;
/* 0x2C */ u32 unk2C;
/* 0x30 */ struct unkTimeStruct *unk30;
u32 unk34;