ElEditors, Interface administrators, Administrators
70,980
edits
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 545: | Line 545: | ||
max_count = args.range_max_count and args.range_max_count[1] or 1, | max_count = args.range_max_count and args.range_max_count[1] or 1, | ||
PvE = { | PvE = { | ||
min = args.range_min and args.range_min[1] or 1, | min = (args.range_min and args.range_min[1] or (args.range_min_count and args.range_max and args.range_max[1])) or 1, | ||
max = args.range_max and args.range_max[1] or 1 | max = args.range_max and args.range_max[1] or 1 | ||
}, | }, | ||
PvP = { | PvP = { | ||
min = args.range_min and (args.range_min[2] or args.range_min[1]) or 1, | min = args.range_min and (args.range_min[2] or args.range_min[1] or (args.range_min_count and args.range_max and args.range_max[2] or args.range_max[1])) or 1, | ||
max = args.range_max and (args.range_max[2] or args.range_max[1]) or 1 | max = args.range_max and (args.range_max[2] or args.range_max[1]) or 1 | ||
} | } | ||
Line 562: | Line 562: | ||
forEachDamageType(function(damage_type) | forEachDamageType(function(damage_type) | ||
local range_count = RANGE[damage_type .. '_count']; | local range_count = RANGE[damage_type .. '_count']; | ||
local range_multiplier = RANGE[mode][damage_type] | local range_multiplier = RANGE[mode][damage_type]; | ||
local final_range_multiplier = (1 + ((range_multiplier - 1) * range_count)); | local final_range_multiplier = (1 + ((range_multiplier - 1) * range_count)); | ||
local perm_buff = OPTIONS.perm_buff[mode]; | local perm_buff = OPTIONS.perm_buff[mode]; |