| 357 | return self.__parseRawName()[0] |
| 358 | |
| 359 | def __parseRawName(self): |
| 360 | categories = [] |
| 361 | remainingName = self.rawName.strip() if self.rawName else '' |
| 362 | while True: |
| 363 | start, end = remainingName.find('['), remainingName.find(']') |
| 364 | if start == -1 or end == -1: |
| 365 | return categories, remainingName |
| 366 | splitter = remainingName.find('|') |
| 367 | if splitter != -1 and splitter == start - 1: |
| 368 | return categories, remainingName[1:] |
| 369 | categories.append(remainingName[start + 1:end]) |
| 370 | remainingName = remainingName[end + 1:].strip() |
| 371 | |
| 372 | def __deepcopy__(self, memo): |
| 373 | p = DamagePattern(self.emAmount, self.thermalAmount, self.kineticAmount, self.explosiveAmount) |