Only draw hitpoints if greater than 0

This commit is contained in:
Collin Smith
2020-09-10 16:45:39 -07:00
parent ff24b9f516
commit a86b338dfa

View File

@ -1525,7 +1525,7 @@ public class RenderSystem extends BaseEntitySystem {
if (attrs != null && attrs.contains(Stat.hitpoints)) {
float hitpoints = attrs.get(Stat.hitpoints).asFixed();
float maxhp = attrs.get(Stat.maxhp).asFixed();
if (maxhp > 0) {
if (maxhp > 0f && hitpoints > 0f) {
// batch.setColor(Riiablo.colors.black);
// batch.draw(Riiablo.textures.white, tmp.x - 50, tmp.y - Tile.SUBTILE_HEIGHT50, 100, 5);
batch.setColor(Riiablo.colors.darkRed);