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

Method shortName

eos/gamedata.py:571–585  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

569
570 @property
571 def shortName(self):
572 name = self.item.customName
573 keywords = (
574 'Decayed', 'Glorified Decayed',
575 'Gravid', 'Glorified Gravid',
576 'Unstable', 'Glorified Unstable',
577 'Radical', 'Glorified Radical')
578 for kw in keywords:
579 if name.startswith(f'{kw} '):
580 name = kw
581 m = re.match(r'(?P<mutagrade>(Glorified )?\S+) (?P<dronetype>\S+) Drone (?P<mutatype>\S+) Mutaplasmid', name)
582 if m:
583 name = '{} {}'.format(m.group('mutagrade'), m.group('mutatype'))
584 name = name.replace('Glorified ', 'Gl. ')
585 return name
586
587
588class DynamicItemAttribute(EqBase):

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected