First adventure added. A bit of sound management improvement.
This commit is contained in:
@@ -396,5 +396,29 @@ void play_unicorn_death_sequence() {
|
||||
|
||||
void give_unicorn_rewards() {
|
||||
speak_with_history("Victory!", true);
|
||||
favor += 50;
|
||||
|
||||
// Calculate rewards
|
||||
int favor_reward = 4 + random(1, 4); // 4 + 1d4 = 5-8 favor
|
||||
favor += favor_reward;
|
||||
|
||||
// Track boss defeat and unlock rune
|
||||
unicorn_boss_defeated = true;
|
||||
bool new_rune = !rune_swiftness_unlocked;
|
||||
rune_swiftness_unlocked = true;
|
||||
|
||||
// Build rewards display
|
||||
string[] rewards;
|
||||
rewards.insert_last("=== Victory Rewards ===");
|
||||
rewards.insert_last("");
|
||||
rewards.insert_last("The gods are pleased with your victory! " + favor_reward + " favor awarded.");
|
||||
rewards.insert_last("");
|
||||
if (new_rune) {
|
||||
rewards.insert_last("Learned Rune of Swiftness!");
|
||||
rewards.insert_last("You can now engrave equipment with this rune at the crafting menu.");
|
||||
} else {
|
||||
rewards.insert_last("You have already mastered the Rune of Swiftness.");
|
||||
}
|
||||
|
||||
// Display rewards in text reader
|
||||
text_reader_lines(rewards, "Unicorn Victory", true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user