mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-24 18:37:39 +00:00
extra guards
This commit is contained in:
10
help.cpp
10
help.cpp
@@ -928,8 +928,12 @@ EX void describeMouseover() {
|
||||
if(isReptile(c->wall))
|
||||
out += " [" + turnstring((unsigned char) c->wparam) + "]";
|
||||
|
||||
#if CAP_COMPLEX2
|
||||
if(c->monst == moKnight)
|
||||
out += XLAT(", %1 the Knight", camelot::knight_name(c));
|
||||
#else
|
||||
if(0) ;
|
||||
#endif
|
||||
|
||||
else if(c->monst) {
|
||||
out += ", "; out += XLAT1(minf[c->monst].name);
|
||||
@@ -950,10 +954,12 @@ EX void describeMouseover() {
|
||||
out += ", ";
|
||||
out += XLAT1(iinf[c->item].name);
|
||||
if(c->item == itBarrow) out += " (x" + its(c->landparam) + ")";
|
||||
if(c->land == laHunting) {
|
||||
#if CAP_COMPLEX2
|
||||
if(c->land == laHunting) {
|
||||
int i = ambush::size(c, c->item);
|
||||
if(i) out += " (" + XLAT("ambush:") + " " + its(i) + ")";
|
||||
}
|
||||
#endif
|
||||
if(c->item == itBabyTortoise && tortoise::seek())
|
||||
out += " " + tortoise::measure(tortoise::babymap[c]);
|
||||
if(!c->monst) set_help_to(c->item);
|
||||
@@ -1000,12 +1006,14 @@ EX void describeMouseover() {
|
||||
callhooks(hooks_mouseover, c);
|
||||
|
||||
if(mousey < vid.fsize * 3/2 && getcstat == '-' && !instat) getcstat = SDLK_F1;
|
||||
#if CAP_TOUR
|
||||
if(tour::on && !tour::texts) {
|
||||
if(tour::slides[tour::currentslide].flags & tour::NOTITLE)
|
||||
mouseovers = "";
|
||||
else
|
||||
mouseovers = XLAT(tour::slides[tour::currentslide].name);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
EX void showHelp() {
|
||||
|
||||
Reference in New Issue
Block a user