ysd支持旅行者、增加地区图标、优化评分算法,fix bug

This commit is contained in:
CMHopeSunshine 2022-06-28 19:54:04 +08:00
parent 3dd68e9a0e
commit 51d0dd405a

View File

@ -206,6 +206,8 @@ def get_effective(role_name: str, role_weapon: str, artifacts: list, element: st
if role_name in ['', '']: if role_name in ['', '']:
role_name = str(element) + '' role_name = str(element) + ''
if role_name in ra_score['Role']: if role_name in ra_score['Role']:
if len(artifacts) < 5:
return ra_score['Role'][role_name]['常规']
if role_name == '钟离': if role_name == '钟离':
if artifacts[-2]['主属性']['属性名'] == '岩元素伤害加成': if artifacts[-2]['主属性']['属性名'] == '岩元素伤害加成':
return ra_score['Role'][role_name]['岩伤'] return ra_score['Role'][role_name]['岩伤']