Fix jump to for deadspace/storyline items, as well as for rigs &

subsystems
This commit is contained in:
cncfanatics
2010-10-24 15:04:43 +02:00
parent b57b22cb75
commit 5b321d2fb9
2 changed files with 17 additions and 10 deletions

View File

@@ -176,6 +176,13 @@ class Market():
def getGroup(self, groupId):
return eos.db.getGroup(groupId)
MARKET_GROUPS = (9, #Modules
1111, #Rigs
157, #Drones
11, #Ammo
1112, #Subsystems
24) #Implants & Boosters
def getMarketRoot(self):
"""
Get the root of the market tree.
@@ -183,14 +190,9 @@ class Market():
the ID, the name and the icon of the group
"""
marketGroups = (9, #Modules
1111, #Rigs
157, #Drones
11, #Ammo
1112, #Subsystems
24) #Implants & Boosters
root = []
for id in marketGroups:
for id in self.MARKET_GROUPS:
mg = eos.db.getMarketGroup(id, eager="icon")
root.append((id, mg.name, self.figureIcon(mg)))