From 85927da6067d4b45e5c46e0e8723262b932dab35 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:04:37 +0800 Subject: [PATCH 1/2] Fix: Add map plane Aurum Alley --- dev_tools/keyword_extract.py | 2 +- tasks/map/keywords/plane.py | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/dev_tools/keyword_extract.py b/dev_tools/keyword_extract.py index babfa05a8..e43646620 100644 --- a/dev_tools/keyword_extract.py +++ b/dev_tools/keyword_extract.py @@ -266,7 +266,7 @@ class KeywordExtract: '观景车厢', '主控舱段', '基座舱段', '收容舱段', '支援舱段'], 'Jarilo': ['行政区', '城郊雪原', '边缘通路', '铁卫禁区', '残响回廊', '永冬岭', '磐岩镇', '大矿区', '铆钉镇', '机械聚落'], - 'Luofu': ['星槎海中枢', '流云渡', '迴星港', '长乐天', '太卜司', '工造司', '丹鼎司', '鳞渊境'], + 'Luofu': ['星槎海中枢', '流云渡', '迴星港', '长乐天', '金人巷', '太卜司', '工造司', '丹鼎司', '鳞渊境'], } def text_convert(world_): diff --git a/tasks/map/keywords/plane.py b/tasks/map/keywords/plane.py index 2e605b21b..0aaa0d5ff 100644 --- a/tasks/map/keywords/plane.py +++ b/tasks/map/keywords/plane.py @@ -163,8 +163,16 @@ Luofu_ExaltingSanctum = MapPlane( en='Exalting Sanctum', jp='長楽天', ) -Luofu_DivinationCommission = MapPlane( +Luofu_AurumAlley = MapPlane( id=21, + name='Luofu_AurumAlley', + cn='金人巷', + cht='金人巷', + en='Aurum Alley', + jp='金人巷', +) +Luofu_DivinationCommission = MapPlane( + id=22, name='Luofu_DivinationCommission', cn='太卜司', cht='太卜司', @@ -172,7 +180,7 @@ Luofu_DivinationCommission = MapPlane( jp='太卜司', ) Luofu_ArtisanshipCommission = MapPlane( - id=22, + id=23, name='Luofu_ArtisanshipCommission', cn='工造司', cht='工造司', @@ -180,7 +188,7 @@ Luofu_ArtisanshipCommission = MapPlane( jp='工造司', ) Luofu_AlchemyCommission = MapPlane( - id=23, + id=24, name='Luofu_AlchemyCommission', cn='丹鼎司', cht='丹鼎司', @@ -188,7 +196,7 @@ Luofu_AlchemyCommission = MapPlane( jp='丹鼎司', ) Luofu_ScalegorgeWaterscape = MapPlane( - id=24, + id=25, name='Luofu_ScalegorgeWaterscape', cn='鳞渊境', cht='鱗淵境', From 827ae2c76eeab2e41301125115c71405c2ad3b89 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:05:23 +0800 Subject: [PATCH 2/2] Fix: [EN] Handle OCR error Echo/ofWar --- tasks/daily/daily_quest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/daily/daily_quest.py b/tasks/daily/daily_quest.py index 7ea13cdd2..699fbfc9e 100644 --- a/tasks/daily/daily_quest.py +++ b/tasks/daily/daily_quest.py @@ -41,6 +41,8 @@ class DailyQuestOcr(Ocr): result = "已领取" if self.lang == 'en': result = result.replace('wor(d', 'world') + # Echo/ofWar + result = result.replace('cho/of', 'cho of') if "progress" in result.lower(): result = "In Progress" if "claimed" in result.lower():