update codegen to translate ant, valk, and gal variants
This commit is contained in:
parent
b91019e8b4
commit
89d115b61d
2 changed files with 16 additions and 3 deletions
|
@ -46,6 +46,9 @@ async fn translators_rs() {
|
||||||
"mosquito",
|
"mosquito",
|
||||||
"galaxy",
|
"galaxy",
|
||||||
"valkyrie",
|
"valkyrie",
|
||||||
|
"wasp",
|
||||||
|
"deliverer",
|
||||||
|
"lodestar",
|
||||||
"liberator",
|
"liberator",
|
||||||
"ant",
|
"ant",
|
||||||
"harasser",
|
"harasser",
|
||||||
|
@ -107,11 +110,16 @@ async fn translators_rs() {
|
||||||
.find(&item.name.as_ref().unwrap().en.as_ref().unwrap())
|
.find(&item.name.as_ref().unwrap().en.as_ref().unwrap())
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
let name = matched
|
||||||
|
.as_str()
|
||||||
|
.to_lowercase()
|
||||||
|
.replace("wasp", "valkyrie")
|
||||||
|
.replace("deliverer", "ant")
|
||||||
|
.replace("lodestar", "galaxy");
|
||||||
|
|
||||||
Vehicle {
|
Vehicle {
|
||||||
vehicle_id: item.vehicle_id,
|
vehicle_id: item.vehicle_id,
|
||||||
name: Some(LangEn {
|
name: Some(LangEn { en: Some(name) }),
|
||||||
en: Some(matched.as_str().to_string().to_lowercase()),
|
|
||||||
}),
|
|
||||||
propulsion_type: item.propulsion_type,
|
propulsion_type: item.propulsion_type,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -34,6 +34,8 @@ lazy_static! {
|
||||||
("1105", "vanguard"),
|
("1105", "vanguard"),
|
||||||
("2010", "flash"),
|
("2010", "flash"),
|
||||||
("2033", "javelin"),
|
("2033", "javelin"),
|
||||||
|
("2039", "ant"),
|
||||||
|
("2040", "valkyrie"),
|
||||||
("2122", "mosquito"),
|
("2122", "mosquito"),
|
||||||
("2123", "reaver"),
|
("2123", "reaver"),
|
||||||
("2124", "scythe"),
|
("2124", "scythe"),
|
||||||
|
@ -47,6 +49,9 @@ lazy_static! {
|
||||||
("2135", "prowler"),
|
("2135", "prowler"),
|
||||||
("2136", "dervish"),
|
("2136", "dervish"),
|
||||||
("2137", "chimera"),
|
("2137", "chimera"),
|
||||||
|
("2139", "ant"),
|
||||||
|
("2140", "galaxy"),
|
||||||
|
("2141", "valkyrie"),
|
||||||
("2142", "corsair"),
|
("2142", "corsair"),
|
||||||
]);
|
]);
|
||||||
static ref LOADOUT_TO_CLASS: HashMap<&'static str, &'static str> = HashMap::from([
|
static ref LOADOUT_TO_CLASS: HashMap<&'static str, &'static str> = HashMap::from([
|
||||||
|
|
Loading…
Add table
Reference in a new issue