diff --git a/src/quest_system.nvgt b/src/quest_system.nvgt index bc0cb21..4575920 100644 --- a/src/quest_system.nvgt +++ b/src/quest_system.nvgt @@ -73,13 +73,18 @@ void check_quest_menu() { } } -void apply_quest_reward(int score) { - if (score <= 0) { - speak_with_history("No reward earned.", true); - return; - } +string get_quest_favor_phrase(int score) { + if (score <= 2) return "The gods are displeased with your performance."; + if (score < QUEST_STONE_SCORE) return "The gods are pleased with your performance."; + int extreme_threshold = QUEST_LOG_SCORE - 2; + if (score < extreme_threshold) return "The gods are very pleased with your performance."; + if (score < QUEST_LOG_SCORE) return "The gods are extremely pleased with your performance."; + return "The gods are ultimately pleased with your performance."; +} +void apply_quest_reward(int score) { double favor_gain = score * QUEST_FAVOR_PER_POINT; + if (favor_gain < 0) favor_gain = 0; favor += favor_gain; int stones_gain = (score >= QUEST_STONE_SCORE) ? 1 : 0; @@ -100,7 +105,7 @@ void apply_quest_reward(int score) { add_personal_count(ITEM_HEAL_SCROLL, scrolls_added); string message = "Quest Complete!\n\nRewards:\n"; - message += "Favor: +" + format_favor(favor_gain) + "\n"; + message += get_quest_favor_phrase(score) + "\n"; if (stones_gain > 0) message += "Stones: +" + stones_added + "\n"; if (logs_gain > 0) message += "Logs: +" + logs_added + "\n"; if (skins_gain > 0) message += "Skins: +" + skins_added + "\n"; @@ -110,9 +115,6 @@ void apply_quest_reward(int score) { } void run_quest(int quest_type) { - string quest_name = get_quest_name(quest_type); - string quest_desc = get_quest_description(quest_type); - text_reader(quest_name + "\n\n" + quest_desc, "Quest Instructions", true); p.pause_all(); int score = 0; if (quest_type == QUEST_BAT_INVASION) score = run_bat_invasion(); diff --git a/src/quests/escape_from_hel_game.nvgt b/src/quests/escape_from_hel_game.nvgt index b0a26f1..3d1a9e9 100644 --- a/src/quests/escape_from_hel_game.nvgt +++ b/src/quests/escape_from_hel_game.nvgt @@ -5,6 +5,7 @@ int run_escape_from_hel() { instructions.insert_last("=== Escape from Hel ==="); instructions.insert_last(""); instructions.insert_last("You are fleeing from the realm of the dead!"); + instructions.insert_last("You have plundered the treasure, and the Draugr are displeased.!"); instructions.insert_last(""); instructions.insert_last("How to play:"); instructions.insert_last(" - You run automatically, speed increases over time"); @@ -16,7 +17,6 @@ int run_escape_from_hel() { instructions.insert_last("Close this screen to begin."); text_reader_lines(instructions, "Quest Instructions", true); - speak_with_history("Starting.", true); wait(500); int score = 0;