Skip to content

Commit

Permalink
Reduce by half consumption of goods by 1x1 houses
Browse files Browse the repository at this point in the history
  • Loading branch information
Keriew committed Apr 22, 2024
1 parent d070b31 commit ff53114
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/building/house_evolution.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,8 @@ void building_house_process_evolve_and_consume_goods(void)
if (!b->has_plague) {
has_expanded |= evolve_callback[b->type - BUILDING_HOUSE_VACANT_LOT](b, demands);
}
if (game_time_day() == 0 || game_time_day() == 7) {
// 1x1 houses only consume half of the goods
if (game_time_day() == 0 || (game_time_day() == 7 && b->house_size > 1)) {
consume_resources(b);
}
b->last_update = last_update;
Expand Down

0 comments on commit ff53114

Please sign in to comment.