diff --git a/AideDeJeu/AideDeJeu/Models/ClassItem.cs b/AideDeJeu/AideDeJeu/Models/ClassItem.cs index d7aeb119..ce8b3a92 100644 --- a/AideDeJeu/AideDeJeu/Models/ClassItem.cs +++ b/AideDeJeu/AideDeJeu/Models/ClassItem.cs @@ -11,6 +11,5 @@ namespace AideDeJeuLib public class ClassItem : Item { - } } diff --git a/AideDeJeu/AideDeJeu/Models/RaceItem.cs b/AideDeJeu/AideDeJeu/Models/RaceItem.cs index c6a8eec8..e6b0b752 100644 --- a/AideDeJeu/AideDeJeu/Models/RaceItem.cs +++ b/AideDeJeu/AideDeJeu/Models/RaceItem.cs @@ -11,6 +11,11 @@ namespace AideDeJeuLib public class RaceItem : Item { + [DataMember] + public string FullName { get; set; } + [DataMember] + public bool HasSubRaces { get; set; } + [DataMember] public string StrengthBonus { get; set; } [DataMember] diff --git a/AideDeJeu/AideDeJeu/Models/SubClassItem.cs b/AideDeJeu/AideDeJeu/Models/SubClassItem.cs index 541daf90..ad9df698 100644 --- a/AideDeJeu/AideDeJeu/Models/SubClassItem.cs +++ b/AideDeJeu/AideDeJeu/Models/SubClassItem.cs @@ -11,6 +11,7 @@ namespace AideDeJeuLib public class SubClassItem : ClassItem { - + [DataMember] + public string ParentClassId { get; set; } } } diff --git a/AideDeJeu/AideDeJeu/Models/SubRaceItem.cs b/AideDeJeu/AideDeJeu/Models/SubRaceItem.cs index b942dd20..aac9adf4 100644 --- a/AideDeJeu/AideDeJeu/Models/SubRaceItem.cs +++ b/AideDeJeu/AideDeJeu/Models/SubRaceItem.cs @@ -8,8 +8,9 @@ using YamlDotNet.Serialization; namespace AideDeJeuLib { - public class SubRaceItem : RaceItem { + [DataMember] + public string ParentRaceId { get; set; } } } diff --git a/AideDeJeu/AideDeJeu/ViewModels/PlayerCharacterEditorViewModel.cs b/AideDeJeu/AideDeJeu/ViewModels/PlayerCharacterEditorViewModel.cs index 93ddb006..2407f960 100644 --- a/AideDeJeu/AideDeJeu/ViewModels/PlayerCharacterEditorViewModel.cs +++ b/AideDeJeu/AideDeJeu/ViewModels/PlayerCharacterEditorViewModel.cs @@ -111,8 +111,8 @@ namespace AideDeJeu.ViewModels { using (var context = await StoreViewModel.GetLibraryContextAsync()) { - Races = await context.Races.Where(r => r.GetType() == typeof(RaceItem)).OrderBy(r => Tools.Helpers.RemoveDiacritics(r.Name)).ToListAsync(); - Classes = await context.Classes.Where(c => c.GetType() == typeof(ClassItem)).OrderBy(c => Tools.Helpers.RemoveDiacritics(c.Name)).ToListAsync(); + Races = await context.Races.Where(r => !r.HasSubRaces).OrderBy(r => Tools.Helpers.RemoveDiacritics(r.Name)).ToListAsync(); + Classes = await context.Classes.Where(c => !(c is SubClassItem)).OrderBy(c => Tools.Helpers.RemoveDiacritics(c.Name)).ToListAsync(); Backgrounds = await context.Backgrounds.Where(b => b.GetType() == typeof(BackgroundItem)).OrderBy(b => Tools.Helpers.RemoveDiacritics(b.Name)).ToListAsync(); } } diff --git a/AideDeJeu/AideDeJeuCmd/Program.cs b/AideDeJeu/AideDeJeuCmd/Program.cs index 3083f165..bfad5077 100644 --- a/AideDeJeu/AideDeJeuCmd/Program.cs +++ b/AideDeJeu/AideDeJeuCmd/Program.cs @@ -348,7 +348,14 @@ namespace AideDeJeuCmd using (var context = await StoreViewModel.GetLibraryContextAsync()) { - await context.Database.EnsureDeletedAsync(); + try + { + await context.Database.EnsureDeletedAsync(); + } + catch + { + + } await context.Database.EnsureCreatedAsync(); await context.Items.AddRangeAsync(store._AllItems.Values); @@ -364,7 +371,7 @@ namespace AideDeJeuCmd var backgrounds = await context.Backgrounds.ToListAsync(); var items = await context.Items.ToListAsync(); - foreach (var c in classes) + foreach (ClassItem c in classes) { var parent = items.Where(it => it.Id == c.ParentLink).FirstOrDefault(); if (parent != null) @@ -372,20 +379,34 @@ namespace AideDeJeuCmd var pparent = items.Where(iit => iit.Id == parent.ParentLink).FirstOrDefault(); if(pparent != null && pparent is ClassItem) { + var sc = c as SubClassItem; + sc.ParentClassId = pparent.NewId; Console.WriteLine($"{pparent.Name} - {c.Name}"); } + else + { + } } } - foreach(var r in races) + foreach (var r in races) + { + r.HasSubRaces = false; + } + foreach (var r in races) { var parent = items.Where(it => it.Id == r.ParentLink).FirstOrDefault(); if(parent != null && parent is RaceItem) { - Console.WriteLine($"{parent.Name} - {r.Name}"); + var sr = r as SubRaceItem; + sr.FullName = $"{parent.Name} - {r.Name}"; + sr.ParentRaceId = parent.NewId; + (parent as RaceItem).HasSubRaces = true; + Console.WriteLine(sr.FullName); } else { + r.FullName = r.Name; Console.WriteLine($"{r.Name}"); } } @@ -454,6 +475,7 @@ namespace AideDeJeuCmd } } int i = 1; + await context.SaveChangesAsync(); //var serializer = new SerializerBuilder() // .WithTagMapping("!MonsterHD", typeof(MonsterHD)) diff --git a/Data/HD/hd_aasimar.md b/Data/HD/hd_aasimar.md index cff3eb1a..b1bcfc2f 100644 --- a/Data/HD/hd_aasimar.md +++ b/Data/HD/hd_aasimar.md @@ -1,5 +1,6 @@ --- !RaceItem +FullName: Aasimar WisdomBonus: 1 CharismaBonus: 2 Age: Les aasimars vieillissent à un rythme comparable à celui des humains. Leur espérance de vie est cependant supérieure, et ils peuvent dépasser les 120 ans. diff --git a/Data/HD/hd_barbarian_berserker.md b/Data/HD/hd_barbarian_berserker.md index 543a67bc..afbd038e 100644 --- a/Data/HD/hd_barbarian_berserker.md +++ b/Data/HD/hd_barbarian_berserker.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_barbarian.md Id: barbarian_berserker_hd.md#voie-du-berserker RootId: barbarian_berserker_hd.md ParentLink: barbarian_hd.md#voies-primitives diff --git a/Data/HD/hd_barbarian_howling.md b/Data/HD/hd_barbarian_howling.md index 32c05cb4..ab910669 100644 --- a/Data/HD/hd_barbarian_howling.md +++ b/Data/HD/hd_barbarian_howling.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_barbarian.md Id: barbarian_howling_hd.md#voie-du-hurlement RootId: barbarian_howling_hd.md ParentLink: barbarian_hd.md#voies-primitives diff --git a/Data/HD/hd_barbarian_spirits.md b/Data/HD/hd_barbarian_spirits.md index 248761d0..c69fbeaa 100644 --- a/Data/HD/hd_barbarian_spirits.md +++ b/Data/HD/hd_barbarian_spirits.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_barbarian.md Id: barbarian_spirits_hd.md#voie-des-esprits RootId: barbarian_spirits_hd.md ParentLink: barbarian_hd.md#voies-primitives diff --git a/Data/HD/hd_barbarian_steel.md b/Data/HD/hd_barbarian_steel.md index e86532f2..e44ea704 100644 --- a/Data/HD/hd_barbarian_steel.md +++ b/Data/HD/hd_barbarian_steel.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_barbarian.md Id: barbarian_steel_hd.md#voie-de-lacier RootId: barbarian_steel_hd.md ParentLink: barbarian_hd.md#voies-primitives diff --git a/Data/HD/hd_bard_acrobats.md b/Data/HD/hd_bard_acrobats.md index ccf26014..fe583411 100644 --- a/Data/HD/hd_bard_acrobats.md +++ b/Data/HD/hd_bard_acrobats.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_bard.md Id: bard_acrobats_hd.md#collège-des-saltimbanques RootId: bard_acrobats_hd.md ParentLink: bard_hd.md#collèges-bardiques diff --git a/Data/HD/hd_bard_diplomats.md b/Data/HD/hd_bard_diplomats.md index 241e8cda..6e699cdd 100644 --- a/Data/HD/hd_bard_diplomats.md +++ b/Data/HD/hd_bard_diplomats.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_bard.md Id: bard_diplomats_hd.md#collège-des-diplomates RootId: bard_diplomats_hd.md ParentLink: bard_hd.md#collèges-bardiques diff --git a/Data/HD/hd_bard_heralds.md b/Data/HD/hd_bard_heralds.md index 1507d02f..1339c291 100644 --- a/Data/HD/hd_bard_heralds.md +++ b/Data/HD/hd_bard_heralds.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_bard.md Id: bard_heralds_hd.md#collège-des-hérauts RootId: bard_heralds_hd.md ParentLink: bard_hd.md#collèges-bardiques diff --git a/Data/HD/hd_bard_knowledge.md b/Data/HD/hd_bard_knowledge.md index 0e3025f5..adff42c9 100644 --- a/Data/HD/hd_bard_knowledge.md +++ b/Data/HD/hd_bard_knowledge.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_bard.md Id: bard_knowledge_hd.md#collège-du-savoir RootId: bard_knowledge_hd.md ParentLink: bard_hd.md#collèges-bardiques diff --git a/Data/HD/hd_cleric_guide.md b/Data/HD/hd_cleric_guide.md index fb2e0f3f..046ea609 100644 --- a/Data/HD/hd_cleric_guide.md +++ b/Data/HD/hd_cleric_guide.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_cleric.md Id: cleric_guide_hd.md#guide-spirituel RootId: cleric_guide_hd.md ParentLink: cleric_hd.md#domaines-divins diff --git a/Data/HD/hd_cleric_life.md b/Data/HD/hd_cleric_life.md index 14528c22..e2402f6d 100644 --- a/Data/HD/hd_cleric_life.md +++ b/Data/HD/hd_cleric_life.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_cleric.md Id: cleric_life_hd.md#domaine-de-la-vie RootId: cleric_life_hd.md ParentLink: cleric_hd.md#domaines-divins diff --git a/Data/HD/hd_cleric_priest.md b/Data/HD/hd_cleric_priest.md index 4d402dc3..16d182d1 100644 --- a/Data/HD/hd_cleric_priest.md +++ b/Data/HD/hd_cleric_priest.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_cleric.md Id: cleric_priest_hd.md#prêtre RootId: cleric_priest_hd.md ParentLink: cleric_hd.md#domaines-divins diff --git a/Data/HD/hd_cleric_theurgist.md b/Data/HD/hd_cleric_theurgist.md index 84f59a2c..a5fa4195 100644 --- a/Data/HD/hd_cleric_theurgist.md +++ b/Data/HD/hd_cleric_theurgist.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_cleric.md Id: cleric_theurgist_hd.md#théurge RootId: cleric_theurgist_hd.md ParentLink: cleric_hd.md#domaines-divins diff --git a/Data/HD/hd_cleric_traditions.md b/Data/HD/hd_cleric_traditions.md index 799e12f6..cbf3f3a4 100644 --- a/Data/HD/hd_cleric_traditions.md +++ b/Data/HD/hd_cleric_traditions.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_cleric.md Id: cleric_traditions_hd.md#gardien-des-traditions RootId: cleric_traditions_hd.md ParentLink: cleric_hd.md#domaines-divins diff --git a/Data/HD/hd_demi_ogre.md b/Data/HD/hd_demi_ogre.md index 69c8bb42..8748868b 100644 --- a/Data/HD/hd_demi_ogre.md +++ b/Data/HD/hd_demi_ogre.md @@ -1,5 +1,6 @@ --- !RaceItem +FullName: Demi-ogre StrengthBonus: 2 ConstitutionBonus: 2 Age: Les demi-ogres arrivent rapidement à l'âge adulte, à l'âge de 10 ans. Cependant, une fois leur maturité atteinte, ils vieillissent légèrement plus lentement que les êtres humains. Ainsi, un demi-ogre peut vivre jusqu'à un âge de 125 ans, voire plus, pour peu qu'il ait l'incroyable (et rare) chance de ne pas être mort de manière violente auparavant. diff --git a/Data/HD/hd_dragonborn.md b/Data/HD/hd_dragonborn.md index 20e3a938..537ddd5f 100644 --- a/Data/HD/hd_dragonborn.md +++ b/Data/HD/hd_dragonborn.md @@ -1,5 +1,6 @@ --- !RaceItem +FullName: Sangdragon StrengthBonus: 2 CharismaBonus: 1 Age: Les sangdragons grandissent vite. Une fois qu'ils ont éclos, il ne leur faut que quelques heures pour savoir marcher. Ils atteignent une taille et un niveau de développement équivalent à un humain de 10 ans en seulement 3 ans. Ils atteignent l'âge adulte vers 15 ans et ils vivent environ 80 ans. diff --git a/Data/HD/hd_druid_depths.md b/Data/HD/hd_druid_depths.md index 9d9b8934..512d6096 100644 --- a/Data/HD/hd_druid_depths.md +++ b/Data/HD/hd_druid_depths.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_druid.md Id: druid_depths_hd.md#cercle-des-profondeurs RootId: druid_depths_hd.md ParentLink: druid_hd.md#cercles-druidiques diff --git a/Data/HD/hd_druid_earth.md b/Data/HD/hd_druid_earth.md index e3367ef4..4e10471e 100644 --- a/Data/HD/hd_druid_earth.md +++ b/Data/HD/hd_druid_earth.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_druid.md Id: druid_earth_hd.md#cercle-de-la-terre RootId: druid_earth_hd.md ParentLink: druid_hd.md#cercles-druidiques diff --git a/Data/HD/hd_druid_fairies.md b/Data/HD/hd_druid_fairies.md index 35abe1d9..b92375f2 100644 --- a/Data/HD/hd_druid_fairies.md +++ b/Data/HD/hd_druid_fairies.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_druid.md Id: druid_fairies_hd.md#cercle-des-fées RootId: druid_fairies_hd.md ParentLink: druid_hd.md#cercles-druidiques diff --git a/Data/HD/hd_druid_seasons.md b/Data/HD/hd_druid_seasons.md index b64872eb..af3bab69 100644 --- a/Data/HD/hd_druid_seasons.md +++ b/Data/HD/hd_druid_seasons.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_druid.md Id: druid_seasons_hd.md#cercle-des-saisons RootId: druid_seasons_hd.md ParentLink: druid_hd.md#cercles-druidiques diff --git a/Data/HD/hd_dwarf.md b/Data/HD/hd_dwarf.md index 1bb96bd7..79993da8 100644 --- a/Data/HD/hd_dwarf.md +++ b/Data/HD/hd_dwarf.md @@ -1,5 +1,7 @@ --- !RaceItem +FullName: Nain +HasSubRaces: true ConstitutionBonus: 2 Age: Les nains deviennent matures au même rythme que les humains, mais ils se considèrent encore jeunes jusqu'à l'âge de 50 ans. Ils vivent en moyenne 350 ans. Alignment: La majorité des nains est d'alignement Loyal et croit profondément aux bienfaits d'une société organisée. Les nains sont plutôt attirés vers le bien, ont un sens inné de ce qui est juste et sont convaincus que tout le monde mérite de partager les bienfaits de l'ordre et de la justice. diff --git a/Data/HD/hd_dwarf_nain_des_laves.md b/Data/HD/hd_dwarf_nain_des_laves.md index 76ce71e0..92a59237 100644 --- a/Data/HD/hd_dwarf_nain_des_laves.md +++ b/Data/HD/hd_dwarf_nain_des_laves.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_dwarf.md +FullName: Nain - Nain des laves StrengthBonus: 1 Id: dwarf_hd.md#nain-des-laves ParentLink: dwarf_hd.md#nain diff --git a/Data/HD/hd_dwarf_nain_des_pierres.md b/Data/HD/hd_dwarf_nain_des_pierres.md index 84f74a9e..04318e29 100644 --- a/Data/HD/hd_dwarf_nain_des_pierres.md +++ b/Data/HD/hd_dwarf_nain_des_pierres.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_dwarf.md +FullName: Nain - Nain des pierres IntelligenceBonus: 1 Id: dwarf_hd.md#nain-des-pierres ParentLink: dwarf_hd.md#nain diff --git a/Data/HD/hd_dwarf_nain_des_tertres.md b/Data/HD/hd_dwarf_nain_des_tertres.md index 0180cc7c..ee306134 100644 --- a/Data/HD/hd_dwarf_nain_des_tertres.md +++ b/Data/HD/hd_dwarf_nain_des_tertres.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_dwarf.md +FullName: Nain - Nain des tertres WisdomBonus: 1 Id: dwarf_hd.md#nain-des-tertres ParentLink: dwarf_hd.md#nain diff --git a/Data/HD/hd_elf.md b/Data/HD/hd_elf.md index 19c9632e..c2630bca 100644 --- a/Data/HD/hd_elf.md +++ b/Data/HD/hd_elf.md @@ -1,5 +1,7 @@ --- !RaceItem +FullName: Elfe +HasSubRaces: true DexterityBonus: 2 Age: Bien que les elfes atteignent leur maturité physique environ au même âge que les humains, ils considèrent qu'être un adulte dépasse ce simple aspect et prend en compte l'expérience de la vie. Un elfe se déclare généralement adulte vers 100 ans et choisit à ce moment-là son nom d'adulte. Les elfes peuvent vivre jusqu'à 750 ans. Alignment: Les elfes sont épris de liberté, de diversité et d'expression individuelle. C'est pourquoi ils tendent fortement vers les aspects les plus modérés du chaos. La liberté des autres a autant de valeur à leurs yeux que la leur et ils sont plutôt enclins à faire le bien. Les elfes de sang sont une exception. Leur exil les a rendus vicieux et dangereux et, en ce qui les concerne, ils sont plutôt enclins à faire le mal. diff --git a/Data/HD/hd_elf_elfe_daether.md b/Data/HD/hd_elf_elfe_daether.md index bcbed8f5..fccda244 100644 --- a/Data/HD/hd_elf_elfe_daether.md +++ b/Data/HD/hd_elf_elfe_daether.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_elf.md +FullName: Elfe - Elfe d'aether IntelligenceBonus: 1 Id: elf_hd.md#elfe-daether ParentLink: elf_hd.md#elfe diff --git a/Data/HD/hd_elf_elfe_de_fer.md b/Data/HD/hd_elf_elfe_de_fer.md index f6b083d7..8897781e 100644 --- a/Data/HD/hd_elf_elfe_de_fer.md +++ b/Data/HD/hd_elf_elfe_de_fer.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_elf.md +FullName: Elfe - Elfe de fer CharismaBonus: 1 Id: elf_hd.md#elfe-de-fer ParentLink: elf_hd.md#elfe diff --git a/Data/HD/hd_elf_elfe_des_sylves.md b/Data/HD/hd_elf_elfe_des_sylves.md index 01123ee7..797be26f 100644 --- a/Data/HD/hd_elf_elfe_des_sylves.md +++ b/Data/HD/hd_elf_elfe_des_sylves.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_elf.md +FullName: Elfe - Elfe des sylves WisdomBonus: 1 Id: elf_hd.md#elfe-des-sylves ParentLink: elf_hd.md#elfe diff --git a/Data/HD/hd_felys.md b/Data/HD/hd_felys.md index 27588471..2cb59aa9 100644 --- a/Data/HD/hd_felys.md +++ b/Data/HD/hd_felys.md @@ -1,5 +1,6 @@ --- !RaceItem +FullName: Félys DexterityBonus: 2 WisdomBonus: 1 Age: Les félys atteignent rapidement l'âge adulte, aux alentours de 8 ans environ. Cependant, ils vivent moins longtemps qu'un être humain et il est rare de voir un félys dépasser les 50 ans. diff --git a/Data/HD/hd_fighter_champion.md b/Data/HD/hd_fighter_champion.md index 6e5fd3ea..db25650c 100644 --- a/Data/HD/hd_fighter_champion.md +++ b/Data/HD/hd_fighter_champion.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_fighter.md Id: fighter_champion_hd.md#champion RootId: fighter_champion_hd.md ParentLink: fighter_hd.md#archétypes-martiaux diff --git a/Data/HD/hd_fighter_defender.md b/Data/HD/hd_fighter_defender.md index e16f6a33..976fa4ac 100644 --- a/Data/HD/hd_fighter_defender.md +++ b/Data/HD/hd_fighter_defender.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_fighter.md Id: fighter_defender_hd.md#défenseur RootId: fighter_defender_hd.md ParentLink: fighter_hd.md#archétypes-martiaux diff --git a/Data/HD/hd_fighter_spellblade.md b/Data/HD/hd_fighter_spellblade.md index 56f32055..ab85ca9a 100644 --- a/Data/HD/hd_fighter_spellblade.md +++ b/Data/HD/hd_fighter_spellblade.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_fighter.md Id: fighter_spellblade_hd.md#sorcelame RootId: fighter_spellblade_hd.md ParentLink: fighter_hd.md#archétypes-martiaux diff --git a/Data/HD/hd_fighter_swordsman.md b/Data/HD/hd_fighter_swordsman.md index e57ba36c..6663df9c 100644 --- a/Data/HD/hd_fighter_swordsman.md +++ b/Data/HD/hd_fighter_swordsman.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_fighter.md Id: fighter_swordsman_hd.md#bretteur RootId: fighter_swordsman_hd.md ParentLink: fighter_hd.md#archétypes-martiaux diff --git a/Data/HD/hd_gnome.md b/Data/HD/hd_gnome.md index fc06a7f6..34df3f37 100644 --- a/Data/HD/hd_gnome.md +++ b/Data/HD/hd_gnome.md @@ -1,5 +1,7 @@ --- !RaceItem +FullName: Gnome +HasSubRaces: true IntelligenceBonus: 2 Age: Les gnomes grandissent un peu moins vite que les humains et la plupart rentrent dans la vie adulte vers l'âge de 40 ans. Ils peuvent vivre de 350 à presque 500 ans. Alignment: Les gnomes sont généralement attirés par le Bien. Ceux qui sont attirés par la loi sont des sages, des ingénieurs, des chercheurs, des érudits, des enquêteurs ou des inventeurs. Ceux qui sont plus attirés par le chaos deviennent ménestrels, arnaqueurs, vagabonds ou bijoutiers fantaisistes. Les gnomes ont bon coeur et mêmes les plus filous d'entre eux sont plus taquins que mal intentionnés. diff --git a/Data/HD/hd_gnome_gnome_des_fees.md b/Data/HD/hd_gnome_gnome_des_fees.md index 8a91c839..0ea8b415 100644 --- a/Data/HD/hd_gnome_gnome_des_fees.md +++ b/Data/HD/hd_gnome_gnome_des_fees.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_gnome.md +FullName: Gnome - Gnome des fées DexterityBonus: 1 Id: gnome_hd.md#gnome-des-fées ParentLink: gnome_hd.md#gnome diff --git a/Data/HD/hd_gnome_gnome_des_lacs.md b/Data/HD/hd_gnome_gnome_des_lacs.md index ab1c9452..e3528c83 100644 --- a/Data/HD/hd_gnome_gnome_des_lacs.md +++ b/Data/HD/hd_gnome_gnome_des_lacs.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_gnome.md +FullName: Gnome - Gnome des lacs WisdomBonus: 1 Id: gnome_hd.md#gnome-des-lacs ParentLink: gnome_hd.md#gnome diff --git a/Data/HD/hd_gnome_gnome_des_roches.md b/Data/HD/hd_gnome_gnome_des_roches.md index 05ecfc89..b566d74f 100644 --- a/Data/HD/hd_gnome_gnome_des_roches.md +++ b/Data/HD/hd_gnome_gnome_des_roches.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_gnome.md +FullName: Gnome - Gnome des roches ConstitutionBonus: 1 Id: gnome_hd.md#gnome-des-roches ParentLink: gnome_hd.md#gnome diff --git a/Data/HD/hd_half_elf.md b/Data/HD/hd_half_elf.md index cb5abc8d..be96f38b 100644 --- a/Data/HD/hd_half_elf.md +++ b/Data/HD/hd_half_elf.md @@ -1,5 +1,6 @@ --- !RaceItem +FullName: Demi-elfe CharismaBonus: 2 AnyAbilityBonus: 2 Age: Les demi-elfes grandissent au même rythme que les [humains] et atteignent leur maturité vers 20 ans. Par contre, ils vivent bien plus longtemps que les [humains] et il n'est pas rare qu'ils dépassent 180 ans. diff --git a/Data/HD/hd_half_orc.md b/Data/HD/hd_half_orc.md index d0901af2..cb06533b 100644 --- a/Data/HD/hd_half_orc.md +++ b/Data/HD/hd_half_orc.md @@ -1,5 +1,6 @@ --- !RaceItem +FullName: Demi-orc StrengthBonus: 2 ConstitutionBonus: 1 Age: Les demi-orcs deviennent matures un peu plus vite que les humains. Ils sont considérés comme adultes vers 14 ans. Par contre, ils vieillissent plus vite et vivent rarement plus de 75 ans. diff --git a/Data/HD/hd_halfling.md b/Data/HD/hd_halfling.md index 327402c2..bdd28d9e 100644 --- a/Data/HD/hd_halfling.md +++ b/Data/HD/hd_halfling.md @@ -1,5 +1,7 @@ --- !RaceItem +FullName: Halfelin +HasSubRaces: true DexterityBonus: 2 Age: Un halfelin atteint la maturité vers 20 ans et vit généralement 150 ans. Alignment: La majorité des halfelins est d'alignement Loyal Bon. Ce sont par nature des êtres qui ont un bon coeur et qui sont affables. Ils détestent voir les autres créatures souffrir et ne tolèrent pas l'oppression. Ils sont aussi très organisés et respectueux des traditions. Ils se reposent beaucoup sur leur communauté et le confort apporté par leurs coutumes. diff --git a/Data/HD/hd_halfling_halfelin_grand_sabot.md b/Data/HD/hd_halfling_halfelin_grand_sabot.md index e850dbd2..a0bd08e3 100644 --- a/Data/HD/hd_halfling_halfelin_grand_sabot.md +++ b/Data/HD/hd_halfling_halfelin_grand_sabot.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_halfling.md +FullName: Halfelin - Halfelin grand-sabot ConstitutionBonus: 1 Id: halfling_hd.md#halfelin-grand-sabot ParentLink: halfling_hd.md#halfelin diff --git a/Data/HD/hd_halfling_halfelin_pied_leger.md b/Data/HD/hd_halfling_halfelin_pied_leger.md index 3ff78212..42ee63a5 100644 --- a/Data/HD/hd_halfling_halfelin_pied_leger.md +++ b/Data/HD/hd_halfling_halfelin_pied_leger.md @@ -1,5 +1,7 @@ --- !SubRaceItem +ParentRaceId: hd_halfling.md +FullName: Halfelin - Halfelin pied-léger CharismaBonus: 1 Id: halfling_hd.md#halfelin-pied-léger ParentLink: halfling_hd.md#halfelin diff --git a/Data/HD/hd_homme_serpent.md b/Data/HD/hd_homme_serpent.md index 93aa6e34..ddeb342d 100644 --- a/Data/HD/hd_homme_serpent.md +++ b/Data/HD/hd_homme_serpent.md @@ -1,5 +1,6 @@ --- !RaceItem +FullName: Homme serpent WisdomBonus: 2 CharismaBonus: 1 Age: Les hommes serpents peuvent vivre bien plus longtemps qu'un être humain. Ils atteignent leur maturité à l'âge de 13 ans environ, mais peuvent vivre jusqu'à 150 ans. Cependant, ils peuvent prolonger leur durée de vie en se plongeant dans de longues hibernations qui leur permettent de survivre des dizaines, parfois des centaines d'années avant de se réveiller de nouveau. Cependant, seuls les plus sages des hommes-serpents sont capables d'un tel exploit. diff --git a/Data/HD/hd_human.md b/Data/HD/hd_human.md index f2666f2d..f6a60446 100644 --- a/Data/HD/hd_human.md +++ b/Data/HD/hd_human.md @@ -1,5 +1,6 @@ --- !RaceItem +FullName: Humain StrengthBonus: 1 DexterityBonus: 1 ConstitutionBonus: 1 diff --git a/Data/HD/hd_monk_enlightenment.md b/Data/HD/hd_monk_enlightenment.md index c50f64cd..86010217 100644 --- a/Data/HD/hd_monk_enlightenment.md +++ b/Data/HD/hd_monk_enlightenment.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_monk.md Id: monk_enlightenment_hd.md#voie-de-lillumination RootId: monk_enlightenment_hd.md ParentLink: monk_hd.md#traditions-monacales diff --git a/Data/HD/hd_monk_fiveanimals.md b/Data/HD/hd_monk_fiveanimals.md index b64cabc0..d50cd5c0 100644 --- a/Data/HD/hd_monk_fiveanimals.md +++ b/Data/HD/hd_monk_fiveanimals.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_monk.md Id: monk_fiveanimals_hd.md#voie-des-cinq-animaux RootId: monk_fiveanimals_hd.md ParentLink: monk_hd.md#traditions-monacales diff --git a/Data/HD/hd_monk_flexibility.md b/Data/HD/hd_monk_flexibility.md index a750c66c..ecc8d7d9 100644 --- a/Data/HD/hd_monk_flexibility.md +++ b/Data/HD/hd_monk_flexibility.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_monk.md Id: monk_flexibility_hd.md#voie-de-la-souplesse RootId: monk_flexibility_hd.md ParentLink: monk_hd.md#traditions-monacales diff --git a/Data/HD/hd_monk_openhand.md b/Data/HD/hd_monk_openhand.md index 804fd8fb..95facbbf 100644 --- a/Data/HD/hd_monk_openhand.md +++ b/Data/HD/hd_monk_openhand.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_monk.md Id: monk_openhand_hd.md#voie-de-la-main-ouverte RootId: monk_openhand_hd.md ParentLink: monk_hd.md#traditions-monacales diff --git a/Data/HD/hd_paladin_devotion.md b/Data/HD/hd_paladin_devotion.md index 45228802..23934bc5 100644 --- a/Data/HD/hd_paladin_devotion.md +++ b/Data/HD/hd_paladin_devotion.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_paladin.md Id: paladin_devotion_hd.md#serment-de-dévotion RootId: paladin_devotion_hd.md ParentLink: paladin_hd.md#serments-sacrés diff --git a/Data/HD/hd_paladin_obedience.md b/Data/HD/hd_paladin_obedience.md index cb834681..b08fd7fd 100644 --- a/Data/HD/hd_paladin_obedience.md +++ b/Data/HD/hd_paladin_obedience.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_paladin.md Id: paladin_obedience_hd.md#serment-dobédience RootId: paladin_obedience_hd.md ParentLink: paladin_hd.md#serments-sacrés diff --git a/Data/HD/hd_paladin_perfection.md b/Data/HD/hd_paladin_perfection.md index cf547e22..c792a00b 100644 --- a/Data/HD/hd_paladin_perfection.md +++ b/Data/HD/hd_paladin_perfection.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_paladin.md Id: paladin_perfection_hd.md#serment-de-perfection RootId: paladin_perfection_hd.md ParentLink: paladin_hd.md#serments-sacrés diff --git a/Data/HD/hd_paladin_piety.md b/Data/HD/hd_paladin_piety.md index 9d1540d5..0a1428f3 100644 --- a/Data/HD/hd_paladin_piety.md +++ b/Data/HD/hd_paladin_piety.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_paladin.md Id: paladin_piety_hd.md#serment-de-piété RootId: paladin_piety_hd.md ParentLink: paladin_hd.md#serments-sacrés diff --git a/Data/HD/hd_paladin_redemption.md b/Data/HD/hd_paladin_redemption.md index 2312d182..7f2f226d 100644 --- a/Data/HD/hd_paladin_redemption.md +++ b/Data/HD/hd_paladin_redemption.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_paladin.md Id: paladin_redemption_hd.md#serment-de-rédemption RootId: paladin_redemption_hd.md ParentLink: paladin_hd.md#serments-sacrés diff --git a/Data/HD/hd_rogue_brute.md b/Data/HD/hd_rogue_brute.md index 216cef63..1e0ed7cf 100644 --- a/Data/HD/hd_rogue_brute.md +++ b/Data/HD/hd_rogue_brute.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_rogue.md Id: rogue_brute_hd.md#brute RootId: rogue_brute_hd.md ParentLink: rogue_hd.md#archétypes-de-roublard diff --git a/Data/HD/hd_rogue_ombrelame.md b/Data/HD/hd_rogue_ombrelame.md index 91c7a910..dfb290ed 100644 --- a/Data/HD/hd_rogue_ombrelame.md +++ b/Data/HD/hd_rogue_ombrelame.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_rogue.md Id: rogue_ombrelame_hd.md#ombrelame RootId: rogue_ombrelame_hd.md ParentLink: rogue_hd.md#archétypes-de-roublard diff --git a/Data/HD/hd_rogue_spy.md b/Data/HD/hd_rogue_spy.md index 2b80e2aa..efdf79ea 100644 --- a/Data/HD/hd_rogue_spy.md +++ b/Data/HD/hd_rogue_spy.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_rogue.md Id: rogue_spy_hd.md#espion RootId: rogue_spy_hd.md ParentLink: rogue_hd.md#archétypes-de-roublard diff --git a/Data/HD/hd_rogue_thief.md b/Data/HD/hd_rogue_thief.md index d2157bfa..1f014c27 100644 --- a/Data/HD/hd_rogue_thief.md +++ b/Data/HD/hd_rogue_thief.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_rogue.md Id: rogue_thief_hd.md#voleur RootId: rogue_thief_hd.md ParentLink: rogue_hd.md#archétypes-de-roublard diff --git a/Data/HD/hd_sorcerer_celestial.md b/Data/HD/hd_sorcerer_celestial.md index c33f153f..4d824540 100644 --- a/Data/HD/hd_sorcerer_celestial.md +++ b/Data/HD/hd_sorcerer_celestial.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_sorcerer.md Id: sorcerer_celestial_hd.md#lignée-céleste RootId: sorcerer_celestial_hd.md ParentLink: sorcerer_hd.md#origines-magiques diff --git a/Data/HD/hd_sorcerer_draconic.md b/Data/HD/hd_sorcerer_draconic.md index edeb3b65..768deed8 100644 --- a/Data/HD/hd_sorcerer_draconic.md +++ b/Data/HD/hd_sorcerer_draconic.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_sorcerer.md Id: sorcerer_draconic_hd.md#lignée-draconique RootId: sorcerer_draconic_hd.md ParentLink: sorcerer_hd.md#origines-magiques diff --git a/Data/HD/hd_sorcerer_fairy.md b/Data/HD/hd_sorcerer_fairy.md index d3a5d7ab..d9483582 100644 --- a/Data/HD/hd_sorcerer_fairy.md +++ b/Data/HD/hd_sorcerer_fairy.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_sorcerer.md Id: sorcerer_fairy_hd.md#lignée-féerique RootId: sorcerer_fairy_hd.md ParentLink: sorcerer_hd.md#origines-magiques diff --git a/Data/HD/hd_sorcerer_infernal.md b/Data/HD/hd_sorcerer_infernal.md index d27a641b..15a1d421 100644 --- a/Data/HD/hd_sorcerer_infernal.md +++ b/Data/HD/hd_sorcerer_infernal.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_sorcerer.md Id: sorcerer_infernal_hd.md#lignée-infernale RootId: sorcerer_infernal_hd.md ParentLink: sorcerer_hd.md#origines-magiques diff --git a/Data/HD/hd_tiefling.md b/Data/HD/hd_tiefling.md index 3a1c0f79..34166b03 100644 --- a/Data/HD/hd_tiefling.md +++ b/Data/HD/hd_tiefling.md @@ -1,5 +1,6 @@ --- !RaceItem +FullName: Tieffelin IntelligenceBonus: 1 CharismaBonus: 2 Age: Les tieffelins vieillissent à une vitesse comparable aux humains, mais ils vivent quelques années supplémentaires. diff --git a/Data/HD/hd_warlock_depths.md b/Data/HD/hd_warlock_depths.md index ae872132..0a4b18c5 100644 --- a/Data/HD/hd_warlock_depths.md +++ b/Data/HD/hd_warlock_depths.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_warlock.md Id: warlock_depths_hd.md#la-puissance-des-profondeurs RootId: warlock_depths_hd.md ParentLink: warlock_hd.md#protecteurs-doutre-monde diff --git a/Data/HD/hd_warlock_extradimensional.md b/Data/HD/hd_warlock_extradimensional.md index a8267d5a..d9a1ec76 100644 --- a/Data/HD/hd_warlock_extradimensional.md +++ b/Data/HD/hd_warlock_extradimensional.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_warlock.md Id: warlock_extradimensional_hd.md#lentité-extra-dimensionnelle RootId: warlock_extradimensional_hd.md ParentLink: warlock_hd.md#protecteurs-doutre-monde diff --git a/Data/HD/hd_warlock_fiendish.md b/Data/HD/hd_warlock_fiendish.md index 51b2fa7e..3ffa7b27 100644 --- a/Data/HD/hd_warlock_fiendish.md +++ b/Data/HD/hd_warlock_fiendish.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_warlock.md Id: warlock_fiendish_hd.md#le-fiélon RootId: warlock_fiendish_hd.md ParentLink: warlock_hd.md#protecteurs-doutre-monde diff --git a/Data/HD/hd_warlock_immortal.md b/Data/HD/hd_warlock_immortal.md index 43acca02..5e4031ba 100644 --- a/Data/HD/hd_warlock_immortal.md +++ b/Data/HD/hd_warlock_immortal.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_warlock.md Id: warlock_immortal_hd.md#le-seigneur-immortel RootId: warlock_immortal_hd.md ParentLink: warlock_hd.md#protecteurs-doutre-monde diff --git a/Data/HD/hd_wizard_academician.md b/Data/HD/hd_wizard_academician.md index 873adaab..9cc6949f 100644 --- a/Data/HD/hd_wizard_academician.md +++ b/Data/HD/hd_wizard_academician.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_wizard.md Id: wizard_academician_hd.md#académicien RootId: wizard_academician_hd.md ParentLink: wizard_hd.md#traditions-arcaniques diff --git a/Data/HD/hd_wizard_elementalist.md b/Data/HD/hd_wizard_elementalist.md index 0db11796..afa56295 100644 --- a/Data/HD/hd_wizard_elementalist.md +++ b/Data/HD/hd_wizard_elementalist.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_wizard.md Id: wizard_elementalist_hd.md#Élémentaliste RootId: wizard_elementalist_hd.md ParentLink: wizard_hd.md#traditions-arcaniques diff --git a/Data/HD/hd_wizard_eminence.md b/Data/HD/hd_wizard_eminence.md index b505f43a..b16d3ea4 100644 --- a/Data/HD/hd_wizard_eminence.md +++ b/Data/HD/hd_wizard_eminence.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_wizard.md Id: wizard_eminence_hd.md#Éminence-grise RootId: wizard_eminence_hd.md ParentLink: wizard_hd.md#traditions-arcaniques diff --git a/Data/HD/hd_wizard_evocation.md b/Data/HD/hd_wizard_evocation.md index 8c5ac42b..f8860ea0 100644 --- a/Data/HD/hd_wizard_evocation.md +++ b/Data/HD/hd_wizard_evocation.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_wizard.md Id: wizard_evocation_hd.md#École-dévocation RootId: wizard_evocation_hd.md ParentLink: wizard_hd.md#traditions-arcaniques diff --git a/Data/HD/hd_wizard_surveyor.md b/Data/HD/hd_wizard_surveyor.md index 10cccea6..2cbadd8b 100644 --- a/Data/HD/hd_wizard_surveyor.md +++ b/Data/HD/hd_wizard_surveyor.md @@ -1,5 +1,6 @@ --- !SubClassItem +ParentClassId: hd_wizard.md Id: wizard_surveyor_hd.md#arpenteur RootId: wizard_surveyor_hd.md ParentLink: wizard_hd.md#traditions-arcaniques diff --git a/Data/library.db b/Data/library.db index b355e922..5edf81b1 100644 Binary files a/Data/library.db and b/Data/library.db differ