1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 03:54:47 +00:00

multi:: disable achievements in split-screen

This commit is contained in:
Zeno Rogue 2022-03-27 15:28:49 +02:00
parent 6d554d6b2e
commit a6338d3c49
2 changed files with 5 additions and 1 deletions

View File

@ -137,6 +137,7 @@ EX bool wrongMode(char flags) {
if(land_structure != dls) return true;
if(numplayers() > 1 && !multi::friendly_fire) return true;
if(numplayers() > 1 && multi::pvp_mode) return true;
if(numplayers() > 1 && multi::split_screen) return true;
if((numplayers() > 1) != (flags == rg::multi)) return true;
return false;
}
@ -781,7 +782,8 @@ EX void achievement_final(bool really_final) {
if(NONSTDVAR) return;
if(numplayers() > 1 && !multi::friendly_fire) return;
if(numplayers() > 1 && multi::pvp) return;
if(numplayers() > 1 && multi::pvp_mode) return;
if(numplayers() > 1 && multi::split_screen) return true;
// determine the correct leaderboard ID for 'total score'
// or return if no leaderboard for the current mode

View File

@ -537,6 +537,8 @@ EX void showConfigureMultiplayer() {
dialog::addInfo(XLAT("PvP grants infinite lives -- achievements disabled"));
else if(friendly_fire)
dialog::addInfo(XLAT("friendly fire off -- achievements disabled"));
else if(split_screen)
dialog::addInfo(XLAT("achievements disabled in split screen"));
else
dialog::addBreak(100);
}