mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-24 02:17:40 +00:00
place items command line option
This commit is contained in:
9
game.cpp
9
game.cpp
@@ -5328,6 +5328,15 @@ void restoreGolems(int qty, eMonster m, int hp = 0) {
|
||||
}
|
||||
}
|
||||
|
||||
void placeItems(int qty, eItem it) {
|
||||
int dcs = size(dcal);
|
||||
for(int i=1; qty && i<dcs; i++) {
|
||||
cell *c = dcal[i];
|
||||
if(!c->monst && !c->item && passable(c, NULL, 0))
|
||||
c->item = it, qty--;
|
||||
}
|
||||
}
|
||||
|
||||
cell *recallCell;
|
||||
|
||||
bool activateRecall() {
|
||||
|
||||
Reference in New Issue
Block a user