@@ -275,7 +275,6 @@ def get_all_items():
275275
276276 def parse_bag (all_items ):
277277 def parse_bag_base (bag_offset ):
278- # nonlocal firstSlot, bagID
279278 suffix = "0"
280279 enchant = "0"
281280 gems = []
@@ -302,10 +301,7 @@ def parse_bag_base(bag_offset):
302301 if int (bagID ) == 0 :
303302 str (int (slotID ) + 1 )
304303 add_to_itemlists (slotID , item_entry , suffix , enchant , gems , buckle [0 ], bagID , item_count = item_count , bag_offset = bag_offset )
305- # firstSlot += 1
306304
307- # firstSlot = 23 + 14
308- # bagID = 1
309305 bag_offset = 0
310306 for slot in slots :
311307 for i in range (19 ):
@@ -362,29 +358,6 @@ def parse_spells(all_items):
362358 elif int (talent ["r4" ]) == spell :
363359 talents += talentTemplate .fill (talent_id = talent ["id" ],current_rank = 4 )
364360
365- professions_spells = [
366- int (e ) for e in all_items ["spells" ][3 ] if int (e ) in all_prof_skill_ids
367- ]
368- for spell in professions_spells :
369- for profession in professionMap :
370- if learned_professions [profession ]:
371- continue
372- if int (spell ) in professionMap [profession ]:
373- learned_professions [profession ] = True
374- skills += skillsTemplate .fill (
375- skill_id = professionSkillMap [profession ],
376- current_skill = maxSkillMap ["professions" ][exp ],
377- max_skill = maxSkillMap ["professions" ][exp ],
378- )
379- if (
380- str (professionSpellMap [exp ][profession ])
381- not in all_items ["spells" ][3 ]
382- ):
383- # override what player has and give him top profession level
384- spells += spellTemplate .fill (
385- spell_id = professionSpellMap [exp ][profession ]
386- )
387-
388361 for action in all_items ["actions" ][3 ]:
389362 actionInfo = action .split ("," )
390363 slot = actionInfo [0 ].split ("=" )[1 ]
@@ -500,7 +473,6 @@ def parse_skills():
500473 max_skill = maxRank ,
501474 )
502475
503-
504476 def write_pdump (char_info ):
505477 startPos = startPosMap [exp ][factions [clean (f [5 ].split ("=" )[1 ])]]
506478 version = ""
0 commit comments