add player name
This commit is contained in:
parent
fe626c8a33
commit
5593c4d14e
@ -171,6 +171,9 @@ fn main() {
|
||||
range: 8,
|
||||
dirty: true,
|
||||
})
|
||||
.with(Name {
|
||||
name: "Player".to_string(),
|
||||
})
|
||||
.build();
|
||||
|
||||
let mut rng = rltk::RandomNumberGenerator::new();
|
||||
@ -195,7 +198,9 @@ fn main() {
|
||||
dirty: true,
|
||||
})
|
||||
.with(Monster {})
|
||||
.with(Name { name: format!("{} #{}", &name, idx) })
|
||||
.with(Name {
|
||||
name: format!("{} #{}", &name, idx),
|
||||
})
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user