mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-11 11:44:08 +00:00
rogueviz::bringris:: adjusted to rv_ leaderboards
This commit is contained in:
parent
31cac549bc
commit
09e44027cb
@ -48,14 +48,7 @@
|
|||||||
#define SUBQ
|
#define SUBQ
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../hyper.h"
|
#include "rogueviz.h"
|
||||||
|
|
||||||
#ifdef RVCOL
|
|
||||||
namespace hr {
|
|
||||||
void rv_achievement(const string& name);
|
|
||||||
void rv_leaderboard(const string& name, int score);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define solnil (nil || sol)
|
#define solnil (nil || sol)
|
||||||
|
|
||||||
@ -762,7 +755,7 @@ void new_piece() {
|
|||||||
playSound(cwt.at, "die-bomberbird");
|
playSound(cwt.at, "die-bomberbird");
|
||||||
state = tsGameover;
|
state = tsGameover;
|
||||||
if(cur.pro_game && cur.max_piece == bgeoms[bgeom].default_max_piece)
|
if(cur.pro_game && cur.max_piece == bgeoms[bgeom].default_max_piece)
|
||||||
rv_leaderboard(bgeoms[bgeom].name, cur.score);
|
rogueviz::rv_leaderboard(bgeoms[bgeom].name, cur.score);
|
||||||
save();
|
save();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -832,7 +825,7 @@ void find_lines() {
|
|||||||
cur.score += 100000. * points * (points+1.) / current_move_time_limit();
|
cur.score += 100000. * points * (points+1.) / current_move_time_limit();
|
||||||
cur.completed += points;
|
cur.completed += points;
|
||||||
playSound(cwt.at, points == 1 ? "pickup-gold" : "orb-mind");
|
playSound(cwt.at, points == 1 ? "pickup-gold" : "orb-mind");
|
||||||
if(points == 4 && cur.pro_game && cur.max_piece == 4 && bgeoms[bgeom].default_max_piece == 4) rv_achievement("BRINGRISFOUR");
|
if(points == 4 && cur.pro_game && cur.max_piece == 4 && bgeoms[bgeom].default_max_piece == 4) rogueviz::rv_achievement("BRINGRISFOUR");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1032,7 +1025,7 @@ void shift_block(int dir, bool camera_only) {
|
|||||||
|
|
||||||
if(camera_only || !shape_conflict(at1)) {
|
if(camera_only || !shape_conflict(at1)) {
|
||||||
// playSound(cwt.at, "hit-crush1");
|
// playSound(cwt.at, "hit-crush1");
|
||||||
if(check_bshift(at, at1)) rv_achievement("BSHIFT");
|
if(check_bshift(at, at1)) rogueviz::rv_achievement("BSHIFT");
|
||||||
at = at1;
|
at = at1;
|
||||||
if(solnil) {
|
if(solnil) {
|
||||||
pView = pView * currentmap->adj(cwt.at, nilmap(dir));
|
pView = pView * currentmap->adj(cwt.at, nilmap(dir));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user