public Task <LeaderPipResult> CalculateAverageRulerLeaderPipsAsync( double tradition, int militarySkill, ILeaderPipDistributionStrategy leaderPipDistributionStrategy, LeaderPipModifiers leaderPipModifiers = null) { double effectiveTradition = CalculateRulerEffectiveTradition(tradition, militarySkill); return(CalculateAndDistributePips(leaderPipDistributionStrategy, leaderPipModifiers, effectiveTradition)); }
public Task <LeaderPipResult> CalculateAverageLeaderPipsAsync( double tradition, LeaderType leaderType, ILeaderPipDistributionStrategy leaderPipDistributionStrategy, LeaderPipModifiers leaderPipModifiers = null) { double effectiveTradition = CalculateEffectiveTradition(tradition, leaderType); return(CalculateAndDistributePips(leaderPipDistributionStrategy, leaderPipModifiers, effectiveTradition)); }
private Task <LeaderPipResult> CalculateAndDistributePips(ILeaderPipDistributionStrategy leaderPipDistributionStrategy, LeaderPipModifiers leaderPipModifiers, double effectiveTradition) { double averagePips = CalculateAveragePips(effectiveTradition); return(leaderPipDistributionStrategy.DistributePipsAsync(averagePips, leaderPipModifiers)); }