mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-06 18:57:02 +00:00
rogueviz::bringris::guard achievements/leaderboards with RVCOL
This commit is contained in:
parent
958131a7da
commit
75a82ae91a
@ -754,8 +754,10 @@ void new_piece() {
|
||||
if(shape_conflict(at)) {
|
||||
playSound(cwt.at, "die-bomberbird");
|
||||
state = tsGameover;
|
||||
#if RCVOL
|
||||
if(cur.pro_game && cur.max_piece == bgeoms[bgeom].default_max_piece)
|
||||
rogueviz::rv_leaderboard(bgeoms[bgeom].name, cur.score);
|
||||
rv_leaderboard(bgeoms[bgeom].name, cur.score);
|
||||
#endif
|
||||
save();
|
||||
}
|
||||
else {
|
||||
@ -825,7 +827,9 @@ void find_lines() {
|
||||
cur.score += 100000. * points * (points+1.) / current_move_time_limit();
|
||||
cur.completed += points;
|
||||
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) rogueviz::rv_achievement("BRINGRISFOUR");
|
||||
#if RVCOL
|
||||
if(points == 4 && cur.pro_game && cur.max_piece == 4 && bgeoms[bgeom].default_max_piece == 4) rv_achievement("BRINGRISFOUR");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@ -1025,7 +1029,9 @@ void shift_block(int dir, bool camera_only) {
|
||||
|
||||
if(camera_only || !shape_conflict(at1)) {
|
||||
// playSound(cwt.at, "hit-crush1");
|
||||
if(check_bshift(at, at1)) rogueviz::rv_achievement("BSHIFT");
|
||||
#if RVCOL
|
||||
if(check_bshift(at, at1)) rv_achievement("BSHIFT");
|
||||
#endif
|
||||
at = at1;
|
||||
if(solnil) {
|
||||
pView = pView * currentmap->adj(cwt.at, nilmap(dir));
|
||||
|
Loading…
x
Reference in New Issue
Block a user