mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-06 04:17:58 +00:00
multi:: PvP, friendly-fire, and self-hits options
This commit is contained in:
@@ -135,6 +135,8 @@ EX bool wrongMode(char flags) {
|
||||
dls = lsChaos;
|
||||
|
||||
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) != (flags == rg::multi)) return true;
|
||||
return false;
|
||||
}
|
||||
@@ -777,6 +779,9 @@ EX void achievement_final(bool really_final) {
|
||||
if(ineligible_starting_land) return;
|
||||
if(geometry) return;
|
||||
if(NONSTDVAR) return;
|
||||
|
||||
if(numplayers() > 1 && !multi::friendly_fire) return;
|
||||
if(numplayers() > 1 && multi::pvp) return;
|
||||
|
||||
// determine the correct leaderboard ID for 'total score'
|
||||
// or return if no leaderboard for the current mode
|
||||
|
Reference in New Issue
Block a user