mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	rogueviz::bringris::guard achievements/leaderboards with RVCOL
This commit is contained in:
		| @@ -754,8 +754,10 @@ void new_piece() { | |||||||
|   if(shape_conflict(at)) { |   if(shape_conflict(at)) { | ||||||
|     playSound(cwt.at, "die-bomberbird"); |     playSound(cwt.at, "die-bomberbird"); | ||||||
|     state = tsGameover; |     state = tsGameover; | ||||||
|  |     #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) | ||||||
|       rogueviz::rv_leaderboard(bgeoms[bgeom].name, cur.score); |       rv_leaderboard(bgeoms[bgeom].name, cur.score); | ||||||
|  |     #endif | ||||||
|     save(); |     save(); | ||||||
|     } |     } | ||||||
|   else { |   else { | ||||||
| @@ -825,7 +827,9 @@ 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) 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)) { |   if(camera_only || !shape_conflict(at1)) { | ||||||
|     // playSound(cwt.at, "hit-crush1"); |     // 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; |     at = at1; | ||||||
|     if(solnil) { |     if(solnil) { | ||||||
|       pView = pView * currentmap->adj(cwt.at, nilmap(dir)); |       pView = pView * currentmap->adj(cwt.at, nilmap(dir)); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue