mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-04 03:27:55 +00:00
semicasual mode
This commit is contained in:
8
quit.cpp
8
quit.cpp
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user