last ball defaults to first bag pocket item
This commit is contained in:
parent
ee3a2c97ee
commit
3d24fd5f30
1 changed files with 2 additions and 4 deletions
|
@ -3206,10 +3206,8 @@ bool32 CanThrowLastUsedBall(void)
|
||||||
void TryAddLastUsedBallItemSprites(void)
|
void TryAddLastUsedBallItemSprites(void)
|
||||||
{
|
{
|
||||||
#if B_LAST_USED_BALL == TRUE
|
#if B_LAST_USED_BALL == TRUE
|
||||||
if (gLastThrownBall == 0)
|
if ((gLastThrownBall == 0
|
||||||
gLastThrownBall = ITEM_POKE_BALL;
|
|| (gLastThrownBall != 0 && !CheckBagHasItem(gLastThrownBall, 1)))
|
||||||
|
|
||||||
if (gLastThrownBall != 0 && !CheckBagHasItem(gLastThrownBall, 1))
|
|
||||||
{
|
{
|
||||||
// we're out of the last used ball, so just set it to the first ball in the bag
|
// we're out of the last used ball, so just set it to the first ball in the bag
|
||||||
// we have to compact the bag first bc it is typically only compacted when you open it
|
// we have to compact the bag first bc it is typically only compacted when you open it
|
||||||
|
|
Loading…
Reference in a new issue