mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-30 23:16:09 +00:00 
			
		
		
		
	Concentration
This commit is contained in:
		
							parent
							
								
									145c050d2d
								
							
						
					
					
						commit
						841ca406f0
					
				
					 7 changed files with 1076 additions and 612 deletions
				
			
		|  | @ -15,11 +15,11 @@ namespace AideDeJeuLib | ||||||
|         public string Family { get; set; } |         public string Family { get; set; } | ||||||
|         public string Level { get; set; } |         public string Level { get; set; } | ||||||
|         public string Type { get; set; } |         public string Type { get; set; } | ||||||
|         public string Concentration { get; set; } |  | ||||||
|         public string Ritual { get; set; } |         public string Ritual { get; set; } | ||||||
|         public string CastingTime { get; set; } |         public string CastingTime { get; set; } | ||||||
|         public string Range { get; set; } |         public string Range { get; set; } | ||||||
|         public string Components { get; set; } |         public string Components { get; set; } | ||||||
|  |         public string Concentration { get; set; } | ||||||
|         public string Duration { get; set; } |         public string Duration { get; set; } | ||||||
|         public string DescriptionHtml { get; set; } |         public string DescriptionHtml { get; set; } | ||||||
|         //public string Source { get; set; } |         //public string Source { get; set; } | ||||||
|  |  | ||||||
|  | @ -17,6 +17,7 @@ namespace AideDeJeuLib | ||||||
|         public string Rituals { get; set; } |         public string Rituals { get; set; } | ||||||
|         public string CastingTimes { get; set; } |         public string CastingTimes { get; set; } | ||||||
|         public string Ranges { get; set; } |         public string Ranges { get; set; } | ||||||
|  |         public string Concentrations { get; set; } | ||||||
|         public string Durations { get; set; } |         public string Durations { get; set; } | ||||||
|         public string Sources { get; set; } |         public string Sources { get; set; } | ||||||
| 
 | 
 | ||||||
