mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-26 21:37:02 +00:00
racing:: myname added to scores
This commit is contained in:
parent
47e43f974c
commit
46b87a20b2
@ -140,6 +140,7 @@ void improveItemScores();
|
||||
#include "private/hypersteam.cpp"
|
||||
#elif !ISANDROID && !ISIOS
|
||||
void achievement_init() {}
|
||||
string myname() { return "Rogue"; }
|
||||
void achievement_close() {}
|
||||
void achievement_gain(const char* s, char flags) {
|
||||
achievement_log(s, flags);
|
||||
|
3
hyper.h
3
hyper.h
@ -618,6 +618,9 @@ void achievement_init();
|
||||
// close the achievement system.
|
||||
void achievement_close();
|
||||
|
||||
// get the user name
|
||||
string myname();
|
||||
|
||||
// gain the achievement with the given name.
|
||||
// flags: 'e' - for Euclidean, 's' - for Shmup, '7' - for heptagonal
|
||||
// Only awarded if special modes are matched exactly.
|
||||
|
@ -1100,6 +1100,7 @@ void uploadScore() {
|
||||
for(eLand l: race_lands) {
|
||||
int i = get_score_in_land(l);
|
||||
if(!i) continue;
|
||||
scoreboard[myname()][l] = i;
|
||||
int score = 60000000 / i; // 1000 points for minute, 2000 points for 30 sec
|
||||
tscore += score;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user