use of com.watabou.pixeldungeon.windows.WndWandmaker in project pixel-dungeon-remix by NYRDS.
the class WandMaker method interact.
@Override
public boolean interact(final Hero hero) {
getSprite().turnTo(getPos(), hero.getPos());
if (Quest.given) {
Item item = Quest.alternative ? hero.belongings.getItem(CorpseDust.class) : hero.belongings.getItem(Rotberry.Seed.class);
if (item != null) {
GameScene.show(new WndWandmaker(this, item));
} else {
tell(Quest.alternative ? TXT_DUST2 : TXT_BERRY2, hero.className());
}
} else {
tell(Quest.alternative ? TXT_DUST1 : TXT_BERRY1);
Quest.given = true;
Quest.placeItem();
Journal.add(Journal.Feature.WANDMAKER.desc());
}
return true;
}
Aggregations