INNER CODE UNIT · Rust
spawn_amulet_of_yala
rust-gamedev/rust-game-ports · rusty_roguelike-bevy/src/spawner/mod.rs:32
pub fn spawn_amulet_of_yala(world: &mut World, pos: Point) {
world.spawn().insert_bundle((
Item,
AmuletOfYala,
PointC(pos),
Render {
color: ColorPair::new(WHITE, BLACK),
glyph: to_cp437('|'),
},
Name("Amulet of Yala".to_string()),
));
}