1
0
mirror of synced 2024-11-30 16:54:27 +01:00

sao: fix quest failing to save

This commit is contained in:
Kevin Trocolli 2024-06-27 23:24:12 -04:00
parent 601cec9075
commit f0515a2130
2 changed files with 4 additions and 6 deletions

View File

@ -1230,7 +1230,7 @@ class SaoBase:
if current_data:
await self.data.item.put_player_quest(
user_id,
QuestType.EPISODE,
int(QuestType.EPISODE),
ep_data['QuestSceneId'],
False if not quest_clear_flag and not current_data['quest_clear_flag'] else True,
min(clear_time, current_data['clear_time']) if quest_clear_flag else current_data['clear_time'],
@ -1241,7 +1241,7 @@ class SaoBase:
else:
await self.data.item.put_player_quest(
user_id,
QuestType.EPISODE,
int(QuestType.EPISODE),
ep_data['QuestSceneId'],
quest_clear_flag,
clear_time,
@ -1458,7 +1458,7 @@ class SaoBase:
if current_data:
await self.data.item.put_player_quest(
user_id,
QuestType.TRIAL_TOWER,
int(QuestType.TRIAL_TOWER),
ep_data['QuestSceneId'],
False if not quest_clear_flag and not current_data['quest_clear_flag'] else True,
min(clear_time, current_data['clear_time']) if quest_clear_flag else current_data['clear_time'],
@ -1469,7 +1469,7 @@ class SaoBase:
else:
await self.data.item.put_player_quest(
user_id,
QuestType.TRIAL_TOWER,
int(QuestType.TRIAL_TOWER),
ep_data['QuestSceneId'],
quest_clear_flag,
clear_time,

View File

@ -257,8 +257,6 @@ class SaoFrontend(FE_Base):
return RedirectResponse("/game/sao/?e=97", 303)
await self.data.item.put_hero_party(usr_sesh.user_id, 0, hero1, hero2, hero3)
# await self.data.item.put_player_quest(usr_sesh.user_id, 1001, True, 300, 0, 0, 1)
# Force the tutorial stage to be completed due to potential crash in-game
self.logger.info(f"Web registered User {usr_sesh.user_id} profile {profile_id} with name {name}")
return RedirectResponse("/game/sao/?s=1", 303)