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

Method missileSorter

service/ammo.py:123–133  ·  view source on GitHub ↗
(charge)

Source from the content-addressed store, hash-verified

121 return chargeDamageType, totalDamage
122
123 def missileSorter(charge):
124 # Get charge damage type and total damage
125 chargeDamageType, totalDamage = getChargeDamageInfo(charge)
126 # Find its position in sort list
127 try:
128 position = DmgTypes.names().index(chargeDamageType)
129 # Put charges which have non-standard damage type after charges with
130 # standard damage type
131 except ValueError:
132 position = math.inf
133 return position, totalDamage, charge.name
134
135 all = OrderedDict()
136 sub = []

Callers

nothing calls this directly

Calls 1

namesMethod · 0.45

Tested by

no test coverage detected