From e0ffb4aa7b98e9b869afedfb95bb92987349e381 Mon Sep 17 00:00:00 2001 From: Chris Davoren Date: Fri, 1 Sep 2023 19:42:55 +1000 Subject: [PATCH] Fixed error with loaded of workbench experimental materials. --- sheditor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sheditor.py b/sheditor.py index 868842f..e92bfe5 100644 --- a/sheditor.py +++ b/sheditor.py @@ -80,9 +80,9 @@ class ResearchRequirement: workbench_items = {} wb_items = row[2].split(',') for wbi in wb_items: - quantity = wbi[0] + quantity = int(wbi[0]) 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 second_level_research = row[4] if row[4] != '-' else None req = ResearchRequirement(id, name, workbench_items, first_level_research, second_level_research)