mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-06 08:24:06 +00:00
fixed tide/lava help counters
This commit is contained in:
parent
f291bbb1d1
commit
fa9c2da41d
6
help.cpp
6
help.cpp
@ -883,9 +883,9 @@ EX void describeMouseover() {
|
|||||||
out += " (" + its(c->landparam)+")";
|
out += " (" + its(c->landparam)+")";
|
||||||
else {
|
else {
|
||||||
calcTidalPhase();
|
calcTidalPhase();
|
||||||
bool b = c->landparam >= tide[(turncount-1) % tidalsize];
|
bool b = c->landparam >= tide[turncount % tidalsize];
|
||||||
int t = 1;
|
int t = 1;
|
||||||
for(; t < 1000 && b == (c->landparam >= tide[(turncount+t-1) % tidalsize]); t++) ;
|
for(; t < 1000 && b == (c->landparam >= tide[(turncount+t) % tidalsize]); t++) ;
|
||||||
if(b)
|
if(b)
|
||||||
out += " (" + turnstring(t) + XLAT(" to surface") + ")";
|
out += " (" + turnstring(t) + XLAT(" to surface") + ")";
|
||||||
else
|
else
|
||||||
@ -894,7 +894,7 @@ EX void describeMouseover() {
|
|||||||
}
|
}
|
||||||
#if CAP_FIELD
|
#if CAP_FIELD
|
||||||
else if(c->land == laVolcano) {
|
else if(c->land == laVolcano) {
|
||||||
int id = lavatide(c, -1)/4;
|
int id = lavatide(c, 0)/4;
|
||||||
if(id < 96/4)
|
if(id < 96/4)
|
||||||
out += " (" + turnstring(96/4-id) + XLAT(" to go cold") + ")";
|
out += " (" + turnstring(96/4-id) + XLAT(" to go cold") + ")";
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user