mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-31 07:26:09 +00:00 
			
		
		
		
	Début refonte beta
This commit is contained in:
		
							parent
							
								
									821ae2d8bb
								
							
						
					
					
						commit
						a962ac062b
					
				
					 7 changed files with 138 additions and 68 deletions
				
			
		|  | @ -1,5 +1,5 @@ | ||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="32" android:versionName="1.32" package="com.nioux.aidedejeu" android:installLocation="preferExternal"> | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="32" android:versionName="1.32" package="com.nioux.aidedejeubeta" android:installLocation="preferExternal"> | ||||||
| 	<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="27" /> | 	<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="27" /> | ||||||
| 	<uses-permission android:name="android.permission.INTERNET" /> | 	<uses-permission android:name="android.permission.INTERNET" /> | ||||||
| 	<application android:label="Haches & Dés" android:icon="@drawable/battle_axe"></application> | 	<application android:label="Haches & Dés" android:icon="@drawable/battle_axe"></application> | ||||||
|  |  | ||||||
|  | @ -293,6 +293,41 @@ namespace AideDeJeuCmd | ||||||
|             Console.ReadLine(); |             Console.ReadLine(); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  |         static string inDir = @"..\..\..\..\..\Data\"; | ||||||
|  | 
 | ||||||
|  |         public static async Task PreloadAllItemsFromFilesAsync(StoreViewModel store) | ||||||
|  |         { | ||||||
|  |             foreach (var fileName in Directory.GetFiles(inDir, "*.md", new EnumerationOptions() { MatchType = MatchType.Simple, RecurseSubdirectories = false  })) | ||||||
|  |             { | ||||||
|  |                 //foreach (var resourceName in Tools.Helpers.GetResourceNames()) | ||||||
|  |                 //{ | ||||||
|  |                 var shortName = fileName.Substring(inDir.Length); | ||||||
|  |                 var regex = new Regex(@"(?<name>.*?)\.md"); | ||||||
|  |                 var match = regex.Match(shortName); | ||||||
|  |                 var source = match.Groups["name"].Value; | ||||||
|  |                 if (!string.IsNullOrEmpty(source)) | ||||||
|  |                 { | ||||||
|  |                     if (!store._AllItems.ContainsKey(source)) | ||||||
|  |                     { | ||||||
|  |                         //ar md = await AideDeJeu.Tools.Helpers.GetResourceStringAsync(resourceName); | ||||||
|  |                         var md = await File.ReadAllTextAsync(fileName); | ||||||
|  |                         if (md != null) | ||||||
|  |                         { | ||||||
|  |                             var item = store.ToItem(source, md, store._AllItems); | ||||||
|  |                             if (item != null) | ||||||
|  |                             { | ||||||
|  |                                 var anchors = new Dictionary<string, Item>(); | ||||||
|  |                                 //MakeAnchors(source, anchors, item); | ||||||
|  |                                 item.RootId = $"{source}.md"; | ||||||
|  |                                 store._AllItems[source] = item; | ||||||
|  |                             } | ||||||
|  |                         } | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         static string outDir = @"..\..\..\..\..\Data\HD\"; |         static string outDir = @"..\..\..\..\..\Data\HD\"; | ||||||
| 
 | 
 | ||||||
|         static async Task Main(string[] args) |         static async Task Main(string[] args) | ||||||
|  | @ -304,7 +339,8 @@ namespace AideDeJeuCmd | ||||||
|             //await store.GetItemFromDataAsync("test", "truc"); |             //await store.GetItemFromDataAsync("test", "truc"); | ||||||
| 
 | 
 | ||||||
|             var store = new StoreViewModel(); |             var store = new StoreViewModel(); | ||||||
|             await store.PreloadAllItemsAsync(); |             //await store.PreloadAllItemsAsync(); | ||||||
|  |             await PreloadAllItemsFromFilesAsync(store); | ||||||
| 
 | 
 | ||||||
|             var index = store._AllItems.Where(it => it.Value.RootId == "index.md").FirstOrDefault(); |             var index = store._AllItems.Where(it => it.Value.RootId == "index.md").FirstOrDefault(); | ||||||
|             index.Value.Id = index.Value.RootId; |             index.Value.Id = index.Value.RootId; | ||||||
|  |  | ||||||
|  | @ -1,31 +1,17 @@ | ||||||
| --- | --- | ||||||
| !Items | !LinkItem | ||||||
| Id: abilities_constitution_hd.md#constitution | Link: abilities_constitution_hd.md | ||||||
| RootId: abilities_constitution_hd.md | NameLink: <!--NameLink-->[Constitution](hd_abilities_constitution.md)<!--/NameLink--> | ||||||
| ParentLink: abilities_hd.md | Id: abilities_hd.md#constitution | ||||||
|  | ParentLink: abilities_hd.md#utiliser-les-caractéristiques | ||||||
| Name: Constitution | Name: Constitution | ||||||
| ParentName: Caractéristiques | ParentName: Utiliser les caractéristiques | ||||||
| NameLevel: 1 |  | ||||||
| AltName: Constitution (SRD p81) |  | ||||||
| Source: (MDR p264) |  | ||||||
| --- |  | ||||||
| >  [Caractéristiques](hd_abilities.md) |  | ||||||
| 
 |  | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Constitution |  | ||||||
| 
 | 
 | ||||||
| - AltName: Constitution (SRD p81) |  | ||||||
| - Source: (MDR p264) |  | ||||||
| 
 | 
 | ||||||
| La Constitution représente la santé, l'endurance et la force vitale. | # [Constitution](hd_abilities_constitution.md) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| ## [Tests de Constitution](hd_abilities_constitution_tests_de_constitution.md) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ## [Points de vie](hd_abilities_constitution_points_de_vie.md) |  | ||||||
| 
 |  | ||||||
|  |  | ||||||
|  | @ -1,55 +1,17 @@ | ||||||
| --- | --- | ||||||
| !Items | !LinkItem | ||||||
| Id: abilities_intelligence_hd.md#intelligence | Link: abilities_intelligence_hd.md | ||||||
| RootId: abilities_intelligence_hd.md | NameLink: <!--NameLink-->[Intelligence](hd_abilities_intelligence.md)<!--/NameLink--> | ||||||
| ParentLink: abilities_hd.md | Id: abilities_hd.md#intelligence | ||||||
|  | ParentLink: abilities_hd.md#utiliser-les-caractéristiques | ||||||
| Name: Intelligence | Name: Intelligence | ||||||
| ParentName: Caractéristiques | ParentName: Utiliser les caractéristiques | ||||||
| NameLevel: 1 |  | ||||||
| AltName: Intelligence (SRD p81) |  | ||||||
| Source: (MDR p264) |  | ||||||
| --- |  | ||||||
| >  [Caractéristiques](hd_abilities.md) |  | ||||||
| 
 |  | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Intelligence |  | ||||||
| 
 | 
 | ||||||
| - AltName: Intelligence (SRD p81) |  | ||||||
| - Source: (MDR p264) |  | ||||||
| 
 | 
 | ||||||
| L'intelligence représente la vivacité d'esprit, la mémoire et la capacité de raisonnement. | # [Intelligence](hd_abilities_intelligence.md) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| ## [Tests d'Intelligence](hd_abilities_intelligence_tests_dintelligence.md) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### [Arcanes](hd_abilities_intelligence_arcanes.md) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### [Histoire](hd_abilities_intelligence_histoire.md) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### [Investigation](hd_abilities_intelligence_investigation.md) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### [Nature](hd_abilities_intelligence_nature.md) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### [Religion](hd_abilities_intelligence_religion.md) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ### [Autres tests d'Intelligence](hd_abilities_intelligence_autres_tests_dintelligence.md) |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ## [Caractéristique d'incantation](hd_abilities_intelligence_caracteristique_dincantation.md) |  | ||||||
| 
 |  | ||||||
|  |  | ||||||
							
								
								
									
										48
									
								
								Data/HD/sandbox%23agrandirretrecir.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								Data/HD/sandbox%23agrandirretrecir.md
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,48 @@ | ||||||
|  | --- | ||||||
|  | !Spell | ||||||
|  | Level: 2 | ||||||
|  | Type: Transmutation | ||||||
|  | CastingTime: 1 action | ||||||
|  | Range: 9 mètres | ||||||
|  | Components: V, S, M (une pincée de limaille de fer) | ||||||
|  | Duration: concentration, jusqu'à 1 minute | ||||||
|  | Classes: '[Ensorceleur], [Magicien]' | ||||||
|  | Id: sandbox.md#agrandirrétrécir | ||||||
|  | ParentLink: sandbox.md#sandbox | ||||||
|  | Name: Agrandir/rétrécir | ||||||
|  | ParentName: Sandbox | ||||||
|  | NameLevel: 1 | ||||||
|  | AltName: '[Enlarge/Reduce](srd_spells_enlargereduce.md)' | ||||||
|  | --- | ||||||
|  | > [Sandbox](sandbox.md) | ||||||
|  | 
 | ||||||
|  | --- | ||||||
|  | 
 | ||||||
|  | # Agrandir/rétrécir | ||||||
|  | 
 | ||||||
|  | - SRD: [Enlarge/Reduce](srd_spells_enlargereduce.md) | ||||||
|  | 
 | ||||||
|  | -  Transmutation de niveau 2 | ||||||
|  | 
 | ||||||
|  | - **Temps d'incantation :** 1 action | ||||||
|  | 
 | ||||||
|  | - **Portée :** 9 mètres | ||||||
|  | 
 | ||||||
|  | - **Composantes :** V, S, M (une pincée de limaille de fer) | ||||||
|  | 
 | ||||||
|  | - **Durée :** concentration, jusqu'à 1 minute | ||||||
|  | 
 | ||||||
|  | - Classes: [Ensorceleur], [Magicien] | ||||||
|  | 
 | ||||||
|  | - Book: (HD)(SRD p) | ||||||
|  | 
 | ||||||
|  | ### Description | ||||||
|  | 
 | ||||||
|  | Vous agrandissez ou rétrécissez une créature ou un objet situé à portée et dans votre champ de vision pendant toute la durée du sort. Choisissez soit une créature, soit un objet qui n'est ni porté ni transporté. Si la cible n'est pas consentante, elle a droit à un [jet de sauvegarde] de [Constitution]. Si elle le réussit, le sort est sans effet. | ||||||
|  | 
 | ||||||
|  | Si la cible est une créature, tout ce qu'elle porte et tout ce qu'elle transporte change de taille avec elle. En revanche, si elle lâche un objet, il reprend sa taille normale sur-le-champ. | ||||||
|  | 
 | ||||||
|  | **_Agrandir._** La cible double dans toutes les dimensions, et son poids est multiplié par huit. Cette croissance augmente sa catégorie de taille d'un cran, de M à G par exemple. Si la cible n'a pas assez de place pour doubler de volume, elle atteint la taille maximale possible dans l'espace dont elle dispose. Elle bénéficie d'un avantage lors des tests de [Force] et des [jets de sauvegarde] de [Force] jusqu'à la fin du sort. Les armes de la cible grandissent pour s'adapter à sa nouvelle taille. Tant qu'elles sont ainsi agrandies, elles infligent 1d4 dégâts de plus. | ||||||
|  | 
 | ||||||
|  | **_Rétrécir._** La cible réduit de moitié dans toutes les dimensions et son poids est divisé par huit. Ce rétrécissement réduit sa catégorie de taille d'un cran, de M à P par exemple. La cible subit un désavantage lors des tests de [Force] et des [jets de sauvegarde] de [Force] jusqu'à la fin du sort. Les armes de la cible rétrécissent pour s'adapter à sa nouvelle taille. Tant qu'elles sont ainsi réduites, elles infligent 1d4 dégâts de moins (avec un minimum de 1 dégât). | ||||||
|  | 
 | ||||||
							
								
								
									
										38
									
								
								Data/HD/sandbox.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								Data/HD/sandbox.md
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,38 @@ | ||||||
|  | --- | ||||||
|  | !Items | ||||||
|  | Id: sandbox.md#sandbox | ||||||
|  | RootId: sandbox.md | ||||||
|  | ParentLink: .md# | ||||||
|  | Name: Sandbox | ||||||
|  | ParentName: '' | ||||||
|  | NameLevel: 1 | ||||||
|  | AltName: Races | ||||||
|  | --- | ||||||
|  | >  [](.md#) | ||||||
|  | 
 | ||||||
|  | --- | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | # Sandbox | ||||||
|  | 
 | ||||||
|  | - SRD: Races | ||||||
|  | - Book: (MDR p36)(SRD p3) | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | # [Agrandir/rétrécir](sandbox#agrandirretrecir.md) | ||||||
|  | 
 | ||||||
|  | #### _[Enlarge/Reduce](sandbox#agrandirretrecir.md)_ | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | # [Agrandir/rétrécir](sandbox#agrandirretrecir.md) | ||||||
|  | 
 | ||||||
|  | #### _[Enlarge/Reduce](sandbox#agrandirretrecir.md)_ | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | # [Agrandir/rétrécir](sandbox#agrandirretrecir.md) | ||||||
|  | 
 | ||||||
|  | #### _[Enlarge/Reduce](sandbox#agrandirretrecir.md)_ | ||||||
|  | 
 | ||||||
							
								
								
									
										
											BIN
										
									
								
								Data/library.db
									
										
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Data/library.db
									
										
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez