From f790a2b1806c2b09add1a74d5b4630aae80178c5 Mon Sep 17 00:00:00 2001 From: MagicBear Date: Thu, 8 Feb 2024 04:53:20 +0800 Subject: [PATCH] Remove debug code --- palworld_server_toolkit/editor.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/palworld_server_toolkit/editor.py b/palworld_server_toolkit/editor.py index 387d0f3..4f68ae9 100644 --- a/palworld_server_toolkit/editor.py +++ b/palworld_server_toolkit/editor.py @@ -961,16 +961,16 @@ def load(self, tabs, player_gvas): item_container = parse_item( MappingCache.ItemContainerSaveData[player_gvas['inventoryInfo']['value'][idx_key]['value']['ID'][ 'value']], "ItemContainerSaveData") - # self.item_containers[idx_key[:-11]] = [{ - # 'SlotIndex': item['SlotIndex'], - # 'ItemId': item['ItemId']['value']['StaticId'], - # 'StackCount': item['StackCount'] - # } for item in item_container['value']['Slots']['value']['values']] - # tables = self.build_array_gui(tab, ("SlotIndex", "ItemId", "StackCount"), - # self.item_container_vars[idx_key[:-11]]) - # for idx, item in enumerate(self.item_containers[idx_key[:-11]]): - # self.item_container_vars[idx_key[:-11]].append({}) - # self.build_array_gui_item(tables, idx, self.item_container_vars[idx_key[:-11]][idx], item) + self.item_containers[idx_key[:-11]] = [{ + 'SlotIndex': item['SlotIndex'], + 'ItemId': item['ItemId']['value']['StaticId'], + 'StackCount': item['StackCount'] + } for item in item_container['value']['Slots']['value']['values']] + tables = self.build_array_gui(tab, ("SlotIndex", "ItemId", "StackCount"), + self.item_container_vars[idx_key[:-11]]) + for idx, item in enumerate(self.item_containers[idx_key[:-11]]): + self.item_container_vars[idx_key[:-11]].append({}) + self.build_array_gui_item(tables, idx, self.item_container_vars[idx_key[:-11]][idx], item) self.geometry("640x800") def savedata(self):