Skip to content

Commit 7702b9f

Browse files
committed
Merge branch 'dev' into release
2 parents 8a2a43a + 85f29bc commit 7702b9f

File tree

7 files changed

+28
-3
lines changed

7 files changed

+28
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ To build it, use [LunarIPS](https://fusoya.eludevisibility.org/lips/) and your l
99

1010
![Example](https://i.imgur.com/KSMvc0h.png)
1111

12+
## v2.0.0
13+
- Secret Bases Able to Have 36 Decorations (Was 16), But Only a Max Base count of 16 (Was 20).
14+
- This breaks compatability with sharing Secret Bases with the vanilla game.
15+
1216
## v1.6.0
1317
- [Make Multiple Secret Bases](https://github.com/pret/pokeemerald/wiki/Make-Multiple-Secret-Bases)
1418
- When putting a Pokémon into a new ball, the old ball gets put back into the bag if it's not a Thief Ball nor Master Ball.

graphics/intro/copyright.bin

0 Bytes
Binary file not shown.

graphics/intro/copyright.png

0 Bytes
Loading

include/constants/global.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#define POKEBLOCKS_COUNT 40
4646
#define OBJECT_EVENTS_COUNT 16
4747
#define MAIL_COUNT (10 + PARTY_SIZE)
48-
#define SECRET_BASES_COUNT 20
48+
#define SECRET_BASES_COUNT 16
4949
#define TV_SHOWS_COUNT 25
5050
#define POKE_NEWS_COUNT 16
5151
#define PC_ITEMS_COUNT 50
@@ -58,7 +58,8 @@
5858
#define BAG_BATTLEITEMS_COUNT 30
5959
#define BAG_TREASURES_COUNT 18
6060
#define OBJECT_EVENT_TEMPLATES_COUNT 64
61-
#define DECOR_MAX_SECRET_BASE 16
61+
#define DECOR_MAX_SECRET_BASE 36
62+
#define DECOR_MAX_SECRET_DOLLS 14 // 16 objects allowed. One for the follower. One more for the player.
6263
#define DECOR_MAX_PLAYERS_HOUSE 12
6364
#define APPRENTICE_COUNT 4
6465
#define APPRENTICE_MAX_QUESTIONS 9

include/strings.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ extern const u8 gText_GoBackPrevMenu[];
128128
extern const u8 gText_CantPlaceInRoom[];
129129
extern const u8 gText_NoMoreDecorations[];
130130
extern const u8 gText_NoMoreDecorations2[];
131+
extern const u8 gText_NoMoreDolls[];
131132
extern const u8 gText_InUseAlready[];
132133
extern const u8 gText_ContinuelDecorating[];
133134
extern const u8 gText_PlaceItHere[];

src/decoration.c

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,18 @@ static bool8 HasDecorationSpace(void)
13161316
return FALSE;
13171317
}
13181318

1319+
static u16 GetSpriteAmount(void)
1320+
{
1321+
u16 i;
1322+
u16 sprites = 0;
1323+
for (i = 0; i < sDecorationContext.size; i++)
1324+
{
1325+
if (gDecorations[sDecorationContext.items[i]].permission == DECORPERM_SPRITE)
1326+
sprites++;
1327+
}
1328+
return sprites;
1329+
}
1330+
13191331
static void DecorationItemsMenuAction_AttemptPlace(u8 taskId)
13201332
{
13211333
if (sDecorationContext.isPlayerRoom == TRUE && sCurDecorationCategory != DECORCAT_DOLL && sCurDecorationCategory != DECORCAT_CUSHION)
@@ -1325,7 +1337,13 @@ static void DecorationItemsMenuAction_AttemptPlace(u8 taskId)
13251337
}
13261338
else if (IsSelectedDecorInThePC() == TRUE)
13271339
{
1328-
if (HasDecorationSpace() == TRUE)
1340+
if (GetSpriteAmount() >= DECOR_MAX_SECRET_DOLLS)
1341+
{
1342+
ConvertIntToDecimalStringN(gStringVar1, DECOR_MAX_SECRET_DOLLS, STR_CONV_MODE_RIGHT_ALIGN, 2);
1343+
StringExpandPlaceholders(gStringVar4, gText_NoMoreDolls);
1344+
DisplayItemMessageOnField(taskId, gStringVar4, ReturnToDecorationItemsAfterInvalidSelection);
1345+
}
1346+
else if (HasDecorationSpace() == TRUE)
13291347
{
13301348
FadeScreen(FADE_TO_BLACK, 0);
13311349
RemoveFollowingPokemon();

src/strings.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ const u8 gText_ContinuelDecorating[] = _("Continue decorating?");
576576
const u8 gText_InUseAlready[] = _("This is in use already.");
577577
const u8 gText_NoMoreDecorations[] = _("No more decorations can be placed.\nThe most that can be placed are {STR_VAR_1}.");
578578
const u8 gText_NoMoreDecorations2[] = _("No more decorations can be placed.\nThe most that can be placed are {STR_VAR_1}.");
579+
const u8 gText_NoMoreDolls[] = _("No more dolls can be placed.\nThe most that can be placed are {STR_VAR_1}.");
579580
const u8 gText_MustBePlacedOnDesk[] = _("This can't be placed here.\nIt must be on a DESK, etc."); // Unused
580581
const u8 gText_CantPlaceInRoom[] = _("This decoration can't be placed in\nyour own room.");
581582
const u8 gText_CantThrowAwayInUse[] = _("This decoration is in use.\nIt can't be thrown away.");

0 commit comments

Comments
 (0)