(self, item)
| 217 | cls._builtins[id] = pattern |
| 218 | |
| 219 | def calculateEhp(self, item): |
| 220 | ehp = {} |
| 221 | for (type, attr) in (('shield', 'shieldCapacity'), ('armor', 'armorHP'), ('hull', 'hp')): |
| 222 | rawCapacity = item.getModifiedItemAttr(attr) |
| 223 | ehp[type] = self.effectivify(item, rawCapacity, type) |
| 224 | |
| 225 | return ehp |
| 226 | |
| 227 | def calculateEffectiveTank(self, fit, tankInfo): |
| 228 | typeMap = { |
no test coverage detected