Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 /// <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();
         }
     }
 }