Breaking items for residents and basket collection improved. Time for catching fish adjusted.
This commit is contained in:
@@ -438,6 +438,19 @@ void attempt_blessing() {
|
||||
}
|
||||
}
|
||||
|
||||
bool should_attempt_resident_foraging(int hour) {
|
||||
int residentCount = residents_count;
|
||||
if (residentCount <= 0) return false;
|
||||
|
||||
if (hour == 6) return true;
|
||||
if (residentCount == 1) return false;
|
||||
if (residentCount == 2) return hour == 12;
|
||||
if (residentCount == 3) return hour == 12 || hour == 18;
|
||||
|
||||
// 4+ residents: spread across daytime hours
|
||||
return hour == 10 || hour == 14 || hour == 18;
|
||||
}
|
||||
|
||||
void update_time() {
|
||||
if (hour_timer.elapsed >= MS_PER_HOUR) {
|
||||
hour_timer.restart();
|
||||
@@ -507,6 +520,8 @@ void update_time() {
|
||||
process_daily_weapon_breakage();
|
||||
attempt_daily_quest();
|
||||
attempt_resident_butchering();
|
||||
}
|
||||
if (should_attempt_resident_foraging(current_hour)) {
|
||||
attempt_resident_foraging();
|
||||
}
|
||||
attempt_daily_invasion();
|
||||
|
||||
Reference in New Issue
Block a user