use of com.shatteredpixel.shatteredpixeldungeon.windows.WndTradeItem in project shattered-pixel-dungeon-gdx by 00-Evan.
the class Hero method actBuy.
private boolean actBuy(HeroAction.Buy action) {
int dst = action.dst;
if (pos == dst || Dungeon.level.adjacent(pos, dst)) {
ready();
Heap heap = Dungeon.level.heaps.get(dst);
if (heap != null && heap.type == Type.FOR_SALE && heap.size() == 1) {
GameScene.show(new WndTradeItem(heap, true));
}
return false;
} else if (getCloser(dst)) {
return true;
} else {
ready();
return false;
}
}
Aggregations