Merge branch 'zesterer/econ-tweaks' into 'master'

Limit trading currency to sane amounts

See merge request veloren/veloren!2154
This commit is contained in:
Joshua Barretto 2021-04-19 10:46:17 +00:00
commit b700d9a641

View File

@ -574,7 +574,9 @@ impl LoadoutBuilder {
.flatten()
.copied()
.unwrap_or_default()
.round() as u32;
.round()
.min(rand::thread_rng().gen_range(1000.0..3000.0))
as u32;
let armor = economy
.map(|e| e.unconsumed_stock.get(&Good::Armor))
.flatten()