Add full HP parameter to graphs (for now, unused)

This commit is contained in:
DarkPhoenix
2024-11-12 17:14:52 +01:00
parent ecc3f9fa7e
commit f0a72f4307
2 changed files with 28 additions and 10 deletions

View File

@@ -145,6 +145,11 @@ class TargetWrapper(BaseWrapper):
else:
return em, therm, kin, explo
def getFullHp(self):
if self.isProfile:
return self.item.hp
if self.isFit:
return self.item.hp.get('shield', 0) + self.item.hp.get('armor', 0) + self.item.hp.get('hull', 0)
def _getShieldResists(ship):