v0.7.0b: fixed both old and new bone pile logic being active

This commit is contained in:
Evan Debenham 2018-11-04 03:28:27 -05:00
parent c652c33536
commit 27257f4ac0

View File

@ -126,16 +126,6 @@ public class Heap implements Bundlable {
case REMAINS: case REMAINS:
case SKELETON: case SKELETON:
CellEmitter.center( pos ).start(Speck.factory(Speck.RATTLE), 0.1f, 3); CellEmitter.center( pos ).start(Speck.factory(Speck.RATTLE), 0.1f, 3);
for (Item item : items) {
if (item.cursed) {
if (Wraith.spawnAt( pos ) == null) {
hero.sprite.emitter().burst( ShadowParticle.CURSE, 6 );
hero.damage( hero.HP / 2, this );
}
Sample.INSTANCE.play( Assets.SND_CURSED );
break;
}
}
break; break;
default: default:
} }