Exemplo n.º 1
0
 def repairIfNeeded(self, repairType):
     module = self.findRepairModule(repairType)
     if module:
         attributeName = RepairTypes[repairType]["attributeName"]
         repairAmount = getModuleAttributes(module)[attributeName]
         threshold = getattr(self, repairType + "Max") - repairAmount
         current = getattr(self, repairType)
         if current < threshold:
             activated, reason = activateModule(module, pulse=True)
Exemplo n.º 2
0
 def repairIfNeeded(self, repairType):
     module = self.findRepairModule(repairType)
     if module:
         attributeName = RepairTypes[repairType]["attributeName"]
         repairAmount = getModuleAttributes(module)[attributeName]
         threshold = getattr(self, repairType + "Max") - repairAmount
         current = getattr(self, repairType)
         if current < threshold:
             activated, reason = activateModule(module, pulse=True)
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