1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 01:54:22 +00:00

Rename flavor_text to localized_flavor_text

This commit is contained in:
Steffo 2022-08-05 02:05:37 +02:00
parent d5b2fa40ab
commit 9a57f59e70
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 5 additions and 5 deletions

View file

@ -159,7 +159,7 @@ mod tests {
localized_levelup_text: "".to_string(), localized_levelup_text: "".to_string(),
associated_card_codes: vec![], associated_card_codes: vec![],
associated_card_names_localized: vec![], associated_card_names_localized: vec![],
flavor_text: r#""Never fear change. It will question you, test your limits. It is our greatest teacher." - Karma"#.to_string(), localized_flavor_text: r#""Never fear change. It will question you, test your limits. It is our greatest teacher." - Karma"#.to_string(),
artist_name: "SIXMOREVODKA".to_string(), artist_name: "SIXMOREVODKA".to_string(),
subtypes: vec![], subtypes: vec![],
supertype: "".to_string(), supertype: "".to_string(),
@ -203,7 +203,7 @@ mod tests {
localized_levelup_text: "".to_string(), localized_levelup_text: "".to_string(),
associated_card_codes: vec![], associated_card_codes: vec![],
associated_card_names_localized: vec![], associated_card_names_localized: vec![],
flavor_text: "".to_string(), localized_flavor_text: "".to_string(),
artist_name: "SIXMOREVODKA".to_string(), artist_name: "SIXMOREVODKA".to_string(),
subtypes: vec![], subtypes: vec![],
supertype: "".to_string(), supertype: "".to_string(),

View file

@ -121,7 +121,7 @@ pub struct Card {
/// Flavor text of the card, displayed when its image is inspected. /// Flavor text of the card, displayed when its image is inspected.
#[serde(rename = "flavorText")] #[serde(rename = "flavorText")]
pub flavor_text: String, pub localized_flavor_text: String,
/// Name of the artist who drew the card. /// Name of the artist who drew the card.
#[serde(rename = "artistName")] #[serde(rename = "artistName")]
@ -253,7 +253,7 @@ mod tests {
String::from("06RU025T5"), String::from("06RU025T5"),
], ],
associated_card_names_localized: vec![], associated_card_names_localized: vec![],
flavor_text: String::from("The priestess' pupils were blown wide, and her hand trembled with nervous excitement. She was ready. This was the single moment Evelynn craved more than any other. She grinned, and slowly shed her visage. Then, as always, the screaming began."), localized_flavor_text: String::from("The priestess' pupils were blown wide, and her hand trembled with nervous excitement. She was ready. This was the single moment Evelynn craved more than any other. She grinned, and slowly shed her visage. Then, as always, the screaming began."),
artist_name: String::from("Kudos Productions"), artist_name: String::from("Kudos Productions"),
subtypes: vec![], subtypes: vec![],
supertype: String::from("Champion"), supertype: String::from("Champion"),

View file

@ -154,7 +154,7 @@ pub fn card_to_document(schema: &tantivy::schema::Schema, locale: &MappedGlobals
f_description => card.localized_description_text, f_description => card.localized_description_text,
f_levelup => card.localized_levelup_text, f_levelup => card.localized_levelup_text,
f_associated => card.associated_card_codes.join(" "), f_associated => card.associated_card_codes.join(" "),
f_flavor => card.flavor_text, f_flavor => card.localized_flavor_text,
f_artist => card.artist_name, f_artist => card.artist_name,
f_subtypes => card.subtypes.join(" "), f_subtypes => card.subtypes.join(" "),
f_supertype => card.supertype, f_supertype => card.supertype,