mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-25 06:51:09 +00:00
Battle: number of monitors that can spawn scales with lobby size
- Duel: 1 - Small: 3 - Medium: 5 - Large: 8
This commit is contained in:
parent
20bd1ddf35
commit
8baf3cd28e
2 changed files with 5 additions and 3 deletions
|
|
@ -540,7 +540,11 @@ void K_RunPaperItemSpawners(void)
|
|||
|
||||
//CONS_Printf("leveltime = %d ", leveltime);
|
||||
|
||||
if (spotAvailable > 0 && monitorsSpawned < BATTLE_MONITOR_SPAWN_LIMIT)
|
||||
// Duel = 2 + 1 = 3 / 2 = 1
|
||||
// Small = 5 + 1 = 6 / 2 = 3
|
||||
// Medium = 10 + 1 = 11 / 2 = 5
|
||||
// Large = 16 + 1 = 17 / 2 = 8
|
||||
if (spotAvailable > 0 && monitorsSpawned < (mapheaderinfo[gamemap - 1]->playerLimit + 1) / 2)
|
||||
{
|
||||
const UINT8 r = spotMap[P_RandomKey(PR_ITEM_ROULETTE, spotAvailable)];
|
||||
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ extern "C" {
|
|||
#define BATTLE_POWERUP_TIME (30*TICRATE)
|
||||
#define BATTLE_UFO_TIME (20*TICRATE)
|
||||
|
||||
#define BATTLE_MONITOR_SPAWN_LIMIT (3)
|
||||
|
||||
extern struct battleovertime
|
||||
{
|
||||
UINT16 enabled; ///< Has this been initalized yet?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue