Heal scrolls added. Gained from adventures or quests.
This commit is contained in:
@@ -85,6 +85,10 @@ void apply_quest_reward(int score) {
|
||||
int stones_gain = (score >= QUEST_STONE_SCORE) ? 1 : 0;
|
||||
int logs_gain = (score >= QUEST_LOG_SCORE) ? 1 : 0;
|
||||
int skins_gain = (score >= QUEST_SKIN_SCORE) ? 1 : 0;
|
||||
int scrolls_gain = 0;
|
||||
if (score >= QUEST_STONE_SCORE) scrolls_gain++;
|
||||
if (score >= QUEST_LOG_SCORE) scrolls_gain++;
|
||||
if (score >= QUEST_SKIN_SCORE) scrolls_gain++;
|
||||
|
||||
int stones_added = add_to_stack(get_personal_count(ITEM_STONES), stones_gain);
|
||||
add_personal_count(ITEM_STONES, stones_added);
|
||||
@@ -92,12 +96,15 @@ void apply_quest_reward(int score) {
|
||||
add_personal_count(ITEM_LOGS, logs_added);
|
||||
int skins_added = add_to_stack(get_personal_count(ITEM_SKINS), skins_gain);
|
||||
add_personal_count(ITEM_SKINS, skins_added);
|
||||
int scrolls_added = add_to_stack(get_personal_count(ITEM_HEAL_SCROLL), scrolls_gain);
|
||||
add_personal_count(ITEM_HEAL_SCROLL, scrolls_added);
|
||||
|
||||
string message = "Quest Complete!\n\nRewards:\n";
|
||||
message += "Favor: +" + format_favor(favor_gain) + "\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";
|
||||
if (scrolls_gain > 0) message += "Heal Scrolls: +" + scrolls_added + "\n";
|
||||
message += "\nScore: " + score;
|
||||
text_reader(message, "Quest Rewards", true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user