V0.2.0: Lots of Armband implementation

This commit is contained in:
Evan Debenham
2014-09-07 17:13:52 -04:00
parent 1338cabf67
commit 5e038f5c5d
5 changed files with 63 additions and 20 deletions
@@ -28,6 +28,8 @@ import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
public class ImpShopkeeper extends Shopkeeper {
private static final String TXT_GREETINGS = "Hello, friend!";
public static final String TXT_THIEF = "I thought I could trust you!";
{
name = "ambitious imp";
@@ -48,7 +50,7 @@ public class ImpShopkeeper extends Shopkeeper {
}
@Override
protected void flee() {
public void flee() {
for (Heap heap: Dungeon.level.heaps.values()) {
if (heap.type == Heap.Type.FOR_SALE) {
CellEmitter.get( heap.pos ).burst( ElmoParticle.FACTORY, 4 );
@@ -31,6 +31,8 @@ import com.shatteredpixel.shatteredpixeldungeon.windows.WndTradeItem;
public class Shopkeeper extends Mob.NPC {
public static final String TXT_THIEF = "Thief, Thief!";
{
name = "shopkeeper";
spriteClass = ShopkeeperSprite.class;
@@ -56,7 +58,7 @@ public class Shopkeeper extends Mob.NPC {
flee();
}
protected void flee() {
public void flee() {
for (Heap heap: Dungeon.level.heaps.values()) {
if (heap.type == Heap.Type.FOR_SALE) {
CellEmitter.get( heap.pos ).burst( ElmoParticle.FACTORY, 4 );