ranged targeting fixes (set_bg doesn't work with fancy console)

currently not using fancy features for anything, so just went back to the simple console
This commit is contained in:
Llywelwyn 2023-07-28 17:58:32 +01:00
parent 6e6d364aa5
commit 1e25d062db
6 changed files with 39 additions and 18 deletions

View file

@ -71,6 +71,20 @@ pub fn player(ecs: &mut World, player_x: i32, player_y: i32) -> Entity {
raws::SpawnType::Carried { by: player },
0,
);
raws::spawn_named_entity(
&raws::RAWS.lock().unwrap(),
ecs,
"scroll_magicmissile",
raws::SpawnType::Carried { by: player },
0,
);
raws::spawn_named_entity(
&raws::RAWS.lock().unwrap(),
ecs,
"scroll_fireball",
raws::SpawnType::Carried { by: player },
0,
);
return player;
}