summaryrefslogtreecommitdiff
path: root/src/berry.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-04-09 01:05:20 +0000
committerYamaArashi <YamaArashi@users.noreply.github.com>2017-04-08 18:05:20 -0700
commit83d7f52f2cadd4232ee674947a93e93fc18e483a (patch)
treea7b36f471848a276c896ea874515b4ddb37e96d2 /src/berry.c
parent30310871d369055715374958e5244f84c028da7f (diff)
finish decompiling item_use.c (#244)
* nonmatching sub_80C9720 and decompile sub_80C9838 * finish decompiling Itemfinder functions. * decompile ItemUseOutOfBattle_PokeblockCase and ItemUseOutOfBattle_CoinCase * rename field_doortransition * rename weather file * decompile more of item_use.c * decompile up to repel code * decompile up to stat increase code * finish decompiling item_use.c * remove item_use from ld_script
Diffstat (limited to 'src/berry.c')
-rw-r--r--src/berry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/berry.c b/src/berry.c
index e81c7a5ff..99c9f6342 100644
--- a/src/berry.c
+++ b/src/berry.c
@@ -897,7 +897,7 @@ bool32 FieldObjectInteractionWaterBerryTree(void)
return TRUE;
}
-bool32 IsPlayerFacingPlantedBerryTree(void)
+bool8 IsPlayerFacingPlantedBerryTree(void)
{
if (GetFieldObjectScriptPointerForComparison() == &BerryTreeScript
&& GetStageByBerryTreeId(FieldObjectGetBerryTreeId(gSelectedMapObject)) == 0)
@@ -906,10 +906,10 @@ bool32 IsPlayerFacingPlantedBerryTree(void)
return FALSE;
}
-u8 TryToWaterBerryTree(void)
+bool8 TryToWaterBerryTree(void)
{
if (GetFieldObjectScriptPointerForComparison() != &BerryTreeScript)
- return 0;
+ return FALSE;
else
return FieldObjectInteractionWaterBerryTree();
}