mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Floor merchant cost percentages and display as whole numbers
This commit is contained in:
parent
f9089ac084
commit
ab99126a7b
@ -54,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Avoided black hexagons when bloom is enabled by suppressing NaN/Inf pixels during the first bloom blur pass
|
- Avoided black hexagons when bloom is enabled by suppressing NaN/Inf pixels during the first bloom blur pass
|
||||||
- Many know water generation problems
|
- Many know water generation problems
|
||||||
- Trading over long distances using ghost characters or client-side exploits is no longer possible
|
- Trading over long distances using ghost characters or client-side exploits is no longer possible
|
||||||
|
- Merchant cost percentages displayed as floored, whole numbers
|
||||||
|
|
||||||
## [0.11.0] - 2021-09-11
|
## [0.11.0] - 2021-09-11
|
||||||
|
|
||||||
|
@ -1328,8 +1328,8 @@ impl<'a> AgentData<'a> {
|
|||||||
} else {
|
} else {
|
||||||
if balance1 > 0.0 {
|
if balance1 > 0.0 {
|
||||||
let msg = format!(
|
let msg = format!(
|
||||||
"That only covers {:.1}% of my costs!",
|
"That only covers {:.0}% of my costs!",
|
||||||
balance0 / balance1 * 100.0
|
(balance0 / balance1 * 100.0).floor()
|
||||||
);
|
);
|
||||||
if let Some(tgt_data) = &agent.target {
|
if let Some(tgt_data) = &agent.target {
|
||||||
// If talking with someone in particular, "tell" it only to them
|
// If talking with someone in particular, "tell" it only to them
|
||||||
|
Loading…
Reference in New Issue
Block a user