Skip to content

Commit 24e2f17

Browse files
committed
convert: Allow multiple trading post targets for units.
1 parent 35113bf commit 24e2f17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openage/convert/processor/conversion/aoc/processor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,10 +1361,10 @@ def link_trade_posts(full_data_set: GenieObjectContainer) -> None:
13611361
continue
13621362

13631363
trade_post_id = command["unit_id"].value
1364-
break
13651364

1366-
# Notify buiding
1367-
full_data_set.building_lines[trade_post_id].add_trading_line(unit_line)
1365+
# Notify buiding
1366+
if trade_post_id in full_data_set.building_lines.keys():
1367+
full_data_set.building_lines[trade_post_id].add_trading_line(unit_line)
13681368

13691369
@staticmethod
13701370
def link_repairables(full_data_set: GenieObjectContainer) -> None:

0 commit comments

Comments
 (0)