Skip to content

Commit

Permalink
Remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
magicbear committed Feb 7, 2024
1 parent fcf0ef7 commit f790a2b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions palworld_server_toolkit/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f790a2b

Please sign in to comment.