sao: quick fixes to profile and rewards

This commit is contained in:
Midorica 2024-03-02 19:38:34 -05:00
parent 6f654f8ba9
commit 3557578bcd
4 changed files with 23 additions and 14 deletions

View File

@ -1,6 +1,11 @@
# Changelog # Changelog
Documenting updates to ARTEMiS, to be updated every time the master branch is pushed to. Documenting updates to ARTEMiS, to be updated every time the master branch is pushed to.
## 20240302
### SAO
+ Fixing new profile creation with right heroes and start VP
+ Fix to the Unanalyzed Log responses returning the wrong rewards
## 20240226 ## 20240226
### CXB ### CXB
+ Fixing paths for rev.py + Fixing paths for rev.py

View File

@ -90,13 +90,15 @@ class SaoBase:
# Create profile with 3 basic heroes # Create profile with 3 basic heroes
profile_id = await self.data.profile.create_profile(user_id) profile_id = await self.data.profile.create_profile(user_id)
await self.data.item.put_hero_log(user_id, 101000010, 1, 0, 101000016, 0, 30086, 1001, 1002, 1003, 1005) await self.data.item.put_hero_log(user_id, 101000010, 1, 0, 201000000, 0, 1002, 1003, 1014, 30001, 30310)
await self.data.item.put_hero_log(user_id, 102000010, 1, 0, 103000006, 0, 30086, 1001, 1002, 1003, 1005) await self.data.item.put_hero_log(user_id, 102000010, 1, 0, 202000000, 0, 3001, 3002, 3004, 30007, 3011)
await self.data.item.put_hero_log(user_id, 103000010, 1, 0, 112000009, 0, 30086, 1001, 1002, 1003, 1005) await self.data.item.put_hero_log(user_id, 105000010, 1, 0, 209000000, 0, 10005, 10002, 10004, 30006, 10003)
await self.data.item.put_hero_log(user_id, 101000110, 1, 0, 201000000, 101000110, 2002, 2001, 2014, 0, 0)
await self.data.item.put_hero_party(user_id, 0, 101000010, 102000010, 103000010) await self.data.item.put_hero_party(user_id, 0, 101000010, 102000010, 103000010)
await self.data.item.put_equipment_data(user_id, 101000016, 1, 200, 0, 0, 0) await self.data.item.put_equipment_data(user_id, 201000000, 1, 200, 0, 0, 0)
await self.data.item.put_equipment_data(user_id, 103000006, 1, 200, 0, 0, 0) await self.data.item.put_equipment_data(user_id, 202000000, 1, 200, 0, 0, 0)
await self.data.item.put_equipment_data(user_id, 112000009, 1, 200, 0, 0, 0) await self.data.item.put_equipment_data(user_id, 209000000, 1, 200, 0, 0, 0)
await self.data.item.put_equipment_data(user_id, 101000110, 1, 200, 0, 0, 0)
await self.data.item.put_player_quest(user_id, 1001, True, 300, 0, 0, 1) await self.data.item.put_player_quest(user_id, 1001, True, 300, 0, 0, 1)
# Force the tutorial stage to be completed due to potential crash in-game # Force the tutorial stage to be completed due to potential crash in-game
@ -109,13 +111,15 @@ class SaoBase:
if user_id and not profile_data: if user_id and not profile_data:
profile_id = await self.data.profile.create_profile(user_id) profile_id = await self.data.profile.create_profile(user_id)
await self.data.item.put_hero_log(user_id, 101000010, 1, 0, 101000016, 0, 30086, 1001, 1002, 1003, 1005) await self.data.item.put_hero_log(user_id, 101000010, 1, 0, 201000000, 0, 1002, 1003, 1014, 30001, 30310)
await self.data.item.put_hero_log(user_id, 102000010, 1, 0, 103000006, 0, 30086, 1001, 1002, 1003, 1005) await self.data.item.put_hero_log(user_id, 102000010, 1, 0, 202000000, 0, 3001, 3002, 3004, 30007, 3011)
await self.data.item.put_hero_log(user_id, 103000010, 1, 0, 112000009, 0, 30086, 1001, 1002, 1003, 1005) await self.data.item.put_hero_log(user_id, 105000010, 1, 0, 209000000, 0, 10005, 10002, 10004, 30006, 10003)
await self.data.item.put_hero_log(user_id, 101000110, 1, 0, 201000000, 101000110, 2002, 2001, 2014, 0, 0)
await self.data.item.put_hero_party(user_id, 0, 101000010, 102000010, 103000010) await self.data.item.put_hero_party(user_id, 0, 101000010, 102000010, 103000010)
await self.data.item.put_equipment_data(user_id, 101000016, 1, 200, 0, 0, 0) await self.data.item.put_equipment_data(user_id, 201000000, 1, 200, 0, 0, 0)
await self.data.item.put_equipment_data(user_id, 103000006, 1, 200, 0, 0, 0) await self.data.item.put_equipment_data(user_id, 202000000, 1, 200, 0, 0, 0)
await self.data.item.put_equipment_data(user_id, 112000009, 1, 200, 0, 0, 0) await self.data.item.put_equipment_data(user_id, 209000000, 1, 200, 0, 0, 0)
await self.data.item.put_equipment_data(user_id, 101000110, 1, 200, 0, 0, 0)
await self.data.item.put_player_quest(user_id, 1001, True, 300, 0, 0, 1) await self.data.item.put_player_quest(user_id, 1001, True, 300, 0, 0, 1)
# Force the tutorial stage to be completed due to potential crash in-game # Force the tutorial stage to be completed due to potential crash in-game

View File

@ -458,7 +458,7 @@ class SaoItemData(BaseData):
end_sessions.c.user == user_id, end_sessions.c.user == user_id,
) )
).order_by( ).order_by(
end_sessions.c.play_date.asc() end_sessions.c.play_date.desc()
) )
result = await self.execute(sql) result = await self.execute(sql)

View File

@ -24,7 +24,7 @@ profile = Table(
Column("rank_num", Integer, server_default="1"), Column("rank_num", Integer, server_default="1"),
Column("rank_exp", Integer, server_default="0"), Column("rank_exp", Integer, server_default="0"),
Column("own_col", Integer, server_default="0"), Column("own_col", Integer, server_default="0"),
Column("own_vp", Integer, server_default="0"), Column("own_vp", Integer, server_default="300"),
Column("own_yui_medal", Integer, server_default="0"), Column("own_yui_medal", Integer, server_default="0"),
Column("setting_title_id", Integer, server_default="20005"), Column("setting_title_id", Integer, server_default="20005"),
) )