v0.3.1: heaps can now be examined from the fog of war
This commit is contained in:
parent
060ed18908
commit
77f02b54a9
|
@ -272,23 +272,21 @@ public class Toolbar extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Dungeon.visible[cell]) {
|
if (Dungeon.visible[cell]) {
|
||||||
|
|
||||||
Mob mob = (Mob) Actor.findChar(cell);
|
Mob mob = (Mob) Actor.findChar(cell);
|
||||||
if (mob != null) {
|
if (mob != null) {
|
||||||
GameScene.show(new WndInfoMob(mob));
|
GameScene.show(new WndInfoMob(mob));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Heap heap = Dungeon.level.heaps.get(cell);
|
Heap heap = Dungeon.level.heaps.get(cell);
|
||||||
if (heap != null) {
|
if (heap != null) {
|
||||||
if (heap.type == Heap.Type.FOR_SALE && heap.size() == 1 && heap.peek().price() > 0) {
|
if (heap.type == Heap.Type.FOR_SALE && heap.size() == 1 && heap.peek().price() > 0) {
|
||||||
GameScene.show(new WndTradeItem(heap, false));
|
GameScene.show(new WndTradeItem(heap, false));
|
||||||
} else {
|
} else {
|
||||||
GameScene.show(new WndInfoItem(heap));
|
GameScene.show(new WndInfoItem(heap));
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Plant plant = Dungeon.level.plants.get( cell );
|
Plant plant = Dungeon.level.plants.get( cell );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user