public bool addedCity(bool added, Toy added_tower) { if (added_tower.runetype != RuneType.SensibleCity) { return(have_cities); } if (added) { Peripheral.Instance.building_a_city = false; bool need_to_update_buttons = !have_cities; ListUtil.Add <int>(ref cities, added_tower.gameObject.GetInstanceID()); have_cities = true; if (need_to_update_buttons) { EagleEyes.Instance.UpdateToyButtons("blah", ToyType.Temporary, false); } } else { ListUtil.Remove <int>(ref cities, added_tower.gameObject.GetInstanceID()); bool need_to_update_buttons = have_cities; have_cities = (cities.Count > 0); if (need_to_update_buttons) { EagleEyes.Instance.UpdateToyButtons("blah", ToyType.Temporary, false); } } return(have_cities); }