.col() and .offset() impls for TileTypes - and some more sprites in

This commit is contained in:
Llywelwyn 2023-10-07 00:56:02 +01:00
parent 40b048fd65
commit 396d548bf2
7 changed files with 414 additions and 253 deletions

View file

@ -295,7 +295,9 @@ impl<'a> System<'a> for MeleeCombatSystem {
);
}
}
// TODO: Take out these animations (and for missing too), and turn
// them into effects - can use the damage type that gets passed in
// to determine the effect, colour, etc.
let pos = positions.get(wants_melee.target);
if let Some(pos) = pos {
particle_builder.damage_taken(pos.x, pos.y);