| 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 = [] |