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

Method getRepAmountParameters

eos/saveddata/drone.py:199–216  ·  view source on GitHub ↗
(self, ignoreState=False)

Source from the content-addressed store, hash-verified

197 return False
198
199 def getRepAmountParameters(self, ignoreState=False):
200 amount = self.amount if ignoreState else self.amountActive
201 if amount <= 0:
202 return {}
203 if self.__baseRRAmount is None:
204 self.__baseRRAmount = {}
205 hullAmount = self.getModifiedItemAttr("structureDamageAmount", 0)
206 armorAmount = self.getModifiedItemAttr("armorDamageAmount", 0)
207 shieldAmount = self.getModifiedItemAttr("shieldBonus", 0)
208 if shieldAmount:
209 self.__baseRRAmount[0] = RRTypes(
210 shield=shieldAmount * amount,
211 armor=0, hull=0, capacitor=0)
212 if armorAmount or hullAmount:
213 self.__baseRRAmount[self.cycleTime] = RRTypes(
214 shield=0, armor=armorAmount * amount,
215 hull=hullAmount * amount, capacitor=0)
216 return self.__baseRRAmount
217
218 def getRemoteReps(self, ignoreState=False):
219 rrDuringCycle = RRTypes(0, 0, 0, 0)

Callers 3

isRemoteReppingMethod · 0.95
getRemoteRepsMethod · 0.95
_generateInternalFormMethod · 0.45

Calls 2

RRTypesClass · 0.90
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected