Skip to content

Commit

Permalink
fix: Support 3.6 artifacts texts
Browse files Browse the repository at this point in the history
  • Loading branch information
wormtql committed Apr 12, 2023
1 parent 74363bf commit 518d435
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yas"
version = "0.1.11"
version = "0.1.13"
edition = "2018"
build = "build.rs"

Expand Down
16 changes: 16 additions & 0 deletions src/artifact/internal_artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ pub enum ArtifactSetName {
GildedDreams,
FlowerOfParadiseLost,
DesertPavilionChronicle,
NymphsDream,
VourukashasGlow,
}

#[derive(Debug, Clone)]
Expand Down Expand Up @@ -226,6 +228,8 @@ pub fn get_real_artifact_name_chs(raw: &str) -> Option<String> {
"梦中的铁花", "裁断的翎羽", "沉金的岁月", "如蜜的终宴", "沙王的投影",
"月女的华彩", "谢落的筵席", "凝结的时刻", "守秘的魔瓶", "紫晶的花冠",
"众王之都的开端", "黄金邦国的结末", "失落迷途的机芯", "迷醉长梦的守护", "流沙贵嗣的遗宝",
"恶龙的单片镜", "坏巫师的羽杖", "旅途中的鲜花", "水仙的时时刻刻", "勇者们的茶会",
"灵光明烁之心", "琦色灵彩之羽", "灵光源起之蕊", "久远花落之时", "无边酣乐之筵",
];

let mut min_index = 0;
Expand Down Expand Up @@ -435,6 +439,8 @@ impl ArtifactSetName {
"梦中的铁花" | "裁断的翎羽" | "沉金的岁月" | "如蜜的终宴" | "沙王的投影" => Some(ArtifactSetName::GildedDreams),
"月女的华彩" | "谢落的筵席" | "凝结的时刻" | "守秘的魔瓶" | "紫晶的花冠" => Some(ArtifactSetName::FlowerOfParadiseLost),
"众王之都的开端" | "黄金邦国的结末" | "失落迷途的机芯" | "迷醉长梦的守护" | "流沙贵嗣的遗宝" => Some(ArtifactSetName::DesertPavilionChronicle),
"恶龙的单片镜" | "坏巫师的羽杖" | "旅途中的鲜花" | "水仙的时时刻刻" | "勇者们的茶会" => Some(ArtifactSetName::NymphsDream),
"灵光明烁之心" | "琦色灵彩之羽" | "灵光源起之蕊" | "久远花落之时" | "无边酣乐之筵" => Some(ArtifactSetName::VourukashasGlow),
_ => None,
}
}
Expand Down Expand Up @@ -648,6 +654,16 @@ impl ArtifactSlot {
"失落迷途的机芯" => Some(ArtifactSlot::Sand),
"迷醉长梦的守护" => Some(ArtifactSlot::Goblet),
"流沙贵嗣的遗宝" => Some(ArtifactSlot::Head),
"旅途中的鲜花" => Some(ArtifactSlot::Flower),
"坏巫师的羽杖" => Some(ArtifactSlot::Feather),
"水仙的时时刻刻" => Some(ArtifactSlot::Sand),
"勇者们的茶会" => Some(ArtifactSlot::Goblet),
"恶龙的单片镜" => Some(ArtifactSlot::Head),
"灵光源起之蕊" => Some(ArtifactSlot::Flower),
"琦色灵彩之羽" => Some(ArtifactSlot::Feather),
"久远花落之时" => Some(ArtifactSlot::Sand),
"无边酣乐之筵" => Some(ArtifactSlot::Goblet),
"灵光明烁之心" => Some(ArtifactSlot::Head),
_ => None,
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/expo/good.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ impl ArtifactSetName {
ArtifactSetName::GildedDreams => "GildedDreams",
ArtifactSetName::FlowerOfParadiseLost => "FlowerOfParadiseLost",
ArtifactSetName::DesertPavilionChronicle => "DesertPavilionChronicle",
ArtifactSetName::NymphsDream => "NymphsDream",
ArtifactSetName::VourukashasGlow => "VourukashasGlow",
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/expo/mingyu_lab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ impl ArtifactSetName {
ArtifactSetName::GildedDreams => "gilded_dreams",
ArtifactSetName::FlowerOfParadiseLost => "flower_of_paradise_list",
ArtifactSetName::DesertPavilionChronicle => "desert_pavilion_chronicle",
ArtifactSetName::NymphsDream => "nymphs_dream",
ArtifactSetName::VourukashasGlow => "vourukashas_glow",

// Not supported by Mingyulab
ArtifactSetName::Adventurer => unreachable!(),
Expand Down

0 comments on commit 518d435

Please sign in to comment.