(self)
| 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 |
no test coverage detected