| 25 | |
| 26 | |
| 27 | class Citadel(Ship): |
| 28 | def validate(self, item): |
| 29 | if item.category.name != "Structure": |
| 30 | pyfalog.error("Passed item '{0}' (category: {1}) is not under Structure category", item.name, item.category.name) |
| 31 | raise ValueError( |
| 32 | 'Passed item "%s" (category: (%s)) is not under Structure category' % (item.name, item.category.name)) |
| 33 | |
| 34 | def __deepcopy__(self, memo): |
| 35 | copy = Citadel(self.item) |
| 36 | return copy |
| 37 | |
| 38 | def __repr__(self): |
| 39 | return "Citadel(ID={}, name={}) at {}".format( |
| 40 | self.item.ID, self.item.name, hex(id(self)) |
| 41 | ) |
no outgoing calls
no test coverage detected