public NecromancerDetectionResultViewModel (NecromancerService necromancerService, int? roll = null) { _necromancerService = necromancerService; if (!roll.HasValue) roll = new D6GeneratorService ().RollDemBones (); NecromancerRoll = roll.Value; DetectHero (); }
public NecromancerDetectionViewModel (NecromancerService necromancerService) { _necromancerService = necromancerService; Results = new List<NecromancerDetectionResultViewModel> (); if (Application.CurrentGame.Heroes.ProphecyOfDoomRoll == 0) Results.Add (new NecromancerDetectionResultViewModel (_necromancerService)); else Results.Add (new NecromancerDetectionResultViewModel (_necromancerService, Application.CurrentGame.Heroes.ProphecyOfDoomRoll)); if (Application.CurrentGame.Heroes.RuneOfMisdirectionActive) Results.Add (new NecromancerDetectionResultViewModel (_necromancerService)); SelectedResult = Results.First (); }
public NecromancerActivationViewModel (NecromancerService necromancerService) { _necromancerService = necromancerService; Locations = new ObservableCollection<SpawnLocationViewModel> (); IsLoading = true; }