v0.2.4: reworked bombs

This commit is contained in:
Evan Debenham
2015-02-16 05:01:24 -05:00
parent e6e63ad96e
commit 8631aded20
2 changed files with 208 additions and 48 deletions
@@ -284,6 +284,12 @@ public class Heap implements Bundlable {
//stop processing current explosion, it will be replaced by the new one.
return;
} else if (item instanceof Honeypot.ShatteredPot){
//need to let the bee know the pot is being destroyed.
((Honeypot.ShatteredPot) item).goAway();
items.remove( item );
//unique and upgraded items can endure the blast
} else if (!(item.level > 0 || item.unique))
items.remove( item );
@@ -318,7 +324,7 @@ public class Heap implements Bundlable {
((Potion) item).shatter(pos);
frozen = true;
} else if (item instanceof Bomb){
((Bomb) item).fuseLit = false;
((Bomb) item).fuse = null;
frozen = true;
}
}