Updated turret detection as advised
This commit is contained in:
@@ -25,7 +25,7 @@ from eos import capSim
|
||||
from copy import deepcopy
|
||||
from math import sqrt, log, asinh
|
||||
from eos.types import Drone, Cargo, Ship, Character, State, Slot, Module, Implant, Booster, Skill
|
||||
from eos.saveddata.module import State
|
||||
from eos.saveddata.module import State, Hardpoint
|
||||
from eos.saveddata.mode import Mode
|
||||
import eos.db
|
||||
import time
|
||||
@@ -847,8 +847,8 @@ class Fit(object):
|
||||
else:
|
||||
capAdded -= capNeed
|
||||
|
||||
# Does the RoF attribute exist? If so, this is a turret, don't stagger activations
|
||||
disableStagger = (mod.getModifiedItemAttr("speed") or 0) != 0
|
||||
# If this is a turret, don't stagger activations
|
||||
disableStagger = mod.hardpoint == Hardpoint.TURRET
|
||||
|
||||
drains.append((int(fullCycleTime), mod.getModifiedItemAttr("capacitorNeed") or 0, mod.numShots or 0, disableStagger))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user