From be0e32221991f4fbb5015d89aae8188237ffff7e Mon Sep 17 00:00:00 2001 From: holychowders Date: Sat, 14 May 2022 09:34:57 -0500 Subject: [PATCH] Remove "(Items)" from stealth stat descriptions. --- assets/voxygen/i18n/en/hud/bag.ron | 2 +- voxygen/src/hud/bag.rs | 10 +++++----- voxygen/src/hud/diary.rs | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/voxygen/i18n/en/hud/bag.ron b/assets/voxygen/i18n/en/hud/bag.ron index 72a359814d..f164cf409b 100644 --- a/assets/voxygen/i18n/en/hud/bag.ron +++ b/assets/voxygen/i18n/en/hud/bag.ron @@ -34,7 +34,7 @@ "hud.bag.combat_rating": "Combat Rating", "hud.bag.protection": "Protection", "hud.bag.stun_res": "Stun Resilience", - "hud.bag.stealth_from_items": "Stealth from Items", + "hud.bag.stealth": "Stealth", "hud.bag.combat_rating_desc": "Calculated from your\nequipment and health.", "hud.bag.protection_desc": "Damage reduction through armor", "hud.bag.stun_res_desc": "Resilience against being stunned by consecutive hits.\nRegenerates like Energy.", diff --git a/voxygen/src/hud/bag.rs b/voxygen/src/hud/bag.rs index e410ce0f5a..e0d8b43d56 100644 --- a/voxygen/src/hud/bag.rs +++ b/voxygen/src/hud/bag.rs @@ -635,7 +635,7 @@ const STATS: [&str; 6] = [ "Protection", "Combat Rating", "Stun Resilience", - "Stealth (Items)", + "Stealth", ]; pub struct BagState { @@ -925,7 +925,7 @@ impl<'a> Widget for Bag<'a> { "Combat Rating" => self.imgs.combat_rating_ico, "Protection" => self.imgs.protection_ico, "Stun Resilience" => self.imgs.stun_res_ico, - "Stealth (Items)" => self.imgs.stealth_rating_ico, + "Stealth" => self.imgs.stealth_rating_ico, _ => self.imgs.nothing, }) .w_h(20.0, 20.0) @@ -947,7 +947,7 @@ impl<'a> Widget for Bag<'a> { "{}", (100.0 * Poise::compute_poise_damage_reduction(inventory)) as i32 ); - let stealth_from_items_txt = format!( + let stealth_txt = format!( "{:.1}%", ((1.0 - perception_dist_multiplier_from_stealth(Some(inventory), None)) * 100.0) @@ -963,7 +963,7 @@ impl<'a> Widget for Bag<'a> { "Combat Rating" => i18n.get("hud.bag.combat_rating"), "Protection" => i18n.get("hud.bag.protection"), "Stun Resilience" => i18n.get("hud.bag.stun_res"), - "Stealth (Items)" => i18n.get("hud.bag.stealth_from_items"), + "Stealth" => i18n.get("hud.bag.stealth"), _ => "", }; let tooltip_txt = match i.1 { @@ -986,7 +986,7 @@ impl<'a> Widget for Bag<'a> { "Combat Rating" => &combat_rating_txt, "Protection" => &protection_txt, "Stun Resilience" => &stun_res_txt, - "Stealth (Items)" => &stealth_from_items_txt, + "Stealth" => &stealth_txt, _ => "", }) .right_from(state.ids.stat_icons[i.0], 10.0) diff --git a/voxygen/src/hud/diary.rs b/voxygen/src/hud/diary.rs index 0e8ddcee78..1d96fc40c3 100644 --- a/voxygen/src/hud/diary.rs +++ b/voxygen/src/hud/diary.rs @@ -1112,7 +1112,7 @@ impl<'a> Widget for Diary<'a> { "Stun-Resistance", "Crit-Power", "Energy Reward", - "Stealth (Items)", + "Stealth", "Weapon Power", "Weapon Speed", "Weapon Poise", @@ -1206,7 +1206,7 @@ impl<'a> Widget for Diary<'a> { combat::compute_energy_reward_mod(Some(self.inventory)); format!("{:+.0}%", (energy_rew - 1.0) * 100.0) }, - "Stealth (Items)" => { + "Stealth" => { let stealth_perception_multiplier = combat::perception_dist_multiplier_from_stealth( Some(self.inventory),