From ff48438b85ea839dfef385fe5c310ef914cff1c2 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sun, 12 Nov 2023 17:26:21 -0500 Subject: [PATCH] sao: fix change_party --- titles/sao/base.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/titles/sao/base.py b/titles/sao/base.py index e1c73ef..a73cb25 100644 --- a/titles/sao/base.py +++ b/titles/sao/base.py @@ -354,7 +354,7 @@ class SaoBase: party_hero_list = [] for party_team in req_data.party_data_list[0].party_team_data_list: - hero_data = self.game_data.item.get_hero_log(req_data.user_id, party_team["user_hero_log_id"]) + hero_data = self.game_data.item.get_hero_log(req_data.user_id, party_team.user_hero_log_id) hero_level = 1 hero_exp = 0 @@ -364,19 +364,19 @@ class SaoBase: self.game_data.item.put_hero_log( req_data.user_id, - party_team["user_hero_log_id"], + party_team.user_hero_log_id, hero_level, hero_exp, - party_team["main_weapon_user_equipment_id"], - party_team["sub_equipment_user_equipment_id"], - party_team["skill_slot1_skill_id"], - party_team["skill_slot2_skill_id"], - party_team["skill_slot3_skill_id"], - party_team["skill_slot4_skill_id"], - party_team["skill_slot5_skill_id"] + party_team.main_weapon_user_equipment_id, + party_team.sub_equipment_user_equipment_id, + party_team.skill_slot1_skill_id, + party_team.skill_slot2_skill_id, + party_team.skill_slot3_skill_id, + party_team.skill_slot4_skill_id, + party_team.skill_slot5_skill_id ) - party_hero_list.append(party_team["user_hero_log_id"]) + party_hero_list.append(party_team.user_hero_log_id) self.game_data.item.put_hero_party(req_data.user_id, req_data.party_data_list[0].party_team_data_list[0].user_party_team_id, party_hero_list[0], party_hero_list[1], party_hero_list[2])