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

Method numShots

eos/saveddata/module.py:213–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

__calculateAmmoShotsMethod · 0.95

Tested by

no test coverage detected