public static void SetEnemyStatBinding(Enemy source, DependencyProperty targetProperty, BattleEntityStatCalculationData calculationData) { var statBinding = GetStatBinding(source, calculationData); BindingOperations.SetBinding(source.Stats, targetProperty, statBinding); }
public static Int32 CalculateEnemySkillAttackDamage(Enemy enemy, Int32 sourceDamage, Boolean isCrit) { return GetDamage(enemy.Stats.SkillPower, enemy.Stats.Level, enemy.Stats.Level, sourceDamage, enemy.Stats.Luck, isCrit); }