1
0
Fork 0

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
1 changed files with 1 additions and 2 deletions

View File

@ -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('░'),