mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-01 21:10:35 +00:00
shadow path described in mouseover
This commit is contained in:
parent
a5689de265
commit
4fc3bf19eb
20
help.cpp
20
help.cpp
@ -883,6 +883,26 @@ EX void describeMouseover() {
|
|||||||
|
|
||||||
if(c->land == laTortoise && tortoise::seek()) out += " " + tortoise::measure(getBits(c));
|
if(c->land == laTortoise && tortoise::seek()) out += " " + tortoise::measure(getBits(c));
|
||||||
|
|
||||||
|
// describe the shadow path
|
||||||
|
if(among(c->land, laGraveyard, laCursed) && shpos.size()) {
|
||||||
|
string shadowtimes;
|
||||||
|
vector<cell*> route;
|
||||||
|
for(int s=1; s<SHSIZE; s++) {
|
||||||
|
bool shadow = false;
|
||||||
|
for(int p: player_indices())
|
||||||
|
if(shpos[(cshpos+s)%SHSIZE][p] == c)
|
||||||
|
shadow = true;
|
||||||
|
if(shadow) {
|
||||||
|
if(shadowtimes == "")
|
||||||
|
shadowtimes = its(s);
|
||||||
|
else
|
||||||
|
shadowtimes += " " + its(s);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(shadowtimes != "")
|
||||||
|
out += XLAT(" (shadow in %1)", shadowtimes);
|
||||||
|
}
|
||||||
|
|
||||||
if(buggyGeneration) {
|
if(buggyGeneration) {
|
||||||
char buf[80]; sprintf(buf, " %p H=%d M=%d", hr::voidp(c), c->landparam, c->mpdist); out += buf;
|
char buf[80]; sprintf(buf, " %p H=%d M=%d", hr::voidp(c), c->landparam, c->mpdist); out += buf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user