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

Function formatOperator

gui/builtinItemStatsViews/itemAffectedBy.py:23–36  ·  view source on GitHub ↗
(operator, stackingGroup, preResAmount, postResAmount)

Source from the content-addressed store, hash-verified

21
22
23def formatOperator(operator, stackingGroup, preResAmount, postResAmount):
24 opMap = {
25 Operator.PREASSIGN: '=',
26 Operator.PREINCREASE: '+',
27 Operator.MULTIPLY: '*',
28 Operator.POSTINCREASE: '+',
29 Operator.FORCE: '\u2263'
30 }
31 prefix = ''
32 if stackingGroup is not None:
33 prefix += 's'
34 if preResAmount != postResAmount:
35 prefix += 'r'
36 return '{}{}'.format(prefix, opMap[operator])
37
38
39class ItemAffectedBy(wx.Panel):

Callers 2

buildAttributeViewMethod · 0.85
buildModuleViewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected