public HitpointsFeatureEditModel(HitPointsFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
     if (f.HitPointsPerLevel > 0)
     {
         f.HitPoints         = (f.HitPoints == null || f.HitPoints.Trim() == "0" || f.HitPoints.Trim() == "" ? "" : f.HitPoints + " + ") + "PlayerLevel " + (f.HitPointsPerLevel > 1 ? " * " + f.HitPointsPerLevel : "");
         f.HitPointsPerLevel = 0;
     }
 }
예제 #2
0
 public BonusFeatureEditModel(BonusFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
     if (f.DamageBonusModifier != Ability.None)
     {
         f.DamageBonus         = ResourceFeatureEditModel.convert(f.DamageBonusModifier, f.DamageBonus);
         f.DamageBonusModifier = Ability.None;
     }
 }
예제 #3
0
 public ResourceFeatureEditModel(ResourceFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
     if (f.ValueBonus != Ability.None)
     {
         f.Value      = convert(f.ValueBonus, f.Value);
         f.ValueBonus = Ability.None;
     }
 }
 public AbilityFeatFeatureEditModel(AbilityScoreFeatFeature feature, IEditModel parent, FeatureViewModel fvm) : base(feature, parent, fvm)
 {
 }
 public SkillProficiencyFeatureEditModel(SkillProficiencyFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
 public AddSpellsFeatureEditModel(BonusSpellPrepareFeature feature, IEditModel parent, FeatureViewModel fvm) : base(feature, parent, fvm)
 {
 }
예제 #7
0
 public SpellchoiceFeatureEditModel(SpellChoiceFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
예제 #8
0
 public ToolProficiencyExpressionFeatureEditModel(ToolKWProficiencyFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
예제 #9
0
 public BonusSpellFeatureEditModel(BonusSpellFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
예제 #10
0
 public FeatureEditModel(T feature, IEditModel parent, FeatureViewModel fvm) : base(feature.Keywords, parent)
 {
     Feature = feature;
     Model   = fvm;
 }
 public ToolProficiencyChoiceFeatureEditModel(ToolProficiencyChoiceConditionFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
 public ExtraAttackFeatureEditModel(ExtraAttackFeature feature, IEditModel parent, FeatureViewModel fvm) : base(feature, parent, fvm)
 {
 }
예제 #13
0
 public ItemChoiceCondtionEditModel(ItemChoiceConditionFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
예제 #14
0
 public VisionFeatureEditModel(VisionFeature feature, IEditModel parent, FeatureViewModel fvm) : base(feature, parent, fvm)
 {
 }
예제 #15
0
 public SpellSlotsFeatureEditModel(SpellSlotsFeature feature, IEditModel parent, FeatureViewModel fvm) : base(feature, parent, fvm)
 {
     Generate = new Command(() => {
         Text = Feature.tostring();
     });
 }
 public FreeItemGoldFeatureEditModel(FreeItemAndGoldFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
 public IncreaseSpellchoiceEditModel(IncreaseSpellChoiceAmountFeature feature, IEditModel parent, FeatureViewModel fvm) : base(feature, parent, fvm)
 {
 }
 public BonusSpellChoiceFeatureEditModel(BonusSpellKeywordChoiceFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
예제 #19
0
 public SubRaceFeatureEditModel(SubRaceFeature feature, IEditModel parent, FeatureViewModel fvm) : base(feature, parent, fvm)
 {
 }
예제 #20
0
 public ACFeatureEditModel(ACFeature feature, IEditModel parent, FeatureViewModel fvm) : base(feature, parent, fvm)
 {
 }
 public SpellcastingFeatureEditModel(SpellcastingFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
     if (f.PrepareCountAdditionalModifier != Ability.None)
     {
         f.PrepareCount = ResourceFeatureEditModel.convert(f.PrepareCountAdditionalModifier, f.PrepareCount);
         f.PrepareCountAdditionalModifier = Ability.None;
     }
     if (f.PrepareCountPerClassLevel != 0)
     {
         f.PrepareCount = (f.PrepareCount == null || f.PrepareCount.Trim() == "0" || f.PrepareCount.Trim() == "" ? "" : f.PrepareCount + " + ") + "ClassLevel" + (f.PrepareCountPerClassLevel > 1 ? " * " + f.PrepareCountPerClassLevel : "");
         f.PrepareCountPerClassLevel = 0;
     }
     if (f.PrepareCountAdditional != 0)
     {
         f.PrepareCount           = (f.PrepareCount == null || f.PrepareCount.Trim() == "0" || f.PrepareCount.Trim() == "" ? "" : f.PrepareCount + " + ") + f.PrepareCountAdditional;
         f.PrepareCountAdditional = 0;
     }
 }
예제 #22
0
 public SpeedFeatureEditModel(SpeedFeature feature, IEditModel parent, FeatureViewModel fvm) : base(feature, parent, fvm)
 {
 }
예제 #23
0
 public LanguageProficiencyChoiceFeatureEditModel(LanguageChoiceFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
예제 #24
0
 public MultiFeatureEditModel(MultiFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
예제 #25
0
 public ResistanceFeatureEditModel(ResistanceFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
예제 #26
0
 public CollectionChoiceFeatureEditModel(CollectionChoiceFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
 public ModifySpellchoiceEditModel(ModifySpellChoiceFeature feature, IEditModel parent, FeatureViewModel fvm) : base(feature, parent, fvm)
 {
 }
예제 #28
0
 public FormsCompanionsBonusFeatureEditModel(FormsCompanionsBonusFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }
예제 #29
0
 public ItemChoiceEditModel(ItemChoiceFeature f, IEditModel parent, FeatureViewModel fvm) : base(f, parent, fvm)
 {
 }