Limit trading currency to sane amounts

This commit is contained in:
Joshua Barretto 2021-04-19 10:04:28 +01:00
parent 352fce239e
commit 324148d9a3

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()