From 1dc349319f232a9321344fbe95f5e5fd9d410f5e Mon Sep 17 00:00:00 2001 From: Yan Maniez Date: Wed, 13 Feb 2019 23:00:06 +0100 Subject: [PATCH] Attributes partout --- AideDeJeu/AideDeJeu/Models/RaceItem.cs | 13 +++++++++++++ AideDeJeu/AideDeJeu/ViewModels/StoreViewModel.cs | 15 ++++++++++++++- Data/HD/hd_aasimar.md | 4 +++- Data/HD/hd_barbarian_berserker.md | 4 ++-- Data/HD/hd_barbarian_howling.md | 4 ++-- Data/HD/hd_barbarian_spirits.md | 4 ++-- Data/HD/hd_barbarian_steel.md | 4 ++-- Data/HD/hd_bard_acrobats.md | 4 ++-- Data/HD/hd_bard_diplomats.md | 4 ++-- Data/HD/hd_bard_heralds.md | 4 ++-- Data/HD/hd_bard_knowledge.md | 4 ++-- Data/HD/hd_cleric_guide.md | 4 ++-- Data/HD/hd_cleric_life.md | 4 ++-- Data/HD/hd_cleric_priest.md | 4 ++-- Data/HD/hd_cleric_theurgist.md | 4 ++-- Data/HD/hd_cleric_traditions.md | 4 ++-- Data/HD/hd_demi_ogre.md | 3 ++- Data/HD/hd_dragonborn.md | 6 +++++- Data/HD/hd_druid_depths.md | 4 ++-- Data/HD/hd_druid_earth.md | 4 ++-- Data/HD/hd_druid_fairies.md | 4 ++-- Data/HD/hd_druid_seasons.md | 4 ++-- Data/HD/hd_dwarf.md | 3 ++- Data/HD/hd_dwarf_nain_des_laves.md | 3 ++- Data/HD/hd_dwarf_nain_des_pierres.md | 3 ++- Data/HD/hd_dwarf_nain_des_tertres.md | 3 ++- Data/HD/hd_elf.md | 3 ++- Data/HD/hd_elf_elfe_daether.md | 3 ++- Data/HD/hd_elf_elfe_de_fer.md | 3 ++- Data/HD/hd_elf_elfe_des_sylves.md | 3 ++- Data/HD/hd_felys.md | 3 ++- Data/HD/hd_fighter_champion.md | 4 ++-- Data/HD/hd_fighter_defender.md | 4 ++-- Data/HD/hd_fighter_spellblade.md | 4 ++-- Data/HD/hd_fighter_swordsman.md | 4 ++-- Data/HD/hd_gnome.md | 3 ++- Data/HD/hd_gnome_gnome_des_fees.md | 3 ++- Data/HD/hd_gnome_gnome_des_lacs.md | 3 ++- Data/HD/hd_gnome_gnome_des_roches.md | 3 ++- Data/HD/hd_half_elf.md | 3 ++- Data/HD/hd_half_orc.md | 3 ++- Data/HD/hd_halfling.md | 3 ++- Data/HD/hd_halfling_halfelin_grand_sabot.md | 3 ++- Data/HD/hd_halfling_halfelin_pied_leger.md | 3 ++- Data/HD/hd_homme_serpent.md | 3 ++- Data/HD/hd_human.md | 3 ++- Data/HD/hd_monk_enlightenment.md | 4 ++-- Data/HD/hd_monk_fiveanimals.md | 4 ++-- Data/HD/hd_monk_flexibility.md | 4 ++-- Data/HD/hd_monk_openhand.md | 4 ++-- Data/HD/hd_paladin_devotion.md | 4 ++-- Data/HD/hd_paladin_obedience.md | 4 ++-- Data/HD/hd_paladin_perfection.md | 4 ++-- Data/HD/hd_paladin_piety.md | 4 ++-- Data/HD/hd_paladin_redemption.md | 4 ++-- Data/HD/hd_ranger_arcane.md | 4 ++-- Data/HD/hd_ranger_exile.md | 4 ++-- Data/HD/hd_ranger_hunter.md | 4 ++-- Data/HD/hd_ranger_pisteur.md | 4 ++-- Data/HD/hd_ranger_tracker.md | 4 ++-- Data/HD/hd_rogue_brute.md | 4 ++-- Data/HD/hd_rogue_ombrelame.md | 4 ++-- Data/HD/hd_rogue_spy.md | 4 ++-- Data/HD/hd_rogue_thief.md | 4 ++-- Data/HD/hd_sorcerer_celestial.md | 4 ++-- Data/HD/hd_sorcerer_draconic.md | 4 ++-- Data/HD/hd_sorcerer_fairy.md | 4 ++-- Data/HD/hd_sorcerer_infernal.md | 4 ++-- Data/HD/hd_tiefling.md | 5 ++++- Data/HD/hd_warlock_depths.md | 4 ++-- Data/HD/hd_warlock_extradimensional.md | 4 ++-- Data/HD/hd_warlock_fiendish.md | 4 ++-- Data/HD/hd_warlock_immortal.md | 4 ++-- Data/HD/hd_warlock_occultsummons.md | 4 ++-- Data/HD/hd_warlock_pact.md | 4 ++-- Data/HD/hd_wizard_academician.md | 4 ++-- Data/HD/hd_wizard_elementalist.md | 4 ++-- Data/HD/hd_wizard_eminence.md | 4 ++-- Data/HD/hd_wizard_evocation.md | 4 ++-- Data/HD/hd_wizard_surveyor.md | 4 ++-- Data/HD/sandbox%23agrandirretrecir.md | 3 ++- Data/HD/sandbox.md | 3 ++- 82 files changed, 193 insertions(+), 135 deletions(-) diff --git a/AideDeJeu/AideDeJeu/Models/RaceItem.cs b/AideDeJeu/AideDeJeu/Models/RaceItem.cs index 5fd46bde..c6a8eec8 100644 --- a/AideDeJeu/AideDeJeu/Models/RaceItem.cs +++ b/AideDeJeu/AideDeJeu/Models/RaceItem.cs @@ -11,19 +11,32 @@ namespace AideDeJeuLib public class RaceItem : Item { + [DataMember] public string StrengthBonus { get; set; } + [DataMember] public string DexterityBonus { get; set; } + [DataMember] public string ConstitutionBonus { get; set; } + [DataMember] public string IntelligenceBonus { get; set; } + [DataMember] public string WisdomBonus { get; set; } + [DataMember] public string CharismaBonus { get; set; } + [DataMember] public string AnyAbilityBonus { get; set; } + [DataMember] public string Age { get; set; } + [DataMember] public string Alignment { get; set; } + [DataMember] public string Size { get; set; } + [DataMember] public string Speed { get; set; } + [DataMember] public string Darkvision { get; set; } + [DataMember] public string Languages { get; set; } diff --git a/AideDeJeu/AideDeJeu/ViewModels/StoreViewModel.cs b/AideDeJeu/AideDeJeu/ViewModels/StoreViewModel.cs index 751a7508..cbe93663 100644 --- a/AideDeJeu/AideDeJeu/ViewModels/StoreViewModel.cs +++ b/AideDeJeu/AideDeJeu/ViewModels/StoreViewModel.cs @@ -178,6 +178,7 @@ namespace AideDeJeu.ViewModels return isname; } PropertyInfo prop = null; + string propertyName = null; foreach (var inline in inlines) { if (inline is HtmlInline) @@ -190,10 +191,11 @@ namespace AideDeJeu.ViewModels else if (tag.StartsWith("