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

YASC codes

This commit is contained in:
Zeno Rogue
2021-05-24 16:14:02 +02:00
parent 887fc9e1e2
commit 7fc91b1eaf
4 changed files with 127 additions and 60 deletions

View File

@@ -28,12 +28,18 @@ EX string getgametime_s(int timespent IS(getgametime())) {
return buf;
}
EX bool display_yasc_codes;
string timeline() {
return
shmup::on ?
XLAT("%1 knives (%2)", its(turncount), getgametime_s())
:
XLAT("%1 turns (%2)", its(turncount), getgametime_s());
string s;
if(shmup::on)
s = XLAT("%1 knives (%2)", its(turncount), getgametime_s());
else {
s = XLAT("%1 turns (%2)", its(turncount), getgametime_s());
if(display_yasc_codes)
s+= " YASC code: " + its(yasc_code);
}
return s;
}
EX void noaction() {}