mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 00:35:34 +00:00
Fix: enter dungeon that is "Temporary Early Access"
This commit is contained in:
parent
e84e564e8b
commit
f101ca2af3
@ -703,7 +703,7 @@ class KeywordExtract:
|
||||
self.load_keywords(list(self.iter_guide()))
|
||||
self.write_keywords(keyword_class='DungeonList', output_file='./tasks/dungeon/keywords/dungeon.py',
|
||||
text_convert=dungeon_name)
|
||||
self.load_keywords(['传送', '追踪'])
|
||||
self.load_keywords(['进入', '传送', '追踪'])
|
||||
self.write_keywords(keyword_class='DungeonEntrance', output_file='./tasks/dungeon/keywords/dungeon_entrance.py')
|
||||
self.generate_shadow_with_characters()
|
||||
self.load_keywords(['奖励', '任务', ])
|
||||
|
@ -3,8 +3,17 @@ from .classes import DungeonEntrance
|
||||
# This file was auto-generated, do not modify it manually. To generate:
|
||||
# ``` python -m dev_tools.keyword_extract ```
|
||||
|
||||
Teleport = DungeonEntrance(
|
||||
Enter = DungeonEntrance(
|
||||
id=1,
|
||||
name='Enter',
|
||||
cn='进入',
|
||||
cht='進入',
|
||||
en='Enter',
|
||||
jp='入る',
|
||||
es='Entrar',
|
||||
)
|
||||
Teleport = DungeonEntrance(
|
||||
id=2,
|
||||
name='Teleport',
|
||||
cn='传送',
|
||||
cht='傳送',
|
||||
@ -13,7 +22,7 @@ Teleport = DungeonEntrance(
|
||||
es='Ir',
|
||||
)
|
||||
Navigate = DungeonEntrance(
|
||||
id=2,
|
||||
id=3,
|
||||
name='Navigate',
|
||||
cn='追踪',
|
||||
cht='追蹤',
|
||||
|
@ -109,7 +109,7 @@ class DraggableDungeonList(DraggableList):
|
||||
# Replace dungeon.button with teleport
|
||||
self.teleports = list(split_and_pair_button_attr(
|
||||
DUNGEON_LIST.cur_buttons,
|
||||
split_func=lambda x: x != KEYWORDS_DUNGEON_ENTRANCE.Teleport,
|
||||
split_func=lambda x: x != KEYWORDS_DUNGEON_ENTRANCE.Teleport and x != KEYWORDS_DUNGEON_ENTRANCE.Enter,
|
||||
relative_area=(0, 0, 1280, 120)
|
||||
))
|
||||
self.navigates = list(split_and_pair_button_attr(
|
||||
|
Loading…
Reference in New Issue
Block a user