Limit events by round time

This commit is contained in:
Janet Blackquill 2026-07-07 01:36:55 -04:00
parent 688ef3f872
commit f3d0954df1
1 changed files with 1 additions and 4 deletions

View File

@ -66,10 +66,7 @@ public sealed class EventManagerSystem : EntitySystem
/// </remarks>
public EntProtoId? TryGenerateRandomEvent(EntityTableSelector limitedEventsTable, TimeSpan? eventRunTime = null)
{
var availableEvents = AvailableEvents(eventRunTime: eventRunTime); // handles the player counts and individual event restrictions.
// Putting this here only makes any sense in the context of the toolshed commands in BasicStationEventScheduler. Kill me.
if (!TryBuildLimitedEvents(limitedEventsTable, out var limitedEvents))
if (!TryBuildLimitedEvents(limitedEventsTable, out var limitedEvents, currentTime: eventRunTime))
{
Log.Warning("Provided event table could not build dict!");
return null;