Skip to content

Commit

Permalink
chore: 完善选项说明
Browse files Browse the repository at this point in the history
  • Loading branch information
weiduhuo committed Oct 12, 2023
1 parent 65abd5a commit 2622e0b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions utils/relic.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,17 @@ def relic_entrance(self):
"""
option = _("保存人物配装") # 保存上一次的选择
while True:
title = _("遗器:")
options = [_("保存人物配装"), _("装备人物配装"), _("识别当前遗器"), _("返回上一级")]
title = _("遗器模块:")
options = [_("保存当前人物的配装"), _("读取当前人物的配装"), _("识别当前遗器的数据"), _("返回主菜单")]
option = questionary.select(title, options, default=option).ask()
if option == _("保存人物配装"):
if option == _("保存当前人物的配装"):
self.save_loadout_for_char()
elif option == _("装备人物配装"):
elif option == _("读取当前人物的配装"):
self.equip_loadout_for_char()
elif option == _("识别当前遗器"):
elif option == _("识别当前遗器的数据"):
data = self.try_ocr_relic()
self.print_relic(data)
elif option == _("返回上一级"):
elif option == _("返回主菜单"):
break

def equip_loadout_for_team(self):
Expand All @@ -188,9 +188,12 @@ def equip_loadout_for_char(self):
if not character_data: # 字典为空
log.info(_("当前人物配装记录为空"))
return
title = _("请选配装:")
title = _("请选择将要进行装备的配装:")
options = list(character_data.keys())
options.append(_("返回上一级"))
option = questionary.select(title, options).ask()
if option == _("返回上一级"):
return
relic_hash = character_data[option]
# 进行配装
self.calculated.relative_click((16,48)) # 点击遗器
Expand Down

0 comments on commit 2622e0b

Please sign in to comment.