(dmgMap, applicationMap, tgtResists, tgtFullHp)
| 29 | |
| 30 | |
| 31 | def applyDamage(dmgMap, applicationMap, tgtResists, tgtFullHp): |
| 32 | total = DmgTypes.default() |
| 33 | for key, dmg in dmgMap.items(): |
| 34 | total += dmg * applicationMap.get(key, 0) |
| 35 | if not GraphSettings.getInstance().get('ignoreResists'): |
| 36 | emRes, thermRes, kinRes, exploRes = tgtResists |
| 37 | else: |
| 38 | emRes = thermRes = kinRes = exploRes = 0 |
| 39 | total.profile = TargetProfile( |
| 40 | emAmount=emRes, thermalAmount=thermRes, kineticAmount=kinRes, explosiveAmount=exploRes, hp=tgtFullHp) |
| 41 | return total |
| 42 | |
| 43 | |
| 44 | # Y mixins |
no test coverage detected