1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-09 04:06:44 +00:00

achievements:: hooks_rich_presence

This commit is contained in:
Zeno Rogue 2025-03-17 18:57:49 +01:00
parent 23646fb56e
commit 4c31ad612a

View File

@ -982,8 +982,13 @@ EX void achievement_victory(bool hyper) {
#endif
}
EX hookset<string()> hooks_rich_presence;
EX string get_rich_presence_text() {
string s = callhandlers(string(""), hooks_rich_presence);
if(s != "") return s;
#if CAP_DAILY
if(daily::on)
return "Strange Challenge #" + its(daily::daily_id) + ", score " + its(gold());