Make damage system match the tutorial
This commit is contained in:
parent
3cad614e78
commit
e71c391f3a
@ -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('░'),
|
||||
|
Loading…
Reference in New Issue
Block a user