reorder key handling
This commit is contained in:
@@ -23,8 +23,8 @@ pub struct Chest {
|
||||
|
||||
impl Chest {
|
||||
pub fn new(position: Position) -> Self {
|
||||
let min_gold = 10 * (position.get_level()+1);
|
||||
let max_gold = min_gold + 10*position.get_level();
|
||||
let min_gold = 10 * (position.get_level() + 1);
|
||||
let max_gold = min_gold + 10 * position.get_level();
|
||||
Self {
|
||||
position,
|
||||
gold: rand::thread_rng().gen_range(min_gold..=max_gold),
|
||||
|
||||
Reference in New Issue
Block a user