(self, fit, tankInfo)
| 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 "" |
no test coverage detected