Skip to content

Commit

Permalink
Rando Medium mode, disables goals rando and memes
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Mar 26, 2024
1 parent caf9016 commit 4b35d95
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DXRModules/DeusEx/Classes/DXREventsBase.uc
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ simulated function _CreateBingoBoard(PlayerDataItem data, int starting_map, int
i = options[x];
l( " " $ bingo_options[i].event $ " - " $ bingo_options[i].desc );
}
test(num_options > 50, "_CreateBingoBoard more than 50 options for " $ starting_map);
test(num_options > 50, "_CreateBingoBoard more than 50 options, found " $ num_options $ " for " $ starting_map);
l("----------------------------------");
return;
}
Expand Down
29 changes: 23 additions & 6 deletions DXRModules/DeusEx/Classes/DXRFlags.uc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const SeriousSam = 5;
const SpeedrunMode = 6;
const WaltonWare = 7;
const WaltonWareEntranceRando = 8;
const RandoMedium = 9;

#ifdef hx
var string difficulty_names[4];// Easy, Medium, Hard, DeusEx
Expand Down Expand Up @@ -497,7 +498,12 @@ function FlagsSettings SetDifficulty(int new_difficulty)

if(!class'MenuChoice_ToggleMemes'.default.enabled) settings.dancingpercent = 0;

if(IsReducedRando()) {
if(gamemode == RandoMedium) {
settings.startinglocations = 0;
settings.goals = 0;
settings.dancingpercent = 0;
}
else if(IsReducedRando()) {
settings.doorsmode = 0;
settings.doorsdestructible = 0;
settings.doorspickable = 0;
Expand Down Expand Up @@ -529,9 +535,6 @@ function FlagsSettings SetDifficulty(int new_difficulty)
settings.dancingpercent = 0;
settings.swapitems = 0;
settings.swapcontainers = 0;
settings.bingo_win = 0;
settings.bingo_freespaces = 1;
settings.spoilers = 1;
settings.health = 100;
settings.energy = 100;
if(IsZeroRando()) {
Expand Down Expand Up @@ -649,7 +652,19 @@ function string DifficultyName(int diff)

static function int GameModeIdForSlot(int slot)
{// allow us to reorder in the menu, similar to DXRLoadouts::GetIdForSlot
return slot;
switch(slot) {
case 0: return 0;
case 1: return EntranceRando;
case 2: return WaltonWare;
case 3: return WaltonWareEntranceRando;
case 4: return SpeedrunMode;
case 5: return ZeroRando;
case 6: return RandoLite;
case 7: return RandoMedium;
case 8: return SeriousSam;
case 9: return HordeMode;
}
return 999999;
}

static function string GameModeName(int gamemode)
Expand All @@ -667,6 +682,8 @@ static function string GameModeName(int gamemode)
return "Randomizer Lite";
case ZeroRando:
return "Zero Rando";
case RandoMedium:
return "Randomizer Medium";
case SeriousSam:
return "Serious Sam Mode";
case SpeedrunMode:
Expand Down Expand Up @@ -701,7 +718,7 @@ function bool IsZeroRando()

function bool IsReducedRando()
{
return gamemode == RandoLite || gamemode == ZeroRando;
return gamemode == RandoLite || gamemode == ZeroRando || gamemode == RandoMedium;
}

function bool IsSpeedrunMode()
Expand Down

0 comments on commit 4b35d95

Please sign in to comment.