MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / canDealDamage

Method canDealDamage

eos/saveddata/module.py:463–475  ·  view source on GitHub ↗
(self, ignoreState=False)

Source from the content-addressed store, hash-verified

461 return self.charge and 'dotMissileLaunching' in self.charge.effects
462
463 def canDealDamage(self, ignoreState=False):
464 if self.isEmpty:
465 return False
466 for effect in self.item.effects.values():
467 if effect.dealsDamage and (
468 ignoreState or
469 effect.isType('offline') or
470 (effect.isType('passive') and self.state >= FittingModuleState.ONLINE) or
471 (effect.isType('active') and self.state >= FittingModuleState.ACTIVE) or
472 (effect.isType('overheat') and self.state >= FittingModuleState.OVERHEATED)
473 ):
474 return True
475 return False
476
477 def getVolleyParameters(self, spoolOptions=None, targetProfile=None, ignoreState=False):
478 if self.isEmpty or (self.state < FittingModuleState.ACTIVE and not ignoreState):

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.80
isTypeMethod · 0.45

Tested by

no test coverage detected