Boomerang quest updated.

This commit is contained in:
Storm Dragon
2026-02-14 02:04:09 -05:00
parent dc23ddabb2
commit c6e3036ced
2 changed files with 10 additions and 4 deletions
+8 -1
View File
@@ -42,6 +42,7 @@ int run_catch_the_boomerang() {
int boomerangY = -2;
bool returning = false;
bool resolved = false;
bool catchWindowPromptPlayed = false;
int stepDelay = random(180, 280);
int stepSize = 2;
@@ -51,6 +52,11 @@ int run_catch_the_boomerang() {
p.play_2d(boomerangSound, 0.0, 0.0, 0.0, boomerangY, false);
if (!catchWindowPromptPlayed && returning && boomerangY > -5) {
p.play_stationary("sounds/quests/safe_to_jump.ogg", false);
catchWindowPromptPlayed = true;
}
if (key_pressed(KEY_SPACE)) {
if (returning && boomerangY > -5) {
int points = 5 + boomerangY;
@@ -74,7 +80,8 @@ int run_catch_the_boomerang() {
boomerangY += returning ? stepSize : -stepSize;
if (boomerangY >= 0) {
// Give one centered pass (y == 0) as a final catch window.
if (boomerangY > 0) {
string promptSuffix = (turn < turnsTotal - 1) ? " Press Space to throw." : "";
speak_with_history("The boomerang hit you." + promptSuffix, true);
quest_boomerang_hit_sound();