Favor lowered. It should require actual work to maintain. Fixed a bug with pets.

This commit is contained in:
Storm Dragon
2026-02-14 00:16:02 -05:00
parent 6687863fbe
commit dc23ddabb2
12 changed files with 276 additions and 326 deletions

View File

@@ -45,7 +45,7 @@ string get_quest_description(int quest_type) {
int get_quest_chance_from_favor() {
int chance = int(favor * QUEST_CHANCE_PER_FAVOR);
if (chance < QUEST_MIN_CHANCE && favor > 1.0) chance = QUEST_MIN_CHANCE;
if (chance < QUEST_MIN_CHANCE && favor >= 1.0) chance = QUEST_MIN_CHANCE;
if (chance > 100) chance = 100;
return chance;
}
@@ -66,7 +66,7 @@ void add_quest(int quest_type) {
void attempt_daily_quest() {
if (quest_roll_done_today) return;
if (favor <= 1.0) return;
if (favor < 1.0) return;
if (world_altars.length() == 0) return;
if (quest_queue.length() >= QUEST_MAX_ACTIVE) return;
@@ -105,6 +105,7 @@ string get_quest_favor_phrase(int score) {
void apply_quest_reward(int score) {
double favor_gain = score * QUEST_FAVOR_PER_POINT;
if (favor_gain < 0) favor_gain = 0;
if (favor_gain > 1.0) favor_gain = 1.0;
favor += favor_gain;
// Determine quantity based on score
@@ -142,6 +143,7 @@ void apply_quest_reward(int score) {
string message = "Quest Complete!\n\nRewards:\n";
message += get_quest_favor_phrase(score) + "\n";
message += "Favor: +" + format_favor(favor_gain) + "\n";
if (added_amount > 0) {
message += get_item_display_name(reward_item) + ": +" + added_amount + "\n";