Beispiel #1
0
 def ship(self):
     """Get the ship the character is currently flying."""
     # TODO fix when pilot is docked
     ship = self.assetlist().row
     type_id = ship.get('typeID')
     type_name = InvType.get_type_name(type_id)
     return type_name
Beispiel #2
0
 def __init__(self, type_id, level=0):
     self.type_id = type_id
     self.level = level
     self.name = InvType.get_type_name(self.type_id)