mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-27 11:57:40 +00:00
update to 9.4l
This commit is contained in:
23
hyper.cpp
23
hyper.cpp
@@ -70,6 +70,15 @@ eItem readItem(const char *s) {
|
||||
return itNone;
|
||||
}
|
||||
|
||||
eMonster readMonster(const char *s) {
|
||||
string ss = s;
|
||||
for(int i=0; i<motypes; i++) if(strstr(minf[i].name, s) != NULL) {
|
||||
return eMonster(i);
|
||||
break;
|
||||
}
|
||||
return moNone;
|
||||
}
|
||||
|
||||
void initializeCLI() {
|
||||
printf("HyperRogue by Zeno Rogue <zeno@attnam.com>, version " VER "\n");
|
||||
|
||||
@@ -121,6 +130,13 @@ int arg::readCommon() {
|
||||
shift(); eItem i = readItem(args());
|
||||
shift(); items[i] = argi();
|
||||
}
|
||||
else if(argis("-M")) {
|
||||
PHASE(3) cheater++; timerghost = false;
|
||||
shift(); eMonster m = readMonster(args());
|
||||
shift(); int q = argi();
|
||||
printf("m = %s q = %d\n", dnameof(m), q);
|
||||
restoreGolems(q, m, 7);
|
||||
}
|
||||
else if(argis("-L")) {
|
||||
printf("Treasures:\n");
|
||||
for(int i=1; i<ittypes; i++)
|
||||
@@ -193,6 +209,13 @@ else if(args()[0] == '-' && args()[1] == x && args()[2] == '0') { if(curphase ==
|
||||
autocheat = true;
|
||||
fp43.init(p);
|
||||
}
|
||||
else if(argis("-tpar")) {
|
||||
shift(); sscanf(args(), "%d,%d,%d",
|
||||
&torusconfig::qty,
|
||||
&torusconfig::dx,
|
||||
&torusconfig::dy
|
||||
);
|
||||
}
|
||||
else if(argis("-cs")) {
|
||||
shift();
|
||||
fieldpattern::matrix M = fp43.strtomatrix(args());
|
||||
|
||||
Reference in New Issue
Block a user