Make damage system match the tutorial

This commit is contained in:
Timothy Warren 2022-01-14 12:24:18 -05:00
parent 3cad614e78
commit e71c391f3a

View File

@ -53,7 +53,6 @@ impl<'a> System<'a> for DamageSystem {
if let Some(pos) = positions.get(entity) { if let Some(pos) = positions.get(entity) {
let idx = map.xy_idx(pos.x, pos.y); let idx = map.xy_idx(pos.x, pos.y);
map.bloodstains.insert(idx); map.bloodstains.insert(idx);
spatial::remove_entity(entity, idx);
} }
if stats.hit_points.current < 1 && dmg.1 { if stats.hit_points.current < 1 && dmg.1 {
@ -91,7 +90,7 @@ impl<'a> System<'a> for DamageSystem {
if player_pos.y - i > 1 { if player_pos.y - i > 1 {
particles.request( particles.request(
player_pos.x, player_pos.x,
player_pos.y - 1, player_pos.y - i,
colors::GOLD, colors::GOLD,
colors::BLACK, colors::BLACK,
rltk::to_cp437('░'), rltk::to_cp437('░'),