个人花样
规定分计算有误
This commit is contained in:
parent
0316d317bf
commit
ac01569cde
@ -71,7 +71,13 @@ public static class ScoreRuleConfigService
|
||||
if (!config.IsFactorTotal) return;
|
||||
foreach (var role in config.RoleAggregations.Where(x => x.Factor == ScoreFactorCode.Required))
|
||||
{
|
||||
if (IsIndividualFamily(config.RuleType)) role.AggregateDecimals = null;
|
||||
if (IsIndividualFamily(config.RuleType))
|
||||
{
|
||||
// 个人花样的每类规定元素缺失数先按同类型裁判取平均,再四舍五入为整数参与 Q 计算。
|
||||
// 同步花样保留半个规定元素的精度。
|
||||
role.AggregateDecimals = string.Equals(config.RuleType, "FREESTYLE_SINGLE",
|
||||
StringComparison.OrdinalIgnoreCase) ? 0 : null;
|
||||
}
|
||||
if (config.RuleType.StartsWith("FREESTYLE_WHEEL", StringComparison.OrdinalIgnoreCase))
|
||||
role.FactorWeight = 0.025m;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user