mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove "(Items)" from stealth stat descriptions.
This commit is contained in:
parent
63f829be66
commit
be0e322219
@ -34,7 +34,7 @@
|
|||||||
"hud.bag.combat_rating": "Combat Rating",
|
"hud.bag.combat_rating": "Combat Rating",
|
||||||
"hud.bag.protection": "Protection",
|
"hud.bag.protection": "Protection",
|
||||||
"hud.bag.stun_res": "Stun Resilience",
|
"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.combat_rating_desc": "Calculated from your\nequipment and health.",
|
||||||
"hud.bag.protection_desc": "Damage reduction through armor",
|
"hud.bag.protection_desc": "Damage reduction through armor",
|
||||||
"hud.bag.stun_res_desc": "Resilience against being stunned by consecutive hits.\nRegenerates like Energy.",
|
"hud.bag.stun_res_desc": "Resilience against being stunned by consecutive hits.\nRegenerates like Energy.",
|
||||||
|
@ -635,7 +635,7 @@ const STATS: [&str; 6] = [
|
|||||||
"Protection",
|
"Protection",
|
||||||
"Combat Rating",
|
"Combat Rating",
|
||||||
"Stun Resilience",
|
"Stun Resilience",
|
||||||
"Stealth (Items)",
|
"Stealth",
|
||||||
];
|
];
|
||||||
|
|
||||||
pub struct BagState {
|
pub struct BagState {
|
||||||
@ -925,7 +925,7 @@ impl<'a> Widget for Bag<'a> {
|
|||||||
"Combat Rating" => self.imgs.combat_rating_ico,
|
"Combat Rating" => self.imgs.combat_rating_ico,
|
||||||
"Protection" => self.imgs.protection_ico,
|
"Protection" => self.imgs.protection_ico,
|
||||||
"Stun Resilience" => self.imgs.stun_res_ico,
|
"Stun Resilience" => self.imgs.stun_res_ico,
|
||||||
"Stealth (Items)" => self.imgs.stealth_rating_ico,
|
"Stealth" => self.imgs.stealth_rating_ico,
|
||||||
_ => self.imgs.nothing,
|
_ => self.imgs.nothing,
|
||||||
})
|
})
|
||||||
.w_h(20.0, 20.0)
|
.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
|
(100.0 * Poise::compute_poise_damage_reduction(inventory)) as i32
|
||||||
);
|
);
|
||||||
let stealth_from_items_txt = format!(
|
let stealth_txt = format!(
|
||||||
"{:.1}%",
|
"{:.1}%",
|
||||||
((1.0 - perception_dist_multiplier_from_stealth(Some(inventory), None))
|
((1.0 - perception_dist_multiplier_from_stealth(Some(inventory), None))
|
||||||
* 100.0)
|
* 100.0)
|
||||||
@ -963,7 +963,7 @@ impl<'a> Widget for Bag<'a> {
|
|||||||
"Combat Rating" => i18n.get("hud.bag.combat_rating"),
|
"Combat Rating" => i18n.get("hud.bag.combat_rating"),
|
||||||
"Protection" => i18n.get("hud.bag.protection"),
|
"Protection" => i18n.get("hud.bag.protection"),
|
||||||
"Stun Resilience" => i18n.get("hud.bag.stun_res"),
|
"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 {
|
let tooltip_txt = match i.1 {
|
||||||
@ -986,7 +986,7 @@ impl<'a> Widget for Bag<'a> {
|
|||||||
"Combat Rating" => &combat_rating_txt,
|
"Combat Rating" => &combat_rating_txt,
|
||||||
"Protection" => &protection_txt,
|
"Protection" => &protection_txt,
|
||||||
"Stun Resilience" => &stun_res_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)
|
.right_from(state.ids.stat_icons[i.0], 10.0)
|
||||||
|
@ -1112,7 +1112,7 @@ impl<'a> Widget for Diary<'a> {
|
|||||||
"Stun-Resistance",
|
"Stun-Resistance",
|
||||||
"Crit-Power",
|
"Crit-Power",
|
||||||
"Energy Reward",
|
"Energy Reward",
|
||||||
"Stealth (Items)",
|
"Stealth",
|
||||||
"Weapon Power",
|
"Weapon Power",
|
||||||
"Weapon Speed",
|
"Weapon Speed",
|
||||||
"Weapon Poise",
|
"Weapon Poise",
|
||||||
@ -1206,7 +1206,7 @@ impl<'a> Widget for Diary<'a> {
|
|||||||
combat::compute_energy_reward_mod(Some(self.inventory));
|
combat::compute_energy_reward_mod(Some(self.inventory));
|
||||||
format!("{:+.0}%", (energy_rew - 1.0) * 100.0)
|
format!("{:+.0}%", (energy_rew - 1.0) * 100.0)
|
||||||
},
|
},
|
||||||
"Stealth (Items)" => {
|
"Stealth" => {
|
||||||
let stealth_perception_multiplier =
|
let stealth_perception_multiplier =
|
||||||
combat::perception_dist_multiplier_from_stealth(
|
combat::perception_dist_multiplier_from_stealth(
|
||||||
Some(self.inventory),
|
Some(self.inventory),
|
||||||
|
Loading…
Reference in New Issue
Block a user