MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / level

Method level

eos/saveddata/character.py:351–363  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

349
350 @property
351 def level(self):
352 # @todo: there is a phantom bug that keep popping up about skills not having a character... See #1234
353 # Remove this at some point when the cause can be determined.
354 if self.character:
355 # Ensure that All 5/0 character have proper skill levels (in case database gets corrupted)
356 if self.character.name == "All 5":
357 self.activeLevel = self.__level = 5
358 elif self.character.name == "All 0":
359 self.activeLevel = self.__level = 0
360 elif self.character.alphaClone:
361 return min(self.activeLevel or 0, self.character.alphaClone.getSkillLevel(self) or 0)
362
363 return self.activeLevel or 0
364
365 def setLevel(self, level, persist=False, ignoreRestrict=False):
366

Callers 2

writeMethod · 0.80
flushMethod · 0.80

Calls 1

getSkillLevelMethod · 0.45

Tested by

no test coverage detected