MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / _getValue

Method _getValue

gui/builtinViewColumns/attributeDisplayGraph.py:208–215  ·  view source on GitHub ↗
(self, stuff)

Source from the content-addressed store, hash-verified

206 super().__init__(fittingView, 68)
207
208 def _getValue(self, stuff):
209 if isinstance(stuff, Fit):
210 full_hp = stuff.hp.get('shield', 0) + stuff.hp.get('armor', 0) + stuff.hp.get('hull', 0)
211 elif isinstance(stuff, TargetProfile):
212 full_hp = stuff.hp
213 else:
214 full_hp = 0
215 return full_hp, 'hp'
216
217 def _getFitTooltip(self):
218 return 'Total raw HP'

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected