Пример #1
0
 private Behavior AilmentDamageUncappedSubtotalBehavior(IStat stat, IDamageSpecification damageSpecification) =>
 GetOrAdd(() => _statFactory.ConcretizeDamage(stat, damageSpecification),
          NodeType.UncappedSubtotal, BehaviorPathInteraction.All,
          v => new AilmentDamageUncappedSubtotalValue(
              _statFactory.ConcretizeDamage(stat, damageSpecification),
              _statFactory.ConcretizeDamage(stat, damageSpecification.ForSkills()), v),
          new CacheKey(stat, damageSpecification));
Пример #2
0
 private Behavior AilmentDamageBaseBehavior(IStat stat, IDamageSpecification damageSpecification) =>
 GetOrAdd(() => _statFactory.ConcretizeDamage(stat, damageSpecification),
          NodeType.Base, BehaviorPathInteraction.NonConversion,
          v => new AilmentDamageBaseValue(
              _statFactory.ConcretizeDamage(stat, damageSpecification.ForSkills()), v),
          new CacheKey(stat, damageSpecification));