tweaking building logic

This commit is contained in:
hz
2026-05-18 21:21:34 -05:00
parent 984a82bf48
commit 973eda5b44
4 changed files with 94 additions and 9 deletions
@@ -137,7 +137,7 @@ public class LocationService
if (!string.IsNullOrWhiteSpace(location.BuildingType))
{
throw new InvalidOperationException("This location already has a building.");
throw new InvalidOperationException("This location already has a building or construction in progress.");
}
if (!string.Equals(location.Terrain, "Forest", StringComparison.OrdinalIgnoreCase))
@@ -166,7 +166,7 @@ public class LocationService
if (updated is null)
{
throw new InvalidOperationException("This location already has a building.");
throw new InvalidOperationException("This location already has a building or construction in progress.");
}
return updated;