mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-15 23:00:21 -05:00
Warp Song Check
-Now if you do not have a warp song you won't be able to select the empty slot and still teleport.
This commit is contained in:
parent
ee0d0b0929
commit
5bf4230b4d
@ -81,6 +81,11 @@ void PauseWarp_Main() {
|
||||
// If 'A' is pressed and the cooldowns are zero, and we're not already warping, initiate the warp
|
||||
if (aButtonPressed && !state.aButtonCooldown && !(state.warpInitiated || state.textboxInitiated || state.inChoosingState)) {
|
||||
int song = play->pauseCtx.cursorPoint[PAUSE_QUEST];
|
||||
|
||||
// Check if the player has the selected warp song
|
||||
if (!CHECK_QUEST_ITEM(song)) return;
|
||||
|
||||
// Initiate warp if the song is within the valid range
|
||||
if (song >= QUEST_SONG_MINUET && song <= QUEST_SONG_PRELUDE) InitiateWarp(play, player, song, &state);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user