493ca825e3
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Horea Christian <chr@chymera.eu>
51 lines
2.4 KiB
Diff
51 lines
2.4 KiB
Diff
From 1d3a24d74bbea85198c2c5d739a16dcc139af18b Mon Sep 17 00:00:00 2001
|
|
From: Horea Christian <chr@chymera.eu>
|
|
Date: Sat, 26 Dec 2020 12:59:15 -0500
|
|
Subject: [PATCH] Limiting grand temple number to 6.
|
|
|
|
---
|
|
src/building/construction.c | 2 +-
|
|
src/building/construction_building.c | 2 +-
|
|
src/widget/city_building_ghost.c | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/building/construction.c b/src/building/construction.c
|
|
index d1ae9e9d4..eba378cdd 100644
|
|
--- a/src/building/construction.c
|
|
+++ b/src/building/construction.c
|
|
@@ -595,7 +595,7 @@ void building_construction_update(int x, int y, int grid_offset)
|
|
!(type == BUILDING_DISTRIBUTION_CENTER_UNUSED && city_buildings_has_distribution_center()) &&
|
|
!(type == BUILDING_MESS_HALL && city_buildings_has_mess_hall()) &&
|
|
!building_monument_has_monument(type) &&
|
|
- !(building_monument_is_grand_temple(type) && building_monument_count_grand_temples() >= 2)) {
|
|
+ !(building_monument_is_grand_temple(type) && building_monument_count_grand_temples() >= 6)) {
|
|
int size = building_properties_for_type(type)->size;
|
|
mark_construction(x, y, size, TERRAIN_ALL, 0);
|
|
}
|
|
diff --git a/src/building/construction_building.c b/src/building/construction_building.c
|
|
index ed0d401c0..69e47f900 100644
|
|
--- a/src/building/construction_building.c
|
|
+++ b/src/building/construction_building.c
|
|
@@ -749,7 +749,7 @@ int building_construction_place_building(building_type type, int x, int y)
|
|
return 0;
|
|
}
|
|
|
|
- if (building_monument_is_grand_temple(type) && building_monument_count_grand_temples() >= 2) {
|
|
+ if (building_monument_is_grand_temple(type) && building_monument_count_grand_temples() >= 6) {
|
|
city_warning_show(WARNING_MAX_GRAND_TEMPLES);
|
|
return 0;
|
|
}
|
|
diff --git a/src/widget/city_building_ghost.c b/src/widget/city_building_ghost.c
|
|
index 8fe9a30bf..c07bac64f 100644
|
|
--- a/src/widget/city_building_ghost.c
|
|
+++ b/src/widget/city_building_ghost.c
|
|
@@ -303,7 +303,7 @@ static int is_fully_blocked(int map_x, int map_y, building_type type, int buildi
|
|
if (building_monument_has_monument(type)) {
|
|
return 1;
|
|
}
|
|
- if (building_monument_is_grand_temple(type) && building_monument_count_grand_temples() >= 2) {
|
|
+ if (building_monument_is_grand_temple(type) && building_monument_count_grand_temples() >= 6) {
|
|
return 1;
|
|
}
|
|
if (city_finance_out_of_money()) {
|