mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-30 07:17:03 +00:00
compile without CAP_INV
This commit is contained in:
parent
cab8a0a38f
commit
7ac883c1c2
@ -49,7 +49,7 @@ int getnext(const char* s, int& i) {
|
|||||||
if(eqs(s+i, natchars[k])) {
|
if(eqs(s+i, natchars[k])) {
|
||||||
i += siz; return 128+k;
|
i += siz; return 128+k;
|
||||||
}
|
}
|
||||||
printf("Unknown character in: '%s'\n", s);
|
printf("Unknown character in: '%s' at position %d\n", s, i);
|
||||||
i ++; return '?';
|
i ++; return '?';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,6 +142,7 @@ int arg::readCommon() {
|
|||||||
PHASE(2);
|
PHASE(2);
|
||||||
shift(); stereo::mode = stereo::eStereo(argi());
|
shift(); stereo::mode = stereo::eStereo(argi());
|
||||||
}
|
}
|
||||||
|
#if CAP_INV
|
||||||
else if(argis("-IU")) {
|
else if(argis("-IU")) {
|
||||||
PHASE(3) cheater++; timerghost = false;
|
PHASE(3) cheater++; timerghost = false;
|
||||||
shift(); eItem i = readItem(args());
|
shift(); eItem i = readItem(args());
|
||||||
@ -154,6 +155,7 @@ int arg::readCommon() {
|
|||||||
shift(); inv::extra_orbs[i] += argi();
|
shift(); inv::extra_orbs[i] += argi();
|
||||||
inv::compute();
|
inv::compute();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
else if(argis("-ambush")) {
|
else if(argis("-ambush")) {
|
||||||
// make all ambushes use the given number of dogs
|
// make all ambushes use the given number of dogs
|
||||||
// example: hyper -W Hunt -IP Shield 1 -ambush 60
|
// example: hyper -W Hunt -IP Shield 1 -ambush 60
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
#include "inventory.cpp"
|
#include "inventory.cpp"
|
||||||
#else
|
#else
|
||||||
bool inv::on;
|
bool inv::on;
|
||||||
|
bool inv::activating;
|
||||||
#endif
|
#endif
|
||||||
#include "system.cpp"
|
#include "system.cpp"
|
||||||
#include "debug.cpp"
|
#include "debug.cpp"
|
||||||
|
10
help.cpp
10
help.cpp
@ -37,12 +37,14 @@ string buildHelpText() {
|
|||||||
"The monster could also kill you by moving into your location, but the game "
|
"The monster could also kill you by moving into your location, but the game "
|
||||||
"automatically cancels all moves which result in that.\n\n"
|
"automatically cancels all moves which result in that.\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#if CAP_INV
|
||||||
if(inv::on)
|
if(inv::on)
|
||||||
h += XLAT(
|
h += XLAT(
|
||||||
inv::helptext
|
inv::helptext
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
h += XLAT(
|
h += XLAT(
|
||||||
"There are many lands in HyperRogue. Collect 10 treasure "
|
"There are many lands in HyperRogue. Collect 10 treasure "
|
||||||
"in the given land type to complete it; this enables you to "
|
"in the given land type to complete it; this enables you to "
|
||||||
@ -237,7 +239,8 @@ string generateHelpForItem(eItem it) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CAP_INV
|
||||||
if(inv::on) {
|
if(inv::on) {
|
||||||
if(it == itOrbYendor || it == itHell) {
|
if(it == itOrbYendor || it == itHell) {
|
||||||
help += XLAT(
|
help += XLAT(
|
||||||
@ -296,6 +299,7 @@ string generateHelpForItem(eItem it) {
|
|||||||
if(inv::orbinfoline != "") help += "\n\n" + inv::orbinfoline;
|
if(inv::orbinfoline != "") help += "\n\n" + inv::orbinfoline;
|
||||||
if(inv::extra != "") help += "\n\nExtras:" + inv::extra;
|
if(inv::extra != "") help += "\n\nExtras:" + inv::extra;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if(itemclass(it) == IC_ORB || it == itGreenStone || it == itOrbYendor) {
|
if(itemclass(it) == IC_ORB || it == itGreenStone || it == itOrbYendor) {
|
||||||
for(int i=0; i<ORBLINES; i++) {
|
for(int i=0; i<ORBLINES; i++) {
|
||||||
@ -320,8 +324,10 @@ string generateHelpForItem(eItem it) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CAP_INV
|
||||||
if(inv::on && it == itInventory)
|
if(inv::on && it == itInventory)
|
||||||
help += "\n\n" + XLAT(inv::helptext);
|
help += "\n\n" + XLAT(inv::helptext);
|
||||||
|
#endif
|
||||||
return help;
|
return help;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user