1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 17:37:39 +00:00

help lines and ASCII graphics for Blizzard and Terracotta

This commit is contained in:
Zeno Rogue
2017-10-09 13:00:08 +02:00
parent 0c154d6751
commit 0505bd727c
3 changed files with 38 additions and 4 deletions

View File

@@ -617,6 +617,9 @@ void gotoHelpFor(eMonster m) {
help = generateHelpForMonster(m);
};
unsigned char lastval;
int windtotal;
void describeMouseover() {
DEBB(DF_GRAPH, (debugfile,"describeMouseover\n"));
@@ -646,6 +649,20 @@ void describeMouseover() {
out += " (" + turnstring(t) + XLAT(" to submerge") + ")";
}
}
else if(c->land == laVolcano) {
int id = alchemyval(c, -1)/4;
if(id < 96/4)
out += " (" + turnstring(96/4-id) + XLAT(" to go cold") + ")";
else
out += " (" + turnstring(256/4-id) + XLAT(" to submerge") + ")";
}
else if(c->land == laBlizzard) {
int wm = windmap::at(c);
windtotal += (signed char) (wm-lastval);
lastval = wm;
if(c == cwt.c) windtotal = 0;
out += " [" + its(windtotal) + "]";
}
if(c->land == laTortoise && tortoise::seek()) out += " " + tortoise::measure(getBits(c));