Merge branch 'juliancoffee/fix_death_message_buff' into 'master'

Fix died_of_buff typo bug

See merge request veloren/veloren!3519
This commit is contained in:
Isse 2022-08-09 12:56:39 +00:00
commit b384391ff4

View File

@ -437,7 +437,7 @@ impl<'a> Widget for Chat<'a> {
.get_msg_ctx(template_key, &i18n::fluent_args! {
"attacker" => "{attacker}",
"name" => "{name}",
"died_from_buff" => "{died_from_buff}",
"died_of_buff" => "{died_of_buff}",
"victim" => "{victim}",
"environment" => "{environment}",
})
@ -808,7 +808,7 @@ fn insert_killing_buff(buff: BuffKind, localized_strings: &Localization, templat
},
};
template.replace("{died_from_buff}", &localized_strings.get_msg(buff_outcome))
template.replace("{died_of_buff}", &localized_strings.get_msg(buff_outcome))
}
fn get_chat_template_key(chat_type: &ChatType<String>) -> Option<&str> {