/// <summary> /// Remove created epidemic from the list and destroy it /// </summary> /// <param name="epidemic"></param> internal void EpidemicDestroyed(GodSpell.Epidemic epidemic) { Debug.Assert(epidemic != null, @"(game, EpidemicDestroyed) Item is null"); Debug.Assert(_currentEpidemicList.Contains(epidemic), @"(game, EpidemicmDestroyed) Item not in gameitemlist"); if (epidemic.TimeSinceCreation < 15) _faithToBeAddedOrRemovedForAllVillagersThisRound += 20; _currentEpidemicList.Remove(epidemic); Debug.Assert(!_currentEpidemicList.Contains(epidemic), @"(game, EpidemicDestroyed) Item still in gameitemlist"); }
// GodSpells Methods /// <summary> /// Add created epidemic to epidemic list /// </summary> /// <param name="epidemic"></param> internal void EpidemicCreated(GodSpell.Epidemic epidemic) { _currentEpidemicList.Add(epidemic); }