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:
parent
23646fb56e
commit
4c31ad612a
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user