Fix: enter dungeon that is "Temporary Early Access"

This commit is contained in:
Hengyu 2024-01-28 13:45:04 +08:00 committed by LmeSzinc
parent e84e564e8b
commit f101ca2af3
3 changed files with 13 additions and 4 deletions

View File

@ -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(['奖励', '任务', ])

View File

@ -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='追蹤',

View File

@ -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(