|
@@ -1841,6 +1841,8 @@ class ScriptTerror(object):
|
|
|
|
|
|
if w > sector and w in self.game.gamedata.ports and not GameData.port_burnt(self.game.gamedata.ports[w]):
|
|
|
wd = self.game.gamedata.ports[w]
|
|
|
+ if 'class' not in wd:
|
|
|
+ continue
|
|
|
wc = wd['class']
|
|
|
|
|
|
if pc in (1,5) and wc in (2,4):
|
|
@@ -1859,6 +1861,8 @@ class ScriptTerror(object):
|
|
|
for sector in sorted(self.game.gamedata.ports.keys()):
|
|
|
pd = self.game.gamedata.ports[sector]
|
|
|
if not GameData.port_burnt(pd):
|
|
|
+ if 'class' not in pd:
|
|
|
+ continue
|
|
|
pc = pd['class']
|
|
|
|
|
|
|
|
@@ -1872,6 +1876,8 @@ class ScriptTerror(object):
|
|
|
|
|
|
if w > sector and w in self.game.gamedata.ports and not GameData.port_burnt(self.game.gamedata.ports[w]):
|
|
|
wd = self.game.gamedata.ports[w]
|
|
|
+ if 'class' not in wd:
|
|
|
+ continue
|
|
|
wc = wd['class']
|
|
|
|
|
|
if GameData.port_trading(pd['port'], self.game.gamedata.ports[w]['port']):
|
|
@@ -2536,6 +2542,8 @@ class ProxyMenu(object):
|
|
|
if w > sector and w in self.game.gamedata.ports and not GameData.port_burnt(self.game.gamedata.ports[w]):
|
|
|
|
|
|
wd = self.game.gamedata.ports[w]
|
|
|
+ if 'class' not in wd:
|
|
|
+ continue
|
|
|
wc = wd['class']
|
|
|
|
|
|
|