From e71c391f3ad9fa568a0cbed80eebeba5dbf3264c Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 14 Jan 2022 12:24:18 -0500 Subject: [PATCH] Make damage system match the tutorial --- src/damage_system.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/damage_system.rs b/src/damage_system.rs index 6a7c029..036ff78 100644 --- a/src/damage_system.rs +++ b/src/damage_system.rs @@ -53,7 +53,6 @@ impl<'a> System<'a> for DamageSystem { if let Some(pos) = positions.get(entity) { let idx = map.xy_idx(pos.x, pos.y); map.bloodstains.insert(idx); - spatial::remove_entity(entity, idx); } if stats.hit_points.current < 1 && dmg.1 { @@ -91,7 +90,7 @@ impl<'a> System<'a> for DamageSystem { if player_pos.y - i > 1 { particles.request( player_pos.x, - player_pos.y - 1, + player_pos.y - i, colors::GOLD, colors::BLACK, rltk::to_cp437('░'),