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",
|
||||
"galaxy",
|
||||
"valkyrie",
|
||||
"wasp",
|
||||
"deliverer",
|
||||
"lodestar",
|
||||
"liberator",
|
||||
"ant",
|
||||
"harasser",
|
||||
|
@ -107,11 +110,16 @@ async fn translators_rs() {
|
|||
.find(&item.name.as_ref().unwrap().en.as_ref().unwrap())
|
||||
.unwrap();
|
||||
|
||||
let name = matched
|
||||
.as_str()
|
||||
.to_lowercase()
|
||||
.replace("wasp", "valkyrie")
|
||||
.replace("deliverer", "ant")
|
||||
.replace("lodestar", "galaxy");
|
||||
|
||||
Vehicle {
|
||||
vehicle_id: item.vehicle_id,
|
||||
name: Some(LangEn {
|
||||
en: Some(matched.as_str().to_string().to_lowercase()),
|
||||
}),
|
||||
name: Some(LangEn { en: Some(name) }),
|
||||
propulsion_type: item.propulsion_type,
|
||||
}
|
||||
})
|
||||
|
|
|
@ -34,6 +34,8 @@ lazy_static! {
|
|||
("1105", "vanguard"),
|
||||
("2010", "flash"),
|
||||
("2033", "javelin"),
|
||||
("2039", "ant"),
|
||||
("2040", "valkyrie"),
|
||||
("2122", "mosquito"),
|
||||
("2123", "reaver"),
|
||||
("2124", "scythe"),
|
||||
|
@ -47,6 +49,9 @@ lazy_static! {
|
|||
("2135", "prowler"),
|
||||
("2136", "dervish"),
|
||||
("2137", "chimera"),
|
||||
("2139", "ant"),
|
||||
("2140", "galaxy"),
|
||||
("2141", "valkyrie"),
|
||||
("2142", "corsair"),
|
||||
]);
|
||||
static ref LOADOUT_TO_CLASS: HashMap<&'static str, &'static str> = HashMap::from([
|
||||
|
|
Loading…
Add table
Reference in a new issue