mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
fixed the problem with help not appearing correctly in Warped and Rose.
This commit is contained in:
parent
0605869292
commit
3e53b944a3
12
help.cpp
12
help.cpp
@ -635,6 +635,14 @@ void gotoHelpFor(eMonster m) {
|
||||
help = generateHelpForMonster(m);
|
||||
};
|
||||
|
||||
void appendHelp(string s) {
|
||||
auto h = helpgenerator;
|
||||
if(help == "HELPGEN")
|
||||
bygen([h,s] { h(); help += s; });
|
||||
else
|
||||
help += s;
|
||||
}
|
||||
|
||||
unsigned char lastval;
|
||||
int windtotal;
|
||||
|
||||
@ -767,13 +775,13 @@ void describeMouseover() {
|
||||
if(sword::at(c)) out += ", Energy Sword";
|
||||
|
||||
if(rosedist(c) || c->land == laRose || c->wall == waRose)
|
||||
help += s0 + "\n\n" + rosedesc;
|
||||
appendHelp(string("\n\n") + rosedesc);
|
||||
|
||||
if(isWarped(c) && !isWarped(c->land))
|
||||
out += ", warped";
|
||||
|
||||
if(isWarped(c))
|
||||
help += s0 + "\n\n" + warpdesc;
|
||||
appendHelp(string("\n\n") + warpdesc);
|
||||
}
|
||||
|
||||
#if CAP_ROGUEVIZ
|
||||
|
Loading…
Reference in New Issue
Block a user