|  | @ -29,6 +30,7 @@ namespace AideDeJeuLib | ||||||
|                 Split(Rituals), |                 Split(Rituals), | ||||||
|                 Split(CastingTimes), |                 Split(CastingTimes), | ||||||
|                 Split(Ranges), |                 Split(Ranges), | ||||||
|  |                 Split(Concentrations), | ||||||
|                 Split(Durations), |                 Split(Durations), | ||||||
|                 Split(Sources) |                 Split(Sources) | ||||||
|             ); |             ); | ||||||
|  |  | ||||||
|  | @ -87,6 +87,7 @@ namespace AideDeJeu.ViewModels.Library | ||||||
|         Ritual, |         Ritual, | ||||||
|         CastingTime, |         CastingTime, | ||||||
|         Range, |         Range, | ||||||
|  |         Concentration, | ||||||
|         Duration, |         Duration, | ||||||
|         Source, |         Source, | ||||||
|         Category, |         Category, | ||||||
|  | @ -199,6 +200,7 @@ namespace AideDeJeu.ViewModels.Library | ||||||
|                         new Filter() { Key = FilterKeys.Ritual, Name = "Rituel", KeyValues = Rituals, _Index = 0 }, |                         new Filter() { Key = FilterKeys.Ritual, Name = "Rituel", KeyValues = Rituals, _Index = 0 }, | ||||||
|                         new Filter() { Key = FilterKeys.CastingTime, Name = "Temps d'incantation", KeyValues = CastingTimes, _Index = 0 }, |                         new Filter() { Key = FilterKeys.CastingTime, Name = "Temps d'incantation", KeyValues = CastingTimes, _Index = 0 }, | ||||||
|                         new Filter() { Key = FilterKeys.Range, Name = "Portée", KeyValues = Ranges, _Index = 0 }, |                         new Filter() { Key = FilterKeys.Range, Name = "Portée", KeyValues = Ranges, _Index = 0 }, | ||||||
|  |                         new Filter() { Key = FilterKeys.Concentration, Name = "Concentration", KeyValues = Concentrations, _Index = 0 }, | ||||||
|                         new Filter() { Key = FilterKeys.Duration, Name = "Durée", KeyValues = Durations, _Index = 0 }, |                         new Filter() { Key = FilterKeys.Duration, Name = "Durée", KeyValues = Durations, _Index = 0 }, | ||||||
|                         new Filter() { Key = FilterKeys.Source, Name = "Source", KeyValues = Sources, _Index = 0 }, |                         new Filter() { Key = FilterKeys.Source, Name = "Source", KeyValues = Sources, _Index = 0 }, | ||||||
|                     }; |                     }; | ||||||
|  | @ -218,6 +220,7 @@ namespace AideDeJeu.ViewModels.Library | ||||||
|             List<KeyValuePair<string, string>> rituals, |             List<KeyValuePair<string, string>> rituals, | ||||||
|             List<KeyValuePair<string, string>> castingTimes, |             List<KeyValuePair<string, string>> castingTimes, | ||||||
|             List<KeyValuePair<string, string>> ranges, |             List<KeyValuePair<string, string>> ranges, | ||||||
|  |             List<KeyValuePair<string, string>> concentrations, | ||||||
|             List<KeyValuePair<string, string>> durations, |             List<KeyValuePair<string, string>> durations, | ||||||
|             List<KeyValuePair<string, string>> sources) |             List<KeyValuePair<string, string>> sources) | ||||||
|         { |         { | ||||||
|  | @ -228,6 +231,7 @@ namespace AideDeJeu.ViewModels.Library | ||||||
|             this.Rituals = rituals; |             this.Rituals = rituals; | ||||||
|             this.CastingTimes = castingTimes; |             this.CastingTimes = castingTimes; | ||||||
|             this.Ranges = ranges; |             this.Ranges = ranges; | ||||||
|  |             this.Concentrations = concentrations; | ||||||
|             this.Durations = durations; |             this.Durations = durations; | ||||||
|             this.Sources = sources; |             this.Sources = sources; | ||||||
|         } |         } | ||||||
|  | @ -249,6 +253,7 @@ namespace AideDeJeu.ViewModels.Library | ||||||
|             var ritual = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.Ritual).SelectedKey ?? ""; |             var ritual = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.Ritual).SelectedKey ?? ""; | ||||||
|             var castingTime = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.CastingTime).SelectedKey ?? ""; |             var castingTime = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.CastingTime).SelectedKey ?? ""; | ||||||
|             var range = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.Range).SelectedKey ?? ""; |             var range = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.Range).SelectedKey ?? ""; | ||||||
|  |             var concentration = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.Concentration).SelectedKey ?? ""; | ||||||
|             var duration = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.Duration).SelectedKey ?? ""; |             var duration = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.Duration).SelectedKey ?? ""; | ||||||
|             var source = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.Source).SelectedKey ?? ""; |             var source = Filters.SingleOrDefault(filter => filter.Key == FilterKeys.Source).SelectedKey ?? ""; | ||||||
|             try |             try | ||||||
|  | @ -266,6 +271,7 @@ namespace AideDeJeu.ViewModels.Library | ||||||
|                         (string.IsNullOrEmpty(ritual) || (spell.Ritual != null && spell.Ritual.Contains(ritual))) && |                         (string.IsNullOrEmpty(ritual) || (spell.Ritual != null && spell.Ritual.Contains(ritual))) && | ||||||
|                         (spell.CastingTime != null) && spell.CastingTime.Contains(castingTime) && |                         (spell.CastingTime != null) && spell.CastingTime.Contains(castingTime) && | ||||||
|                         (spell.Range != null) && spell.Range.Contains(range) && |                         (spell.Range != null) && spell.Range.Contains(range) && | ||||||
|  |                         (string.IsNullOrEmpty(concentration) || (spell.Concentration != null && spell.Concentration.Contains(concentration))) && | ||||||
|                         (spell.Duration != null) && spell.Duration.Contains(duration) && |                         (spell.Duration != null) && spell.Duration.Contains(duration) && | ||||||
|                         ( |                         ( | ||||||
|                             (Helpers.RemoveDiacritics(spell.Name).ToLower().Contains(Helpers.RemoveDiacritics(SearchText ?? string.Empty).ToLower())) || |                             (Helpers.RemoveDiacritics(spell.Name).ToLower().Contains(Helpers.RemoveDiacritics(SearchText ?? string.Empty).ToLower())) || | ||||||
|  | @ -296,6 +302,8 @@ namespace AideDeJeu.ViewModels.Library | ||||||
| 
 | 
 | ||||||
|         public List<KeyValuePair<string, string>> Ranges { get; } |         public List<KeyValuePair<string, string>> Ranges { get; } | ||||||
| 
 | 
 | ||||||
|  |         public List<KeyValuePair<string, string>> Concentrations { get; } | ||||||
|  | 
 | ||||||
|         public List<KeyValuePair<string, string>> Durations { get; } |         public List<KeyValuePair<string, string>> Durations { get; } | ||||||
| 
 | 
 | ||||||
|         public List<KeyValuePair<string, string>> Sources { get; } |         public List<KeyValuePair<string, string>> Sources { get; } | ||||||
|  |  | ||||||
							
								
								
									
										1364
									
								
								Data/HD/hd_spells.md
									
										
									
									
									
								
							
							
						
						
									
										1364
									
								
								Data/HD/hd_spells.md
									
										
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							|  | @ -8,7 +8,7 @@ | ||||||
| - **Temps d'incantation :** 1 action | - **Temps d'incantation :** 1 action | ||||||
| - **Portée :** 9 mètres | - **Portée :** 9 mètres | ||||||
| - **Composantes :** V | - **Composantes :** V | ||||||
| - **Durée :** Concentration, jusqu'à 10 minutes | - **Durée :** concentration, jusqu'à 10 minutes | ||||||
| - Classes: [Paladin](hd_paladin.md) | - Classes: [Paladin](hd_paladin.md) | ||||||
| - Source: (MDR p325) | - Source: (MDR p325) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										
											BIN
										
									
								
								Data/library.db
									
										
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Data/library.db
									
										
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez