MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / calculateEffectiveTank

Method calculateEffectiveTank

eos/saveddata/damagePattern.py:227–240  ·  view source on GitHub ↗
(self, fit, tankInfo)

Source from the content-addressed store, hash-verified

225 return ehp
226
227 def calculateEffectiveTank(self, fit, tankInfo):
228 typeMap = {
229 "passiveShield": "shield",
230 "shieldRepair": "shield",
231 "armorRepair": "armor",
232 "armorRepairPreSpool": "armor",
233 "armorRepairFullSpool": "armor",
234 "hullRepair": "hull"
235 }
236 ereps = {}
237 for field in tankInfo:
238 if field in typeMap:
239 ereps[field] = self.effectivify(fit.ship, tankInfo[field], typeMap[field])
240 return ereps
241
242 def effectivify(self, item, amount, type):
243 type = type if type != "hull" else ""

Callers 2

effectiveTankMethod · 0.80

Calls 1

effectivifyMethod · 0.95

Tested by

no test coverage detected