/// <summary> /// Updates the refugee shelter stat /// </summary> private void UpdateHealth() { if (house == null || house.GetType() == typeof(HomelessHouse)) { shelter.SubtractCurrStat(shelterDecrease); } else { shelter.SetMaxStat(house.GetHealth().GetCurrStatVal()); if (shelter.GetMaxStatVal() < shelter.GetCurrStatVal()) { shelter.SubtractCurrStat(shelterDecrease); } else { shelter.AddCurrStat(shelterIncrease); } } }