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

Method offensive

eos/gamedata.py:416–428  ·  view source on GitHub ↗

Detects if item can be used as something offensive

(self)

Source from the content-addressed store, hash-verified

414
415 @property
416 def offensive(self):
417 """Detects if item can be used as something offensive"""
418 # Make sure we cache results
419 if self.__offensive is None:
420 offensive = False
421 # Go through all effects and find first offensive
422 for effect in self.effects.values():
423 if effect.isOffensive is True:
424 # If we find one, stop and mark item as offensive
425 offensive = True
426 break
427 self.__offensive = offensive
428 return self.__offensive
429
430 def requiresSkill(self, skill, level=None):
431 for s, l in self.requiredSkills.items():

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected