From 3557578bcd05994c5d8825b3e99ed09e3fbe72da Mon Sep 17 00:00:00 2001 From: Midorica Date: Sat, 2 Mar 2024 19:38:34 -0500 Subject: [PATCH] sao: quick fixes to profile and rewards --- changelog.md | 5 +++++ titles/sao/base.py | 28 ++++++++++++++++------------ titles/sao/schema/item.py | 2 +- titles/sao/schema/profile.py | 2 +- 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/changelog.md b/changelog.md index 4a890a3..18ab7c3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,11 @@ # Changelog 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 ### CXB + Fixing paths for rev.py diff --git a/titles/sao/base.py b/titles/sao/base.py index c329d38..e1bf6d4 100644 --- a/titles/sao/base.py +++ b/titles/sao/base.py @@ -90,13 +90,15 @@ class SaoBase: # Create profile with 3 basic heroes 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, 102000010, 1, 0, 103000006, 0, 30086, 1001, 1002, 1003, 1005) - 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, 101000010, 1, 0, 201000000, 0, 1002, 1003, 1014, 30001, 30310) + 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, 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_equipment_data(user_id, 101000016, 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, 112000009, 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, 202000000, 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) # 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: 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, 102000010, 1, 0, 103000006, 0, 30086, 1001, 1002, 1003, 1005) - 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, 101000010, 1, 0, 201000000, 0, 1002, 1003, 1014, 30001, 30310) + 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, 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_equipment_data(user_id, 101000016, 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, 112000009, 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, 202000000, 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) # Force the tutorial stage to be completed due to potential crash in-game diff --git a/titles/sao/schema/item.py b/titles/sao/schema/item.py index c490d9d..332e135 100644 --- a/titles/sao/schema/item.py +++ b/titles/sao/schema/item.py @@ -458,7 +458,7 @@ class SaoItemData(BaseData): end_sessions.c.user == user_id, ) ).order_by( - end_sessions.c.play_date.asc() + end_sessions.c.play_date.desc() ) result = await self.execute(sql) diff --git a/titles/sao/schema/profile.py b/titles/sao/schema/profile.py index 8368afb..27d284d 100644 --- a/titles/sao/schema/profile.py +++ b/titles/sao/schema/profile.py @@ -24,7 +24,7 @@ profile = Table( Column("rank_num", Integer, server_default="1"), Column("rank_exp", 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("setting_title_id", Integer, server_default="20005"), )