mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-10 02:14:06 +00:00
achievements:: hooks_rich_presence
This commit is contained in:
parent
23646fb56e
commit
4c31ad612a
@ -982,8 +982,13 @@ EX void achievement_victory(bool hyper) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EX hookset<string()> hooks_rich_presence;
|
||||||
|
|
||||||
EX string get_rich_presence_text() {
|
EX string get_rich_presence_text() {
|
||||||
|
|
||||||
|
string s = callhandlers(string(""), hooks_rich_presence);
|
||||||
|
if(s != "") return s;
|
||||||
|
|
||||||
#if CAP_DAILY
|
#if CAP_DAILY
|
||||||
if(daily::on)
|
if(daily::on)
|
||||||
return "Strange Challenge #" + its(daily::daily_id) + ", score " + its(gold());
|
return "Strange Challenge #" + its(daily::daily_id) + ", score " + its(gold());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user