(self)
| 174 | |
| 175 | @property |
| 176 | def isInvalid(self): |
| 177 | # todo: validate baseItem as well if it's set. |
| 178 | if self.isEmpty: |
| 179 | return False |
| 180 | if self._item is None: |
| 181 | return True |
| 182 | if ( |
| 183 | self._item.category.name not in ("Module", "Subsystem", "Structure Module") |
| 184 | and self._item.group.name not in self.SYSTEM_GROUPS |
| 185 | ): |
| 186 | return True |
| 187 | if ( |
| 188 | self._item.category.name == "Structure Module" |
| 189 | and self._item.group.name == "Quantum Cores" |
| 190 | ): |
| 191 | return True |
| 192 | if self._mutaIsInvalid: |
| 193 | return True |
| 194 | return False |
| 195 | |
| 196 | @property |
| 197 | def numCharges(self): |
nothing calls this directly
no outgoing calls
no test coverage detected