MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / getText

Method getText

gui/builtinViewColumns/droneRegen.py:55–64  ·  view source on GitHub ↗
(self, stuff)

Source from the content-addressed store, hash-verified

53 self.mask |= wx.LIST_MASK_TEXT
54
55 def getText(self, stuff):
56 if not isinstance(stuff, (Drone, Fighter)):
57 return ""
58 regen = stuff.calculateShieldRecharge()
59 if (
60 self.mainFrame.statsPane.nameViewMap["resistancesViewFull"].showEffective
61 and stuff.owner and stuff.owner.damagePattern is not None
62 ):
63 regen = stuff.owner.damagePattern.effectivify(stuff, regen, 'shield')
64 return '{}/s'.format(formatAmount(regen, 3, 0, 9))
65
66 def getImageId(self, mod):
67 return -1

Callers

nothing calls this directly

Calls 3

formatAmountFunction · 0.90
effectivifyMethod · 0.80

Tested by

no test coverage detected