feat: manually added culture inherits parent culture in Tree (1.96.05)

This commit is contained in:
Azgaar 2024-03-04 20:17:53 +01:00
parent bf817ee8ed
commit 721cec4e58
4 changed files with 6 additions and 4 deletions

View file

@ -822,6 +822,7 @@ function addCulture() {
if (pack.cells.h[center] < 20)
return tip("You cannot place culture center into the water. Please click on a land cell", false, "error");
const occupied = pack.cultures.some(c => !c.removed && c.center === center);
if (occupied) return tip("This cell is already a culture center. Please select a different cell", false, "error");