def GetSensorStrength():
    module = findModule("Scan Probe Launcher")
    godma = eve.LocalSvc("godma")
    moduleAttrs = getModuleAttributes(module)
    if getattr(module, "charge", None):
        chargeObj = godma.GetItem(module.charge.itemID)
        chargeAttrs = getTypeAttributes(module.charge.typeID, obj=chargeObj)
    else:
        chargeAttrs = {}
    if chargeAttrs['baseSensorStrength']:
        return chargeAttrs['baseSensorStrength']
    else:
        return 0
def GetSensorStrength():
    module = findModule("Scan Probe Launcher")
    godma = eve.LocalSvc("godma")
    moduleAttrs = getModuleAttributes(module)
    if getattr(module, "charge", None):
        chargeObj = godma.GetItem(module.charge.itemID)
        chargeAttrs = getTypeAttributes(module.charge.typeID, obj=chargeObj)
    else:
        chargeAttrs = {}
    if chargeAttrs["baseSensorStrength"]:
        return chargeAttrs["baseSensorStrength"]
    else:
        return 0
Esempio n. 3
0
 def __init__(self, droneID):
     self.id = droneID
     ci = getCachedItem(droneID)
     
     self.ci = ci
     self.slimItem = ci.slimItem
     self.target = None
     self.actionTimestamp = self.timestamp = 0
     self.shield = self.armor = self.structure = 1.0
     self.state = None
     
     if ci.slimItem:        
         attributes = getTypeAttributes(ci.slimItem.typeID, obj=ci.ball)
         self.isSentry = float(attributes.get("entityCruiseSpeed", 0.0)) <= 0.0
     else:
         self.isSentry = False
Esempio n. 4
0
    def __init__(self, droneID):
        self.id = droneID
        ci = getCachedItem(droneID)

        self.ci = ci
        self.slimItem = ci.slimItem
        self.target = None
        self.actionTimestamp = self.timestamp = 0
        self.shield = self.armor = self.structure = 1.0
        self.state = None

        if ci.slimItem:
            attributes = getTypeAttributes(ci.slimItem.typeID, obj=ci.ball)
            self.isSentry = float(attributes.get("entityCruiseSpeed",
                                                 0.0)) <= 0.0
        else:
            self.isSentry = False