mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-29 16:57:56 +00:00
added/fixed some missing RVCOL guards
This commit is contained in:
@@ -200,7 +200,7 @@ void gain_resource(eResourceType rsrc) {
|
|||||||
D(rtOxygen, oxygen)
|
D(rtOxygen, oxygen)
|
||||||
for(auto r: {rtGoldGate, rtGoldRocks, rtGoldTurret}) {
|
for(auto r: {rtGoldGate, rtGoldRocks, rtGoldTurret}) {
|
||||||
D(r, score[treasure_id(r)])
|
D(r, score[treasure_id(r)])
|
||||||
#ifdef RVCOL
|
#if RVCOL
|
||||||
if(pdata.score[0] + pdata.score[1] + pdata.score[2] == 30 && no_param_change) rogueviz::rv_achievement("ADSGAME");
|
if(pdata.score[0] + pdata.score[1] + pdata.score[2] == 30 && no_param_change) rogueviz::rv_achievement("ADSGAME");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -1031,12 +1031,16 @@ void seuphorica_screen() {
|
|||||||
post_achievements();
|
post_achievements();
|
||||||
if(roundindex == 21) {
|
if(roundindex == 21) {
|
||||||
save();
|
save();
|
||||||
|
#if RVCOL
|
||||||
if(is_daily && cheats == 0) rogueviz::rv_leaderboard("Seuphorica daily " + its(daily) + ": " + get_geom_name(), total_gain, 1, rvlc::num, rv_data());
|
if(is_daily && cheats == 0) rogueviz::rv_leaderboard("Seuphorica daily " + its(daily) + ": " + get_geom_name(), total_gain, 1, rvlc::num, rv_data());
|
||||||
if(cheats == 0) rogueviz::rv_leaderboard("Seuphorica 20: " + get_geom_name() + get_setname(), total_gain, 1, rvlc::num, rv_data());
|
if(cheats == 0) rogueviz::rv_leaderboard("Seuphorica 20: " + get_geom_name() + get_setname(), total_gain, 1, rvlc::num, rv_data());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if(roundindex == 51) {
|
if(roundindex == 51) {
|
||||||
save();
|
save();
|
||||||
|
#if RVCOL
|
||||||
if(cheats == 0) rogueviz::rv_leaderboard("Seuphorica 50: " + get_geom_name() + get_setname(), total_gain, 1, rvlc::num, rv_data());
|
if(cheats == 0) rogueviz::rv_leaderboard("Seuphorica 50: " + get_geom_name() + get_setname(), total_gain, 1, rvlc::num, rv_data());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1749,7 +1753,9 @@ string get_geom_name() {
|
|||||||
void save_old_game_if_needed() {
|
void save_old_game_if_needed() {
|
||||||
// no point to save on the 1st turn, and also on 21st and 51st turn, it has just been saved
|
// no point to save on the 1st turn, and also on 21st and 51st turn, it has just been saved
|
||||||
if(!among(roundindex, 0, 1, 21, 51)) save();
|
if(!among(roundindex, 0, 1, 21, 51)) save();
|
||||||
|
#if RVCOL
|
||||||
if(cheats == 0) rogueviz::rv_leaderboard("Seuphorica endless: " + get_geom_name() + get_setname(), total_gain, 1, rvlc::num);
|
if(cheats == 0) rogueviz::rv_leaderboard("Seuphorica endless: " + get_geom_name() + get_setname(), total_gain, 1, rvlc::num);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void load() {
|
void load() {
|
||||||
|
Reference in New Issue
Block a user