Slight storage system documentation

This commit is contained in:
luckytyphlosion 2024-08-14 18:27:44 -04:00
parent 3d2b861436
commit 7d921fa89b

View file

@ -4824,7 +4824,7 @@ static void MovePartySpriteToNextSlot(struct Sprite *sprite, u16 partyId)
sprite->sMonY = (u16)(sprite->y) * 8; sprite->sMonY = (u16)(sprite->y) * 8;
sprite->sSpeedX = ((x * 8) - sprite->sMonX) / 8; sprite->sSpeedX = ((x * 8) - sprite->sMonX) / 8;
sprite->sSpeedY = ((y * 8) - sprite->sMonY) / 8; sprite->sSpeedY = ((y * 8) - sprite->sMonY) / 8;
sprite->data[6] = 8; sprite->sMoveSteps = 8;
sprite->callback = SpriteCB_MovePartyMonToNextSlot; sprite->callback = SpriteCB_MovePartyMonToNextSlot;
} }
@ -8258,7 +8258,7 @@ static bool8 MultiMove_GrabSelection(void)
if (!DoMonPlaceChange()) if (!DoMonPlaceChange())
{ {
StartCursorAnim(CURSOR_ANIM_FIST); StartCursorAnim(CURSOR_ANIM_FIST);
MultiMove_InitMove(0, 256, 8); MultiMove_InitMove(0, Q_8_8(1), 8);
InitMultiMonPlaceChange(TRUE); InitMultiMonPlaceChange(TRUE);
sMultiMove->state++; sMultiMove->state++;
} }
@ -8291,7 +8291,7 @@ static bool8 MultiMove_PlaceMons(void)
{ {
case 0: case 0:
MultiMove_SetPlacedMonData(); MultiMove_SetPlacedMonData();
MultiMove_InitMove(0, -256, 8); MultiMove_InitMove(0, Q_8_8(-1), 8);
InitMultiMonPlaceChange(FALSE); InitMultiMonPlaceChange(FALSE);
sMultiMove->state++; sMultiMove->state++;
break; break;
@ -8335,25 +8335,25 @@ static bool8 MultiMove_TryMoveGroup(u8 dir)
if (sMultiMove->minRow == 0) if (sMultiMove->minRow == 0)
return FALSE; return FALSE;
sMultiMove->minRow--; sMultiMove->minRow--;
MultiMove_InitMove(0, 1024, 6); MultiMove_InitMove(0, Q_8_8(4), 6);
break; break;
case 1: // Down case 1: // Down
if (sMultiMove->minRow + sMultiMove->rowsTotal >= IN_BOX_ROWS) if (sMultiMove->minRow + sMultiMove->rowsTotal >= IN_BOX_ROWS)
return FALSE; return FALSE;
sMultiMove->minRow++; sMultiMove->minRow++;
MultiMove_InitMove(0, -1024, 6); MultiMove_InitMove(0, Q_8_8(-4), 6);
break; break;
case 2: // Left case 2: // Left
if (sMultiMove->minColumn == 0) if (sMultiMove->minColumn == 0)
return FALSE; return FALSE;
sMultiMove->minColumn--; sMultiMove->minColumn--;
MultiMove_InitMove(1024, 0, 6); MultiMove_InitMove(Q_8_8(4), 0, 6);
break; break;
case 3: // Right case 3: // Right
if (sMultiMove->minColumn + sMultiMove->columnsTotal >= IN_BOX_COLUMNS) if (sMultiMove->minColumn + sMultiMove->columnsTotal >= IN_BOX_COLUMNS)
return FALSE; return FALSE;
sMultiMove->minColumn++; sMultiMove->minColumn++;
MultiMove_InitMove(-1024, 0, 6); MultiMove_InitMove(Q_8_8(-4), 0, 6);
break; break;
} }
return TRUE; return TRUE;