Skip to content

Commit

Permalink
fix bug in achievement parser
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Dec 2, 2022
1 parent f6b72e7 commit ae01259
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
8 changes: 8 additions & 0 deletions QEGearImporter/QEGearImporter.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Interface: 25100
## Title: Questionably Epic Importer
## Author: Voulk
## Notes: Gear Importer for QE Live Burning Crusade
## Version: 1.26

embeds.xml
questionablyepic_enhanced.lua
15 changes: 8 additions & 7 deletions src/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,14 @@ def parse_glyphs():
def parse_achievements():
global achievements
for achievement in all_items["achievements"][3]:
achId = achievement.split(",")[0]
year = int(achievement.split(",")[1])
month = int(achievement.split(",")[2])
day = int(achievement.split(",")[3])
date_time = datetime.datetime(year+2000, month, day, 0, 0)
timestamp = time.mktime(date_time.timetuple())
achievements += achievementTemplate.fill(achievement_id=achId,timestamp=int(timestamp))
if "," in achievement:
achId = achievement.split(",")[0]
year = int(achievement.split(",")[1])
month = int(achievement.split(",")[2])
day = int(achievement.split(",")[3])
date_time = datetime.datetime(year+2000, month, day, 0, 0)
timestamp = time.mktime(date_time.timetuple())
achievements += achievementTemplate.fill(achievement_id=achId,timestamp=int(timestamp))

def write_pdump(char_info):
startPos = startPosMap[exp][factions[clean(f[5].split("=")[1])]]
Expand Down

0 comments on commit ae01259

Please sign in to comment.