File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,15 @@ ctf_core.testing = {
10
10
local one_third = math.ceil (0.34 * total_players )
11
11
local one_fourth = math.ceil (0.25 * total_players )
12
12
local avg = (kd_diff + actual_kd_diff ) / 2
13
+ local pcount_diff_limit = (
14
+ (players_diff <= math.min (one_fourth , 2 )) or
15
+ (pkd >= 1.8 and players_diff <= math.min (one_third , 4 ))
16
+ )
13
17
if best_kd .kills + worst_kd .kills >= 30 then
14
18
avg = actual_kd_diff
15
19
end
16
- return (best_kd .kills + worst_kd .kills >= 30 and best_kd .t == best_players .t ) or
17
- (
18
- pkd >= math.min (1 , kd_diff / 2 ) and avg >= 0.4 and
19
- (
20
- players_diff <= math.min (one_fourth , 3 ) or
21
- (pkd >= 1.5 and players_diff <= math.min (one_third , 6 ))
22
- )
23
- )
20
+ return pcount_diff_limit and ((best_kd .kills + worst_kd .kills >= 30 and best_kd .t == best_players .t ) or
21
+ (pkd >= math.min (1 , kd_diff / 2 ) and avg >= 0.4 ))
24
22
end
25
23
}
26
24
You can’t perform that action at this time.
0 commit comments