mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
🐛 修复水主元素判断报错
This commit is contained in:
parent
a57a5a4e5b
commit
dfbd2e750e
@ -313,7 +313,7 @@ class Character(Model):
|
|||||||
traveler_skill = role_skill_map['Name'][list(data['skillLevelMap'].keys())[-1]]
|
traveler_skill = role_skill_map['Name'][list(data['skillLevelMap'].keys())[-1]]
|
||||||
find_element = re.search(r'[风雷岩草流火冰]', traveler_skill).group()
|
find_element = re.search(r'[风雷岩草流火冰]', traveler_skill).group()
|
||||||
character.element = find_element if find_element != "流" else "水"
|
character.element = find_element if find_element != "流" else "水"
|
||||||
role_name = find_element + '主'
|
role_name = character.element + '主'
|
||||||
else:
|
else:
|
||||||
character.region = role_datas_map[name]['region']
|
character.region = role_datas_map[name]['region']
|
||||||
character.rarity = role_datas_map[name]['star']
|
character.rarity = role_datas_map[name]['star']
|
||||||
|
Loading…
Reference in New Issue
Block a user