forked from Hay1tsme/artemis
sao: fix change_party
This commit is contained in:
parent
e1a70d1a06
commit
ff48438b85
@ -354,7 +354,7 @@ class SaoBase:
|
|||||||
party_hero_list = []
|
party_hero_list = []
|
||||||
|
|
||||||
for party_team in req_data.party_data_list[0].party_team_data_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_level = 1
|
||||||
hero_exp = 0
|
hero_exp = 0
|
||||||
|
|
||||||
@ -364,19 +364,19 @@ class SaoBase:
|
|||||||
|
|
||||||
self.game_data.item.put_hero_log(
|
self.game_data.item.put_hero_log(
|
||||||
req_data.user_id,
|
req_data.user_id,
|
||||||
party_team["user_hero_log_id"],
|
party_team.user_hero_log_id,
|
||||||
hero_level,
|
hero_level,
|
||||||
hero_exp,
|
hero_exp,
|
||||||
party_team["main_weapon_user_equipment_id"],
|
party_team.main_weapon_user_equipment_id,
|
||||||
party_team["sub_equipment_user_equipment_id"],
|
party_team.sub_equipment_user_equipment_id,
|
||||||
party_team["skill_slot1_skill_id"],
|
party_team.skill_slot1_skill_id,
|
||||||
party_team["skill_slot2_skill_id"],
|
party_team.skill_slot2_skill_id,
|
||||||
party_team["skill_slot3_skill_id"],
|
party_team.skill_slot3_skill_id,
|
||||||
party_team["skill_slot4_skill_id"],
|
party_team.skill_slot4_skill_id,
|
||||||
party_team["skill_slot5_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])
|
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])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user