Last remaining function in secret base

This commit is contained in:
PikalaxALT
2017-10-27 22:46:57 -04:00
parent f601525474
commit 4c274f6030
3 changed files with 18 additions and 54 deletions

View File

@@ -2194,3 +2194,21 @@ void sub_80EBB28(void)
break;
}
}
void sub_80EBE7C(void)
{
s16 x;
s16 y;
GetXYCoordsOneStepInFrontOfPlayer(&x, &y);
switch ((int)MapGridGetMetatileIdAt(x, y))
{
case 0x28d:
case 0x28e:
if (VarGet(VAR_0x4054) != 0)
{
VarSet(VAR_0x40EF, VarGet(VAR_0x40EF) | 0x4);
}
break;
}
}