mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-03 07:54:04 +00:00
place items command line option
This commit is contained in:
parent
d7cc886197
commit
064435aea1
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;
|
cell *recallCell;
|
||||||
|
|
||||||
bool activateRecall() {
|
bool activateRecall() {
|
||||||
|
@ -144,6 +144,12 @@ int arg::readCommon() {
|
|||||||
shift(); eItem i = readItem(args());
|
shift(); eItem i = readItem(args());
|
||||||
shift(); items[i] = argi();
|
shift(); items[i] = argi();
|
||||||
}
|
}
|
||||||
|
else if(argis("-IP")) {
|
||||||
|
PHASE(3) cheater++; timerghost = false;
|
||||||
|
shift(); eItem i = readItem(args());
|
||||||
|
shift(); int q = argi();
|
||||||
|
placeItems(q, i);
|
||||||
|
}
|
||||||
else if(argis("-M")) {
|
else if(argis("-M")) {
|
||||||
PHASE(3) cheater++; timerghost = false;
|
PHASE(3) cheater++; timerghost = false;
|
||||||
shift(); eMonster m = readMonster(args());
|
shift(); eMonster m = readMonster(args());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user