/// <summary> /// Forces the addition of a specified <see cref="CityImprovementPivot"/> to the city. /// </summary> /// <param name="cityImprovement">The city improvement.</param> internal void ForceCityImprovement(CityImprovementPivot cityImprovement) { if (!Improvements.Contains(cityImprovement)) { _improvements.Add(cityImprovement); RemovePreviousPlant(cityImprovement); } }
/// <summary> /// Forces the remove of a specified <see cref="CityImprovementPivot"/> of the city. /// </summary> /// <param name="cityImprovement">The city improvement.</param> internal void ForceRemoveCityImprovement(CityImprovementPivot cityImprovement) { if (Improvements.Contains(cityImprovement)) { _improvements.Remove(cityImprovement); if (cityImprovement.HasCitizenHappinessEffect) { CheckCitizensHappiness(); } } }