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

Method _buildSkillsTooltipCondensed

gui/characterSelection.py:316–343  ·  view source on GitHub ↗
(self, reqs, currItem="", tabulationLevel=0, skillsMap=None)

Source from the content-addressed store, hash-verified

314 return tip
315
316 def _buildSkillsTooltipCondensed(self, reqs, currItem="", tabulationLevel=0, skillsMap=None):
317 if skillsMap is None:
318 skillsMap = {}
319
320 sCharacter = Character.getInstance()
321
322 if tabulationLevel == 0:
323 for item, subReqs in reqs.items():
324 skillsMap = self._buildSkillsTooltipCondensed(subReqs, item.name, 1, skillsMap)
325 else:
326 for name, info in reqs.items():
327 level, ID, more = info
328 sCharacter.skillReqsDict['skills'].append({
329 'item': currItem,
330 'skillID': ID,
331 'skill': name,
332 'level': level,
333 'indent': tabulationLevel,
334 })
335
336 if name not in skillsMap:
337 skillsMap[name] = level, ID
338 elif skillsMap[name][0] < level:
339 skillsMap[name] = level, ID
340
341 skillsMap = self._buildSkillsTooltipCondensed(more, currItem, tabulationLevel + 1, skillsMap)
342
343 return skillsMap
344
345 def _buildSkillsTooltipSuperCondensed(self, reqs, currItem="", tabulationLevel=0, skillsMap=None):
346 allReqs = {}

Callers 4

grantMissingSkillsMethod · 0.95
fitChangedMethod · 0.95
exportSkillsMethod · 0.95
exportSkillsEveMonMethod · 0.95

Calls 3

itemsMethod · 0.80
getInstanceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected