From 02c78c28f43aa703724ff57f9350ae4c69734795 Mon Sep 17 00:00:00 2001 From: juliancoffee Date: Wed, 10 Aug 2022 01:06:17 +0300 Subject: [PATCH] Force no digits after dot printing for boosts --- voxygen/src/hud/diary.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voxygen/src/hud/diary.rs b/voxygen/src/hud/diary.rs index ddc7cc705b..ebe074b1a4 100644 --- a/voxygen/src/hud/diary.rs +++ b/voxygen/src/hud/diary.rs @@ -3466,7 +3466,7 @@ impl<'a> SkillStrings<'a> { let title = i18n.get(title); let args = i18n::fluent_args! { - "boost" => percentage, + "boost" => format!("{percentage:.0}"), "SP" => sp(i18n, skill_set, skill), }; let desc = i18n.get_msg_ctx(&desc.replace('.', "-"), &args);