mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Limit trading currency to sane amounts
This commit is contained in:
parent
352fce239e
commit
324148d9a3
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user