@@ -275,7 +275,6 @@ def get_all_items():
275
275
276
276
def parse_bag (all_items ):
277
277
def parse_bag_base (bag_offset ):
278
- # nonlocal firstSlot, bagID
279
278
suffix = "0"
280
279
enchant = "0"
281
280
gems = []
@@ -302,10 +301,7 @@ def parse_bag_base(bag_offset):
302
301
if int (bagID ) == 0 :
303
302
str (int (slotID ) + 1 )
304
303
add_to_itemlists (slotID , item_entry , suffix , enchant , gems , buckle [0 ], bagID , item_count = item_count , bag_offset = bag_offset )
305
- # firstSlot += 1
306
304
307
- # firstSlot = 23 + 14
308
- # bagID = 1
309
305
bag_offset = 0
310
306
for slot in slots :
311
307
for i in range (19 ):
@@ -362,29 +358,6 @@ def parse_spells(all_items):
362
358
elif int (talent ["r4" ]) == spell :
363
359
talents += talentTemplate .fill (talent_id = talent ["id" ],current_rank = 4 )
364
360
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
-
388
361
for action in all_items ["actions" ][3 ]:
389
362
actionInfo = action .split ("," )
390
363
slot = actionInfo [0 ].split ("=" )[1 ]
@@ -500,7 +473,6 @@ def parse_skills():
500
473
max_skill = maxRank ,
501
474
)
502
475
503
-
504
476
def write_pdump (char_info ):
505
477
startPos = startPosMap [exp ][factions [clean (f [5 ].split ("=" )[1 ])]]
506
478
version = ""
0 commit comments