v0.3.1d: completing the sad ghost quest now beckons the ghost to the player

This commit is contained in:
Evan Debenham 2015-09-10 16:43:59 -04:00
parent 4c3b91366f
commit 0364319154

View File

@ -355,6 +355,10 @@ public class Ghost extends NPC {
public static void process() { public static void process() {
if (spawned && given && !processed && (depth == Dungeon.depth)) { if (spawned && given && !processed && (depth == Dungeon.depth)) {
GLog.n("sad ghost: Thank you... come find me..."); GLog.n("sad ghost: Thank you... come find me...");
for (Mob m : Dungeon.level.mobs){
if (m instanceof Ghost)
m.beckon(Dungeon.hero.pos);
}
Sample.INSTANCE.play( Assets.SND_GHOST ); Sample.INSTANCE.play( Assets.SND_GHOST );
processed = true; processed = true;
Generator.Category.ARTIFACT.probs[10] = 1; //flags the dried rose as spawnable. Generator.Category.ARTIFACT.probs[10] = 1; //flags the dried rose as spawnable.