Fixing grammar of Berry Tree strings (#6355)

This commit is contained in:
surskitty 2025-02-27 12:21:09 -05:00 committed by GitHub
parent da95f81fc4
commit 5bd50e1e71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2174,6 +2174,11 @@ void ObjectEventInteractionGetBerryCountString(void)
u8 berry = GetBerryTypeByBerryTreeId(treeId);
u8 count = GetBerryCountByBerryTreeId(treeId);
// The strings for growing Berries all refer to a singular berry plant.
// This ensures that text about planting a Berry and the growing Berry reads correctly.
if (GetStageByBerryTreeId(treeId) != BERRY_STAGE_BERRIES)
count = 1;
gSpecialVar_0x8006 = BerryTypeToItemId(berry);
CopyItemNameHandlePlural(BerryTypeToItemId(berry), gStringVar1, count);
berry = GetTreeMutationValue(treeId);