Change range factor for turret ammo sorting from optimal + falloff/2 to optimal + falloff
This commit is contained in:
@@ -181,7 +181,7 @@ class CapSimulator:
|
||||
# If injecting cap will "overshoot" max cap, postpone it
|
||||
if isInjector and cap - capNeed > capCapacity:
|
||||
awaitingInjectors.append((duration, capNeed, shot, clipSize, reloadTime, isInjector))
|
||||
|
||||
|
||||
else:
|
||||
# If we will need more cap than we have, but we are not at 100% -
|
||||
# use awaiting cap injectors to top us up until we have enough or
|
||||
|
||||
@@ -67,8 +67,8 @@ class ChangeModuleAmmo(ContextMenuCombined):
|
||||
if d > 0:
|
||||
damage += d
|
||||
|
||||
# Take optimal and half falloff as range factor
|
||||
rangeFactor = range_ + falloff / 2
|
||||
# Take optimal and falloff as range factor
|
||||
rangeFactor = range_ + falloff
|
||||
|
||||
return - rangeFactor, charge.name.rsplit()[-2:], damage, charge.name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user