v0.2.2: gave heroes remains a unique heap type & sprite

This commit is contained in:
Evan Debenham
2014-10-30 10:02:25 -04:00
parent 6810d0adef
commit 462f4c9d8b
14 changed files with 66 additions and 50 deletions
@@ -56,7 +56,8 @@ public class Heap implements Bundlable {
LOCKED_CHEST,
CRYSTAL_CHEST,
TOMB,
SKELETON
SKELETON,
REMAINS
}
public Type type = Type.HEAP;
@@ -81,6 +82,8 @@ public class Heap implements Bundlable {
return ItemSpriteSheet.TOMB;
case SKELETON:
return ItemSpriteSheet.BONES;
case REMAINS:
return ItemSpriteSheet.REMAINS;
default:
return 0;
}
@@ -96,6 +99,7 @@ public class Heap implements Bundlable {
Wraith.spawnAround( hero.pos );
break;
case SKELETON:
case REMAINS:
CellEmitter.center( pos ).start( Speck.factory( Speck.RATTLE ), 0.1f, 3 );
for (Item item : items) {
if (item.cursed) {