make chest's gold depend on level
This commit is contained in:
parent
db96dc5c8a
commit
6082a740e9
|
@ -22,9 +22,11 @@ pub struct Chest {
|
||||||
|
|
||||||
impl Chest {
|
impl Chest {
|
||||||
pub fn new(position: Position) -> Self {
|
pub fn new(position: Position) -> Self {
|
||||||
|
let level = position.get_level();
|
||||||
Self {
|
Self {
|
||||||
position,
|
position,
|
||||||
gold: 10,
|
// TODO maybe randomize this?
|
||||||
|
gold: (level + 1) * 10,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue