forked from Hay1tsme/artemis
sao: fix quest failing to save
This commit is contained in:
parent
601cec9075
commit
f0515a2130
@ -1230,7 +1230,7 @@ class SaoBase:
|
|||||||
if current_data:
|
if current_data:
|
||||||
await self.data.item.put_player_quest(
|
await self.data.item.put_player_quest(
|
||||||
user_id,
|
user_id,
|
||||||
QuestType.EPISODE,
|
int(QuestType.EPISODE),
|
||||||
ep_data['QuestSceneId'],
|
ep_data['QuestSceneId'],
|
||||||
False if not quest_clear_flag and not current_data['quest_clear_flag'] else True,
|
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'],
|
min(clear_time, current_data['clear_time']) if quest_clear_flag else current_data['clear_time'],
|
||||||
@ -1241,7 +1241,7 @@ class SaoBase:
|
|||||||
else:
|
else:
|
||||||
await self.data.item.put_player_quest(
|
await self.data.item.put_player_quest(
|
||||||
user_id,
|
user_id,
|
||||||
QuestType.EPISODE,
|
int(QuestType.EPISODE),
|
||||||
ep_data['QuestSceneId'],
|
ep_data['QuestSceneId'],
|
||||||
quest_clear_flag,
|
quest_clear_flag,
|
||||||
clear_time,
|
clear_time,
|
||||||
@ -1458,7 +1458,7 @@ class SaoBase:
|
|||||||
if current_data:
|
if current_data:
|
||||||
await self.data.item.put_player_quest(
|
await self.data.item.put_player_quest(
|
||||||
user_id,
|
user_id,
|
||||||
QuestType.TRIAL_TOWER,
|
int(QuestType.TRIAL_TOWER),
|
||||||
ep_data['QuestSceneId'],
|
ep_data['QuestSceneId'],
|
||||||
False if not quest_clear_flag and not current_data['quest_clear_flag'] else True,
|
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'],
|
min(clear_time, current_data['clear_time']) if quest_clear_flag else current_data['clear_time'],
|
||||||
@ -1469,7 +1469,7 @@ class SaoBase:
|
|||||||
else:
|
else:
|
||||||
await self.data.item.put_player_quest(
|
await self.data.item.put_player_quest(
|
||||||
user_id,
|
user_id,
|
||||||
QuestType.TRIAL_TOWER,
|
int(QuestType.TRIAL_TOWER),
|
||||||
ep_data['QuestSceneId'],
|
ep_data['QuestSceneId'],
|
||||||
quest_clear_flag,
|
quest_clear_flag,
|
||||||
clear_time,
|
clear_time,
|
||||||
|
@ -257,8 +257,6 @@ class SaoFrontend(FE_Base):
|
|||||||
return RedirectResponse("/game/sao/?e=97", 303)
|
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_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}")
|
self.logger.info(f"Web registered User {usr_sesh.user_id} profile {profile_id} with name {name}")
|
||||||
|
|
||||||
return RedirectResponse("/game/sao/?s=1", 303)
|
return RedirectResponse("/game/sao/?s=1", 303)
|
Loading…
Reference in New Issue
Block a user