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

semicasual mode

This commit is contained in:
Zeno Rogue
2024-10-11 19:01:46 +02:00
parent 568389e629
commit d4d09f0855
3 changed files with 54 additions and 10 deletions

View File

@@ -34,9 +34,9 @@ EX string getgametime_s(int timespent IS(getgametime())) {
return hr::format("%d:%02d", timespent/60, timespent % 60);
}
EX bool display_yasc_codes;
EX bool display_yasc_codes, display_semicasual;
string formatted_yasc_code() {
EX string formatted_yasc_code() {
if(yasc_code < 100000) return its(yasc_code);
int y = yasc_code;
string out;
@@ -56,6 +56,10 @@ string timeline() {
if(display_yasc_codes)
s += XLAT(" YASC code: ") + formatted_yasc_code();
}
if(casual && loadcount >= 0 && display_semicasual) {
ld val = exp(load_branching/scores::BRANCH_SCALE);
s += XLAT(" saves: %1 loads: %2 branching: %3", its(savecount), its(loadcount), val < 1e6 ? format("%.0f", val) : format("%.4g", val));
}
return s;
}