Change range factor for turret ammo sorting from optimal + falloff/2 to optimal + falloff

This commit is contained in:
DarkPhoenix
2019-08-09 16:27:03 +03:00
parent 6db178e4d2
commit 3174deed99
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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