Ugly hack to fix the Shadow Fighter Bomber

Goddamn drones don't have a metaGroup or marketGroup, so I had to hardcode it. This should be fixed later.
This commit is contained in:
Corollax
2011-01-18 12:53:56 -06:00
parent 6e7dbc93bf
commit 0ad1132f21

View File

@@ -94,6 +94,8 @@ class DroneView(d.Display):
'Electronic Warfare Drones', 'Logistic Drones', 'Mining Drones')
def droneKey(self, drone):
item = drone.item
if item.name == "Shadow":
return (self.DRONE_ORDER.index('Fighter Bombers'), drone.item.name)
if item.marketGroup is None:
item = item.metaGroup.parent