Fixed error with loaded of workbench experimental materials.
This commit is contained in:
parent
7f13772336
commit
e0ffb4aa7b
|
@ -80,9 +80,9 @@ class ResearchRequirement:
|
||||||
workbench_items = {}
|
workbench_items = {}
|
||||||
wb_items = row[2].split(',')
|
wb_items = row[2].split(',')
|
||||||
for wbi in wb_items:
|
for wbi in wb_items:
|
||||||
quantity = wbi[0]
|
quantity = int(wbi[0])
|
||||||
code = int(wbi[2:])
|
code = int(wbi[2:])
|
||||||
workbench_items[quantity] = Item.get_name_from_code(code)
|
workbench_items[Item.get_name_from_code(code)] = quantity
|
||||||
first_level_research = row[3] if row[3] != '-' else None
|
first_level_research = row[3] if row[3] != '-' else None
|
||||||
second_level_research = row[4] if row[4] != '-' else None
|
second_level_research = row[4] if row[4] != '-' else None
|
||||||
req = ResearchRequirement(id, name, workbench_items, first_level_research, second_level_research)
|
req = ResearchRequirement(id, name, workbench_items, first_level_research, second_level_research)
|
||||||
|
|
Loading…
Reference in New Issue