Exemple #1
0
 public CastRateStatBuilder(IStatFactory statFactory)
     : this(statFactory,
            LeafCoreStatBuilder.FromIdentity(statFactory, "CastRate", typeof(double)),
            new DamageStatConcretizer(statFactory, new DamageSpecificationBuilder()).WithHits(),
            (_, s) => new[] { s })
 {
 }
 public static IDamageRelatedStatBuilder DamageRelatedFromIdentity(
     IStatFactory statFactory, string identity, Type dataType,
     bool canApplyToSkillDamage = false, bool canApplyToAilmentDamage = false) =>
 DamageRelatedStatBuilder.Create(statFactory,
                                 LeafCoreStatBuilder.FromIdentity(statFactory, identity, dataType),
                                 canApplyToSkillDamage, canApplyToAilmentDamage);
 public static IStatBuilder FromIdentity(
     IStatFactory statFactory, string identity, Type dataType,
     ExplicitRegistrationType explicitRegistrationType = null) =>
 new StatBuilder(statFactory,
                 LeafCoreStatBuilder.FromIdentity(statFactory, identity, dataType, explicitRegistrationType));
 private IStatBuilder FromIdentity(
     string identity, Type dataType, ExplicitRegistrationType explicitRegistrationType = null) =>
 With(LeafCoreStatBuilder.FromIdentity(StatFactory, identity, dataType, explicitRegistrationType));
 public EvasionStatBuilder(IStatFactory statFactory)
     : base(statFactory, LeafCoreStatBuilder.FromIdentity(statFactory, Prefix, typeof(int)))
 {
 }
Exemple #6
0
 private IStatBuilder FromIdentity(Type dataType, [CallerMemberName] string identity = null)
 => With(LeafCoreStatBuilder.FromIdentity(StatFactory, Prefix + "." + identity, dataType));