1
0
mirror of synced 2024-11-28 07:50:48 +01:00

sao: fix change_party

This commit is contained in:
Kevin Trocolli 2023-11-12 17:26:21 -05:00
parent e1a70d1a06
commit ff48438b85

View File

@ -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])