(self)
| 211 | |
| 212 | @property |
| 213 | def numShots(self): |
| 214 | if self.charge is None: |
| 215 | return 0 |
| 216 | if self.__chargeCycles is None and self.charge: |
| 217 | numCharges = self.numCharges |
| 218 | # Usual ammo like projectiles and missiles |
| 219 | if numCharges > 0 and "chargeRate" in self.itemModifiedAttributes: |
| 220 | self.__chargeCycles = self.__calculateAmmoShots() |
| 221 | # Frequency crystals (combat and mining lasers) |
| 222 | elif numCharges > 0 and "crystalsGetDamaged" in self.chargeModifiedAttributes: |
| 223 | self.__chargeCycles = self.__calculateCrystalShots() |
| 224 | # Scripts and stuff |
| 225 | else: |
| 226 | self.__chargeCycles = 0 |
| 227 | return self.__chargeCycles |
| 228 | else: |
| 229 | return self.__chargeCycles |
| 230 | |
| 231 | @property |
| 232 | def modPosition(self): |
nothing calls this directly
no test coverage detected