Skip to content
Snippets Groups Projects
Commit e0123428 authored by Sal's avatar Sal
Browse files

Don't allow auto-roulette to get challenging items

parent 715cbd55
No related branches found
No related tags found
No related merge requests found
...@@ -565,6 +565,18 @@ static boolean K_DenyShieldOdds(kartitems_t item) ...@@ -565,6 +565,18 @@ static boolean K_DenyShieldOdds(kartitems_t item)
return false; return false;
} }
static boolean K_DenyAutoRouletteOdds(kartitems_t item)
{
// Deny items that are too hard for newbies
switch (item)
{
case KITEM_GARDENTOP:
return true;
default:
return false;
}
}
/*-------------------------------------------------- /*--------------------------------------------------
static fixed_t K_AdjustSPBOdds(const itemroulette_t *roulette, UINT8 position) static fixed_t K_AdjustSPBOdds(const itemroulette_t *roulette, UINT8 position)
...@@ -738,6 +750,14 @@ INT32 K_KartGetItemOdds(const player_t *player, itemroulette_t *const roulette, ...@@ -738,6 +750,14 @@ INT32 K_KartGetItemOdds(const player_t *player, itemroulette_t *const roulette,
return 0; return 0;
} }
if (roulette->autoroulette == true)
{
if (K_DenyAutoRouletteOdds(item))
{
return 0;
}
}
if (gametype == GT_BATTLE) if (gametype == GT_BATTLE)
{ {
I_Assert(pos < 2); // DO NOT allow positions past the bounds of the table I_Assert(pos < 2); // DO NOT allow positions past the bounds of the table
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment