fixed the name displayed on mouseover for slime

This commit is contained in:
Zeno Rogue 2023-12-22 01:14:41 +01:00
parent a6b30fa564
commit 364a563423
3 changed files with 8 additions and 1 deletions

View File

@ -2029,6 +2029,7 @@ void celldrawer::bookkeeping() {
modist2 = modist; mouseover2 = mouseover;
modist = dist;
mouseover = c;
mouseoverV = V;
}
else if(dist < modist2) {
modist2 = dist;

View File

@ -67,6 +67,7 @@ EX ld shiftmul = 1;
EX cell *mouseover, *mouseover2, *lmouseover, *lmouseover_distant;
EX ld modist, modist2;
EX shiftmatrix mouseoverV;
EX int lastt;

View File

@ -964,7 +964,12 @@ EX void describeMouseover() {
if(c->wall && !(c->wall == waChasm && c->land == laDual && ctof(c)) &&
!(c->land == laMemory) &&
!((c->wall == waFloorA || c->wall == waFloorB) && c->item)) {
out += ", "; out += XLAT1(winf[c->wall].name);
eWall w = c->wall;
if(isAlch(w))
w = conditional_flip_slime(mousing ? det(mouseoverV.T) < 0 : det(View) < 0, w);
out += ", "; out += XLAT1(winf[w].name);
if(c->wall == waRose) out += " (" + its(7-rosephase) + ")";
if(c->wall == waTerraWarrior) out += " (" + its(c->wparam) + ")";