예제 #1
0
 public CastRateStatBuilder(IStatFactory statFactory)
     : this(statFactory,
            LeafCoreStatBuilder.FromIdentity(statFactory, "CastRate", typeof(double)),
            new DamageStatConcretizer(statFactory, new DamageSpecificationBuilder()).WithHits(),
            (_, s) => new[] { s })
 {
 }
예제 #2
0
 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);
예제 #3
0
 public static IStatBuilder FromIdentity(
     IStatFactory statFactory, string identity, Type dataType,
     ExplicitRegistrationType explicitRegistrationType = null) =>
 new StatBuilder(statFactory,
                 LeafCoreStatBuilder.FromIdentity(statFactory, identity, dataType, explicitRegistrationType));
예제 #4
0
 private IStatBuilder FromIdentity(
     string identity, Type dataType, ExplicitRegistrationType explicitRegistrationType = null) =>
 With(LeafCoreStatBuilder.FromIdentity(StatFactory, identity, dataType, explicitRegistrationType));
예제 #5
0
 public EvasionStatBuilder(IStatFactory statFactory)
     : base(statFactory, LeafCoreStatBuilder.FromIdentity(statFactory, Prefix, typeof(int)))
 {
 }
예제 #6
0
 private IStatBuilder FromIdentity(Type dataType, [CallerMemberName] string identity = null)
 => With(LeafCoreStatBuilder.FromIdentity(StatFactory, Prefix + "." + identity, dataType));