HUD tracking: R button prompt for ice cubes

This commit is contained in:
James R 2024-04-02 04:07:45 -07:00
parent f0c759dc2f
commit c429dfb880

View file

@ -130,6 +130,9 @@ struct TargetTracking
case MT_BUBBLESHIELDTRAP:
return false;
case MT_PLAYER:
return !tooltip;
default:
return true;
}
@ -392,6 +395,12 @@ std::optional<TextElement> object_tooltip(const mobj_t* mobj)
[&] { return TextElement("Try \xA7!").font(splitfont); }
);
case MT_PLAYER:
return conditional(
mobj->player == stplyr && stplyr->icecube.frozen,
[&] { return TextElement("\xA7"); }
);
default:
return {};
}