mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-27 07:22:51 +00:00
rogueviz:: added rogueviz:: namespace to rv_achievement
This commit is contained in:
parent
c8483b570c
commit
1d7e3b0cdf
@ -754,7 +754,7 @@ void new_piece() {
|
|||||||
state = tsGameover;
|
state = tsGameover;
|
||||||
#if RCVOL
|
#if RCVOL
|
||||||
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, 1, rvlc::num, lalign(0, cur.bricks, " ", cur.cubes, " ", cur.completed));
|
||||||
#endif
|
#endif
|
||||||
save();
|
save();
|
||||||
}
|
}
|
||||||
@ -826,7 +826,7 @@ void find_lines() {
|
|||||||
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 RVCOL
|
#if RVCOL
|
||||||
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");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1028,7 +1028,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 RVCOL
|
#if RVCOL
|
||||||
if(check_bshift(at, at1)) rv_achievement("BSHIFT");
|
if(check_bshift(at, at1)) rogueviz::rv_achievement("BSHIFT");
|
||||||
#endif
|
#endif
|
||||||
at = at1;
|
at = at1;
|
||||||
if(solnil) {
|
if(solnil) {
|
||||||
|
@ -219,7 +219,7 @@ EX void check() {
|
|||||||
if(ok) {
|
if(ok) {
|
||||||
addMessage("You won!");
|
addMessage("You won!");
|
||||||
#if RVCOL
|
#if RVCOL
|
||||||
if(cheater == orig_cheat) rv_achievement(current_puzzle->achievement);
|
if(cheater == orig_cheat) rogueviz::rv_achievement(current_puzzle->achievement);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,7 +140,7 @@ void check_move() {
|
|||||||
if(ok == true) {
|
if(ok == true) {
|
||||||
state = state::solved;
|
state = state::solved;
|
||||||
#if RVCOL
|
#if RVCOL
|
||||||
if(current_puzzle = &puzzles[1]) rv_achievement("FIFTEEN");
|
if(current_puzzle == &puzzles[1]) rogueviz::rv_achievement("FIFTEEN");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user