(string)
| 46 | |
| 47 | @staticmethod |
| 48 | def stringToImplants(string): |
| 49 | sMkt = Market.getInstance() |
| 50 | implants = [] |
| 51 | for typeID in (int(tid) for tid in string.split(',')): |
| 52 | item = sMkt.getItem(typeID) |
| 53 | if item is None: |
| 54 | continue |
| 55 | try: |
| 56 | implant = Implant(item) |
| 57 | except ValueError: |
| 58 | continue |
| 59 | implants.append(implant) |
| 60 | return implants |
| 61 | |
| 62 |
no test coverage detected